| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <ScrollView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:paddingBottom="@dimen/vertical_page_margin" |
| android:paddingLeft="@dimen/horizontal_page_margin" |
| android:paddingRight="@dimen/horizontal_page_margin" |
| android:paddingTop="@dimen/vertical_page_margin"> |
| |
| |
| <Switch |
| android:id="@+id/say_hello" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/allow_saying_hello"/> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/vertical_page_margin" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:labelFor="@id/message" |
| android:text="@string/message"/> |
| |
| <EditText |
| android:id="@id/message" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:inputType="text" |
| android:maxLines="1"/> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/vertical_page_margin" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:labelFor="@id/number" |
| android:text="@string/number"/> |
| |
| <EditText |
| android:id="@id/number" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:inputType="number" |
| android:maxLines="1"/> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/vertical_page_margin" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/rank"/> |
| |
| <Spinner |
| android:id="@+id/rank" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/margin_small"/> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/vertical_page_margin" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/approvals"/> |
| |
| <LinearLayout |
| android:id="@+id/approvals" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/margin_small" |
| android:orientation="vertical"/> |
| |
| </LinearLayout> |
| |
| <RelativeLayout |
| android:id="@+id/bundle_array_layout" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <TextView |
| android:id="@+id/items_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:text="@string/items"/> |
| |
| <LinearLayout |
| android:id="@+id/items" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:layout_alignParentTop="true" |
| android:layout_toEndOf="@id/items_label" |
| android:orientation="vertical" |
| android:paddingEnd="16dp" |
| android:paddingStart="16dp"/> |
| |
| <Button |
| android:id="@+id/item_add" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@id/items" |
| android:layout_toEndOf="@id/items_label" |
| android:text="@string/add"/> |
| |
| </RelativeLayout> |
| |
| </LinearLayout> |
| |
| </ScrollView> |