File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,15 @@ repositories {
16
16
* Step 2.* Add the dependency in the form
17
17
``` gradle
18
18
dependencies {
19
- compile 'com.github.Q42:AndroidScrollingImageView:1.0 '
19
+ compile 'com.github.Q42:AndroidScrollingImageView:1.1 '
20
20
}
21
21
```
22
22
23
+ ## Sample app
24
+ Please see the sample app for some examples
25
+
26
+ ![ Sample App] ( https://raw.githubusercontent.com/Q42/AndroidScrollingImageView/master/sample_app.png )
27
+
23
28
## Usage
24
29
In your Android layout file add:
25
30
``` xml
@@ -31,6 +36,10 @@ In your Android layout file add:
31
36
scrolling_image_view : src =" @drawable/scrolling_background" />
32
37
```
33
38
39
+ There are two attributes for the ` ScrollingImageView ` namely ` speed ` and ` src ` .
40
+ * ` speed ` is the number of ` dp ` 's to move the bitmap on each animation frame (may be a negative number)
41
+ * ` src ` is the drawable to paint (** must be a bitmap!** )
42
+
34
43
Don't forget to add the namespace to your root XLM element
35
44
``` xml
36
45
xmlns:scrolling_image_view="http://schemas.android.com/apk/res-auto"
You can’t perform that action at this time.
0 commit comments