Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2587)

Unified Diff: demos/src/main/res/layout/dialogue_add_actionbar_item.xml

Issue 1603383003: color, package and action bar configuration. (Closed) Base URL: https://github.com/GoogleChrome/custom-tabs-client.git@master
Patch Set: Added action bar configuration item. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: demos/src/main/res/layout/dialogue_add_actionbar_item.xml
diff --git a/demos/src/main/res/layout/dialogue_add_actionbar_item.xml b/demos/src/main/res/layout/dialogue_add_actionbar_item.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6d4405e6280fe909ab94edb0ceb8425c3d8b1a3c
--- /dev/null
+++ b/demos/src/main/res/layout/dialogue_add_actionbar_item.xml
@@ -0,0 +1,99 @@
+<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="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
Ian Wen 2016/02/09 00:14:16 IIRC you can just use android:padding, instead of
BigBossZhiling 2016/02/09 01:03:12 Done.
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ android:paddingBottom="@dimen/activity_vertical_margin"
+ android:orientation="vertical"
+ tools:context=".AddActionBarItemDialog">
+
+ <EditText
+ android:id="@+id/description"
+ android:hint="Description for the action."
+ android:layout_width="match_parent"
+ android:textSize="@dimen/abc_text_size_medium_material"
+ android:text="Great Feature"
+ android:layout_height="wrap_content"
+ android:inputType="text" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:paddingTop="@dimen/view_vertical_margin"
+ android:layout_height="@dimen/view_height"
+ android:orientation="horizontal">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingLeft="5sp"
+ android:textSize="@dimen/abc_text_size_medium_material"
+ android:text="Action:"/>
+
+ <Spinner
+ android:paddingLeft="@dimen/spinner_padding_left"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/intent" />
+ </LinearLayout>
+
+ <ImageView
+ android:id="@+id/imageInDialogue"
+ android:layout_gravity="center"
+ android:layout_width="100sp"
+ android:layout_height="100sp"
+ android:src="@drawable/ic_action_name"
+ />
+
+ <LinearLayout
Ian Wen 2016/02/09 00:14:16 What is the point of nesting a single button in a
+ android:layout_width="match_parent"
+ android:paddingTop="@dimen/view_vertical_margin"
+ android:gravity="center"
+ android:layout_height="@dimen/view_height">
+
+ <Button
+ android:id="@+id/select_file"
+ android:layout_gravity="center_horizontal"
+ android:paddingTop="@dimen/button_padding_top"
+ android:layout_width="@dimen/button_width"
+ android:layout_height="@dimen/button_height"
+ android:textSize="@dimen/abc_text_size_medium_material"
+ android:text="Select Action Image" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:paddingTop="@dimen/view_vertical_margin"
+ android:gravity="center"
+ android:layout_height="@dimen/view_height">
+
+ <Button
+ android:id="@+id/save_item"
+ android:layout_gravity="center_horizontal"
+ android:paddingTop="@dimen/button_padding_top"
+ android:layout_width="@dimen/button_width"
+ android:layout_height="@dimen/button_height"
+ android:textSize="@dimen/abc_text_size_medium_material"
+ android:text="@string/label_save" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:paddingTop="@dimen/view_vertical_margin"
+ android:gravity="center"
+ android:layout_height="@dimen/view_height">
+
+ <Button
+ android:id="@+id/cancel"
+ android:layout_gravity="center_horizontal"
+ android:paddingTop="@dimen/button_padding_top"
+ android:layout_width="@dimen/button_width"
+ android:layout_height="@dimen/button_height"
+ android:textSize="@dimen/abc_text_size_medium_material"
+ android:text="cancel" />
+ </LinearLayout>
+
+
+</LinearLayout>

Powered by Google App Engine
This is Rietveld 408576698