@@ -54,17 +54,16 @@ public class SliderView extends FrameLayout {
54
54
public static final int AUTO_CYCLE_DIRECTION_BACK_AND_FORTH = 2 ;
55
55
56
56
private final Handler mHandler = new Handler ();
57
+ private boolean mFlagBackAndForth ;
57
58
private boolean mIsAutoCycle ;
59
+ private int mAutoCycleDirection ;
58
60
private int mScrollTimeInSec ;
59
61
private CircularSliderHandle mCircularSliderHandle ;
60
62
private PageIndicatorView mPagerIndicator ;
61
63
private DataSetObserver mDataSetObserver ;
62
64
private PagerAdapter mPagerAdapter ;
63
65
private Runnable mSliderRunnable ;
64
66
private SliderPager mSliderPager ;
65
- private int mAutoCycleDirection ;
66
- private boolean mFlagBackAndForth ;
67
-
68
67
69
68
public SliderView (Context context ) {
70
69
super (context );
@@ -100,7 +99,7 @@ private void setUpAttributes(Context context, AttributeSet attrs) {
100
99
int indicatorUnselectedColor = typedArray .getColor (R .styleable .SliderView_sliderIndicatorUnselectedColor , Color .parseColor (ColorAnimation .DEFAULT_UNSELECTED_COLOR ));
101
100
int indicatorSelectedColor = typedArray .getColor (R .styleable .SliderView_sliderIndicatorSelectedColor , Color .parseColor (ColorAnimation .DEFAULT_SELECTED_COLOR ));
102
101
int indicatorAnimationDuration = typedArray .getInt (R .styleable .SliderView_sliderIndicatorAnimationDuration , BaseAnimation .DEFAULT_ANIMATION_TIME );
103
- int indicatorRtlMode = typedArray .getInt (R .styleable .PageIndicatorView_piv_rtl_mode , RtlMode .Off .ordinal ());
102
+ int indicatorRtlMode = typedArray .getInt (R .styleable .SliderView_sliderIndicatorRtlMode , RtlMode .Off .ordinal ());
104
103
RtlMode rtlMode = getRtlMode (indicatorRtlMode );
105
104
int sliderAnimationDuration = typedArray .getInt (R .styleable .SliderView_sliderAnimationDuration , SliderPager .DEFAULT_SCROLL_DURATION );
106
105
int sliderScrollTimeInSec = typedArray .getInt (R .styleable .SliderView_sliderScrollTimeInSec , 2 );
0 commit comments