Index: demos/src/main/res/layout/display_action_bar_item_setting.xml |
diff --git a/demos/src/main/res/layout/display_action_bar_item_setting.xml b/demos/src/main/res/layout/display_action_bar_item_setting.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1afec5dc803304193b48af2d1abb84c1a1f2e577 |
--- /dev/null |
+++ b/demos/src/main/res/layout/display_action_bar_item_setting.xml |
@@ -0,0 +1,80 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright 2015 Google Inc. All Rights Reserved. |
+ |
+ 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. |
+--> |
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
+ xmlns:tools="http://schemas.android.com/tools" |
+ android:layout_width="match_parent" |
Ian Wen
2016/03/21 18:46:28
A general guideline for all of the xml layout file
|
+ android:layout_height="match_parent" |
+ android:orientation="vertical" |
+ android:id="@+id/actiona_bar_item" |
+ tools:context=".advanced_ui_setting"> |
+ |
+ <LinearLayout |
+ android:layout_width="fill_parent" |
+ android:orientation="horizontal" |
+ android:layout_height="@dimen/view_height"> |
+ <TextView |
+ android:layout_width="wrap_content" |
+ android:text='Description ' |
+ android:textSize="@dimen/abc_text_size_medium_material" |
+ android:layout_height="@dimen/view_height" /> |
+ <EditText |
+ android:id="@+id/item_description" |
+ android:hint="Description for the action." |
+ android:layout_width="wrap_content" |
+ android:textSize="@dimen/abc_text_size_medium_material" |
+ android:layout_height="wrap_content" |
+ android:inputType="text" /> |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:gravity="right"> |
+ <Button |
+ android:id="@+id/select_file" |
+ android:layout_width="30dp" |
+ android:layout_height="45dp" |
+ android:background="@android:drawable/ic_menu_search" /> |
+ |
+ <Button |
+ android:id="@+id/item_delete" |
+ android:layout_width="30dp" |
+ android:layout_height="45dp" |
+ android:background="@android:drawable/ic_menu_delete" /> |
+ </LinearLayout> |
+ </LinearLayout> |
+ |
+ <LinearLayout |
+ android:layout_width="fill_parent" |
+ android:orientation="horizontal" |
+ android:layout_height="@dimen/view_height"> |
+ <TextView |
+ android:layout_width="wrap_content" |
+ android:text="Intent " |
+ android:textSize="@dimen/abc_text_size_medium_material" |
+ android:layout_height="@dimen/view_height" /> |
+ <Spinner |
+ android:paddingLeft="@dimen/spinner_padding_left" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:id="@+id/item_intent" /> |
+ </LinearLayout> |
+ |
+ <ImageView |
+ android:paddingTop="@dimen/view_vertical_margin" |
+ android:id="@+id/item_image" |
+ android:layout_gravity="center" |
+ android:layout_width="100dp" |
+ android:layout_height="100dp" /> |
+</LinearLayout> |