Convert data usage warning/limit to a edit text + dropdown
Now choose between MB and GB, then type in the number for the limit. Bug: 27238018 Change-Id: I049be2be3ded52a9ed87e57348ed87b82dbb819c
This commit is contained in:
@@ -17,25 +17,27 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<NumberPicker
|
||||
<EditText
|
||||
android:id="@+id/bytes"
|
||||
android:layout_width="wrap_content"
|
||||
android:minWidth="48dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:minWidth="48dip"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="16dip"
|
||||
android:layout_marginEnd="16dip"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true" />
|
||||
android:focusableInTouchMode="true"
|
||||
android:inputType="numberDecimal" />
|
||||
|
||||
<TextView
|
||||
<Spinner
|
||||
android:id="@+id/size_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@*android:string/megabyteShort" />
|
||||
android:entries="@array/bytes_picker_sizes" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user