New custom seekbar: more improvements
fix value txt being cutted when too long allow to set a custom string to show instead of the numeric value when value is defaultValue
This commit is contained in:
@@ -30,15 +30,15 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="44dp"
|
||||
android:gravity="start|center_vertical"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp">
|
||||
<TextView
|
||||
android:id="@+id/seekBarPrefValue"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="center"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<attr name="interval" format="integer" />
|
||||
<attr name="min" format="integer" />
|
||||
<attr name="units" format="string|reference" />
|
||||
<attr name="defaultText" format="string|reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- Value to pass to callback when restore button is pressed -->
|
||||
|
||||
Reference in New Issue
Block a user