AndroidImageSlider
AndroidImageSlider copied to clipboard
I cannot set the PagerIndicator
Hello, I've got a puzzle when I use SliderLayout. My cod is like this.
<com.lalocal.lalocal.view.DisallowParentTouchSliderLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/ad_slider"
android:layout_width="match_parent"
android:layout_height="200dp"
android:orientation="vertical">
<com.daimajia.slider.library.Indicators.PagerIndicator
android:id="@+id/ad_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
custom:selected_color="@color/color_1a"
custom:unselected_color="#4c1a1a1a"
custom:shape="rect"
custom:selected_padding_left="2dp"
custom:selected_padding_right="2dp"
custom:unselected_padding_left="2dp"
custom:unselected_padding_right="2dp"
custom:selected_width="16dp"
custom:selected_height="3dp"
custom:unselected_width="16dp"
custom:unselected_height="3dp"
/>
</com.lalocal.lalocal.view.DisallowParentTouchSliderLayout>
As you can see, the shape is "rect", but what shows is the default style. I don't know why is like this. Could you help me? Thanks.
Did you get it working?