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

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

Issue 1603383003: color, package and action bar configuration. (Closed) Base URL: https://github.com/GoogleChrome/custom-tabs-client.git@master
Patch Set: fixes Created 4 years, 9 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/advanced_ui_setting.xml
diff --git a/demos/src/main/res/layout/advanced_ui_setting.xml b/demos/src/main/res/layout/advanced_ui_setting.xml
new file mode 100644
index 0000000000000000000000000000000000000000..24355e72ab462e0b2eb565fde2cb1c2bee971317
--- /dev/null
+++ b/demos/src/main/res/layout/advanced_ui_setting.xml
@@ -0,0 +1,97 @@
+<?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.
+-->
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Ian Wen 2016/03/16 01:35:30 This file is not properly formatted.
BigBossZhiling 2016/03/18 00:59:07 Done.
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/advanced_ui_setting_linear_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ android:paddingBottom="@dimen/activity_vertical_margin"
+ android:orientation="vertical"
+ tools:context=".CustomUIActivity">
+
+ <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:textSize="@dimen/abc_text_size_medium_material"
+ android:text="@string/label_package"/>
+
+ <Spinner
+ android:paddingLeft="@dimen/spinner_padding_left"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/spinner_package" />
+ </LinearLayout>
+
+ <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:textSize="@dimen/abc_text_size_medium_material"
+ android:text="@string/label_toolbar_color"/>
+
+ <Spinner
+ android:paddingLeft="@dimen/spinner_padding_left"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:id="@+id/spinner_color" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:id="@+id/actionbar_items"
+ android:paddingTop="@dimen/view_vertical_margin"
+ android:gravity="center"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+ </LinearLayout>
+
+ <Button
+ android:id="@+id/add_actionbar_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_add_action_bar_item" />
+
+ <Button
+ android:id="@+id/save_setting"
+ 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>
+</ScrollView>

Powered by Google App Engine
This is Rietveld 408576698