Skip to content

Commit

Permalink
Add default img and error code
Browse files Browse the repository at this point in the history
  • Loading branch information
lightSky committed Aug 2, 2015
1 parent 6c3c8aa commit 433ae1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ indicator_type:the style enum of Indicator
- `indicator_anim_circle` AnimCircleIndicator
- `indicator_anim_line` is AnimLineIndicator

You can custome different anim and set for indicator.
You can custome different anim or slideview for indicator.

## Including In Your Project
Just add the following statement in your build.gradle
Expand Down Expand Up @@ -66,6 +66,8 @@ public class MainActivity extends Activity {
textSliderView
.image(url_maps.get(name))
.setScaleType(BaseSliderView.ScaleType.Fit)
.showImageResForEmpty(R.drawable.img_default)
.showImageResForError(R.drawable.img_error)
.setOnSliderClickListener(this);
textSliderView.getBundle()
.putString("extra",name);
Expand Down

0 comments on commit 433ae1b

Please sign in to comment.