Skip to content

Commit 2171dd9

Browse files
committed
Update README.md
1 parent 01381b2 commit 2171dd9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ repositories {
1616
*Step 2.* Add the dependency in the form
1717
```gradle
1818
dependencies {
19-
compile 'com.github.Q42:AndroidScrollingImageView:1.0'
19+
compile 'com.github.Q42:AndroidScrollingImageView:1.1'
2020
}
2121
```
2222

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+
2328
## Usage
2429
In your Android layout file add:
2530
```xml
@@ -31,6 +36,10 @@ In your Android layout file add:
3136
scrolling_image_view:src="@drawable/scrolling_background" />
3237
```
3338

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+
3443
Don't forget to add the namespace to your root XLM element
3544
```xml
3645
xmlns:scrolling_image_view="http://schemas.android.com/apk/res-auto"

0 commit comments

Comments
 (0)