Open Scrounger opened 8 years ago
@AnderWeb :
After orientation change, the indicatorTextAppearance seems to be set to it's default value. I use the following layout:
<org.adw.library.widgets.discreteseekbar.DiscreteSeekBar android:id="@+id/discrete2" android:layout_width="match_parent" android:layout_height="wrap_content" app:dsb_allowTrackClickToDrag="false" app:dsb_indicatorColor="@color/colorPrimary" app:dsb_indicatorFormatter="\\o/ %d" app:dsb_indicatorTextAppearance="@style/CustomFloaterTextAppearance" app:dsb_progressColor="@color/colorPrimary" app:dsb_rippleColor="@color/colorPrimary" app:dsb_scrubberHeight="2dp" />
style.xml: `
<item name="android:textStyle">bold</item> <item name="android:textColor">@android:color/white</item> <item name="android:shadowColor">@color/tab_unselected</item> <item name="android:shadowRadius">4</item> <item name="android:shadowDx">1</item> <item name="android:shadowDy">3</item> </style>`
Take a look at the screenshot - you can recognize the size changing at the grid lines: myLayout:
after orientation change:
@AnderWeb :
After orientation change, the indicatorTextAppearance seems to be set to it's default value. I use the following layout:
<org.adw.library.widgets.discreteseekbar.DiscreteSeekBar android:id="@+id/discrete2" android:layout_width="match_parent" android:layout_height="wrap_content" app:dsb_allowTrackClickToDrag="false" app:dsb_indicatorColor="@color/colorPrimary" app:dsb_indicatorFormatter="\\o/ %d" app:dsb_indicatorTextAppearance="@style/CustomFloaterTextAppearance" app:dsb_progressColor="@color/colorPrimary" app:dsb_rippleColor="@color/colorPrimary" app:dsb_scrubberHeight="2dp" />
style.xml: `
Take a look at the screenshot - you can recognize the size changing at the grid lines: myLayout:
after orientation change: