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..936969a527d66120abdfbdc3dee8c49364a13168 |
--- /dev/null |
+++ b/demos/src/main/res/layout/display_action_bar_item_setting.xml |
@@ -0,0 +1,64 @@ |
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
+ xmlns:app="http://schemas.android.com/apk/res-auto" |
+ xmlns:tools="http://schemas.android.com/tools" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:orientation="vertical" |
+ android:id="@+id/actiona_bar_item" |
+ tools:context=".advanced_ui_setting"> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:paddingTop="@dimen/view_vertical_margin" |
+ android:orientation="horizontal" |
+ |
+ android:layout_height="@dimen/view_height"> |
+ <TextView |
+ android:id="@+id/item_description" |
+ android:layout_width="wrap_content" |
+ android:textSize="@dimen/abc_text_size_medium_material" |
+ android:layout_height="@dimen/view_height" /> |
+ <LinearLayout |
+ android:orientation="horizontal" |
+ android:layout_width="fill_parent" |
+ android:layout_height="wrap_content" |
+ android:gravity="right" > |
+ <Button |
+ android:id="@+id/item_delete" |
Ian Wen
2016/02/09 00:14:16
If there is only one item in a layout, remove that
|
+ android:layout_width="30sp" |
+ android:layout_height="wrap_content" |
+ android:background="@android:drawable/ic_menu_delete" /> |
+ </LinearLayout> |
+ </LinearLayout> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:paddingTop="@dimen/view_vertical_margin" |
+ android:orientation="horizontal" |
+ android:layout_height="@dimen/view_height"> |
+ <TextView |
+ android:id="@+id/item_intent" |
+ android:layout_width="match_parent" |
+ android:textSize="@dimen/abc_text_size_medium_material" |
+ android:layout_height="@dimen/view_height" /> |
+ </LinearLayout> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:paddingTop="@dimen/view_vertical_margin" |
+ android:orientation="horizontal" |
+ android:layout_height="@dimen/view_height"> |
+ <TextView |
+ android:id="@+id/item_image_title" |
+ android:layout_width="match_parent" |
+ android:textSize="@dimen/abc_text_size_medium_material" |
+ android:layout_height="@dimen/view_height" |
+ /> |
+ </LinearLayout> |
+ |
+ <ImageView |
+ android:id="@+id/item_image" |
+ android:layout_gravity="center" |
+ android:layout_width="100sp" |
+ android:layout_height="100sp" /> |
+</LinearLayout> |