You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an amazing image slider in Android platform. I decide to open source this because there is really not an attractive,and convenient slide widget in Android.
4
4
@@ -12,13 +12,11 @@ You can easily load image from net,drawable or file. And there are many kind of
12
12
13
13
##Usage
14
14
15
-
[Wiki](https://github.com/daimajia/AndroidImageSlider/wiki) is under construction. :-D
16
-
17
15
Step1: add dependencies in build.gradle.
18
16
19
17
```groovy
20
18
dependencies {
21
-
compile 'com.daimajia.slider:library:1.0@aar'
19
+
compile 'com.daimajia.slider:library:1.0.1@aar'
22
20
}
23
21
```
24
22
@@ -49,69 +47,15 @@ There are some default indicators, while,if you want to custom your own indicato
- `pager_animation_span` : the slider animation time length. integer, milliseconds
73
-
74
-
75
-
###PagerIndicator
76
-
77
-
PagerIndicator is extended from LinearLayout. It is bind with a adapter, detect the adapter item count by `adapter.getCount()` , and then add `ImageView` into the LinearLayout.
78
-
79
-
There are two kind indicators, `selected` status and `unselected` status.
80
-
81
-
- Both properties:
82
-
83
-
- `shape` : oval(default) | rect , the shape of indicator (if you set your custom drawable, then this will not work).
84
-
-`visibility` visibile | invisible
85
-
86
-
- Selected indicator's properties:
87
-
- `selected_drawable` : if you set this drawable, then the below settings will not work.
88
-
- `selected_color`
89
-
- `selected_width`
90
-
- `selected_height`
91
-
- `selected_padding_left`
92
-
- `selected_padding_right`
93
-
- `selected_padding_top`
94
-
- `selected_padding_bottom`
95
-
96
-
- Unselected indicator properties:
97
-
- `unselected_drawable` : if you set this drawable, then the below settings will not work.
98
-
- `unselected_color`
99
-
- `unselected_width`
100
-
- `unselected_height`
101
-
- `unselected_padding_left`
102
-
- `unselected_padding_right`
103
-
- `unselected_padding_top`
104
-
- `unselected_padding_bottom`
105
-
106
-
###BaseTransformer
107
-
108
-
A [PageTransformer]((http://stuff.mit.edu/afs/sipb/project/android/docs/reference/android/support/v4/view/ViewPager.PageTransformer.html)) is invoked whenever a visible/attached page is scrolled. You can add slide animation by `extends BaseTransformer`. And add your animation effect into `onTransform()` method. I supply a lot of [examples](./library/src/main/java/com/daimajia/slider/library/Transformers), if you are not so clear on `PageTransformer`, you can learn from them, and try to make your own.
109
-
110
-
###BaseAnimationInterface
111
-
112
-
If you need to manipulate your slide view(for example: add an animation to a target view, when slide animation is finished), to make it simple, I made an interface to help you to concentrate on the view that are animating. You can see [the example](./library/src/main/java/com/daimajia/slider/library/Animations/DescriptionAnimation.java) if you want to make your own.
A student in China mainland. I love Google, love Android, love everything that interesting. If you get any problems when using this library or you have an internship opportunity, please feel relax to [email me](mailto:[email protected]). :-D
61
+
A student in China mainland. I love Google, love Android, love everything that interesting. If you get any problems when using this library or you have an internship opportunity, please feel relax to [email me](mailto:[email protected]). :-D
0 commit comments