Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:orientation="horizontal" |
| 19 | android:gravity="center" |
Jason Monk | e4897d9 | 2016-02-21 11:39:42 -0500 | [diff] [blame] | 20 | android:paddingStart="16dp" |
| 21 | android:paddingEnd="16dp" |
| 22 | android:layout_width="match_parent" |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 23 | android:layout_height="wrap_content"> |
| 24 | |
Jason Monk | e4897d9 | 2016-02-21 11:39:42 -0500 | [diff] [blame] | 25 | <EditText |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 26 | android:id="@+id/bytes" |
Afzal | dde0140 | 2012-03-30 02:08:29 -0400 | [diff] [blame] | 27 | android:layout_width="wrap_content" |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 28 | android:layout_height="wrap_content" |
Jason Monk | e4897d9 | 2016-02-21 11:39:42 -0500 | [diff] [blame] | 29 | android:layout_weight="1" |
| 30 | android:minWidth="48dip" |
Bonian Chen | 779abeb | 2019-10-04 17:08:00 +0800 | [diff] [blame] | 31 | android:minHeight="48dp" |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 32 | android:layout_gravity="center_vertical" |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 33 | android:focusable="true" |
Jason Monk | e4897d9 | 2016-02-21 11:39:42 -0500 | [diff] [blame] | 34 | android:focusableInTouchMode="true" |
| 35 | android:inputType="numberDecimal" /> |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 36 | |
Jason Monk | e4897d9 | 2016-02-21 11:39:42 -0500 | [diff] [blame] | 37 | <Spinner |
| 38 | android:id="@+id/size_spinner" |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 39 | android:layout_width="wrap_content" |
Bonian Chen | 779abeb | 2019-10-04 17:08:00 +0800 | [diff] [blame] | 40 | android:layout_height="match_parent" |
Victor Chang | 7532567 | 2017-12-27 11:41:30 +0000 | [diff] [blame] | 41 | android:layout_gravity="center_vertical" |
| 42 | android:entries="@array/bytes_picker_sizes" /> |
Jeff Sharkey | a53188f | 2011-09-13 19:56:45 -0700 | [diff] [blame] | 43 | |
| 44 | </LinearLayout> |