| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2010 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:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <!-- The touch target for enabling/disabling "My Tag". --> |
| <RelativeLayout |
| android:id="@+id/toggle_enabled_target" |
| android:padding="8dip" |
| android:focusable="true" |
| android:focusableInTouchMode="true" |
| android:orientation="horizontal" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <!-- The checkbox simply presents state to the user - its parent |
| is the real click target --> |
| <CheckBox android:id="@+id/toggle_enabled_checkbox" |
| android:layout_marginRight="4dip" |
| android:focusable="false" |
| android:focusableInTouchMode="false" |
| android:clickable="false" |
| android:layout_gravity="center_vertical" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| |
| <TextView |
| android:id="@+id/toggle_enabled_hint_title" |
| android:text="@string/turn_on_my_tag" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:layout_toRightOf="@+id/toggle_enabled_checkbox" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| |
| <TextView |
| android:text="@string/turn_on_my_tag_subtitle" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| android:layout_toRightOf="@+id/toggle_enabled_checkbox" |
| android:layout_below="@+id/toggle_enabled_hint_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| </RelativeLayout> |
| |
| <include layout="@layout/tag_divider" /> |
| |
| <!-- Tag text --> |
| <LinearLayout |
| android:padding="8dip" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <TextView |
| android:text="@string/tag_text" |
| style="@style/record_title" |
| /> |
| |
| <EditText |
| android:id="@+id/input_tag_text" |
| android:inputType="textMultiLine" |
| android:lines="3" |
| android:gravity="top" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/content_parent" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" /> |
| |
| <include layout="@layout/tag_divider" /> |
| |
| <!-- Control to add content. --> |
| <TextView |
| android:id="@+id/add_content_target" |
| android:text="@string/add_content" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:paddingLeft="8dip" |
| android:paddingRight="8dip" |
| android:paddingTop="16dip" |
| android:paddingBottom="16dip" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" /> |
| |
| <include layout="@layout/tag_divider" /> |
| |
| </LinearLayout> |
| </ScrollView> |