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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 Google Inc. All Rights Reserved.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 -->
16 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
17 android:layout_width="fill_parent"
18 android:layout_height="fill_parent">
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:app="http://schemas.android.com/apk/res-auto"
21 xmlns:tools="http://schemas.android.com/tools"
22 android:id="@+id/advanced_ui_setting_linear_layout"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:paddingLeft="@dimen/activity_horizontal_margin"
26 android:paddingRight="@dimen/activity_horizontal_margin"
27 android:paddingTop="@dimen/activity_vertical_margin"
28 android:paddingBottom="@dimen/activity_vertical_margin"
29 android:orientation="vertical"
30 tools:context=".CustomUIActivity">
31
32 <LinearLayout
33 android:layout_width="match_parent"
34 android:paddingTop="@dimen/view_vertical_margin"
35 android:layout_height="@dimen/view_height"
36 android:orientation="horizontal">
37
38 <TextView
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:textSize="@dimen/abc_text_size_medium_material"
42 android:text="@string/label_package"/>
43
44 <Spinner
45 android:paddingLeft="@dimen/spinner_padding_left"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:id="@+id/spinner_package" />
49 </LinearLayout>
50
51 <LinearLayout
52 android:layout_width="match_parent"
53 android:paddingTop="@dimen/view_vertical_margin"
54 android:layout_height="@dimen/view_height"
55 android:orientation="horizontal">
56
57 <TextView
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:textSize="@dimen/abc_text_size_medium_material"
61 android:text="@string/label_toolbar_color"/>
62
63 <Spinner
64 android:paddingLeft="@dimen/spinner_padding_left"
65 android:layout_width="match_parent"
66 android:layout_height="wrap_content"
67 android:id="@+id/spinner_color" />
68 </LinearLayout>
69
70 <LinearLayout
71 android:layout_width="match_parent"
72 android:id="@+id/actionbar_items"
73 android:paddingTop="@dimen/view_vertical_margin"
74 android:gravity="center"
75 android:layout_height="0sp"
76 android:orientation="vertical">
77 </LinearLayout>
78
79
80 <LinearLayout
81 android:layout_width="match_parent"
82 android:paddingTop="@dimen/view_vertical_margin"
83 android:gravity="center"
84 android:layout_height="@dimen/view_height">
85
86 <Button
87 android:id="@+id/add_actionbar_item"
88 android:layout_gravity="center_horizontal"
89 android:paddingTop="@dimen/button_padding_top"
90 android:layout_width="@dimen/button_width"
91 android:layout_height="@dimen/button_height"
92 android:textSize="@dimen/abc_text_size_medium_material"
93 android:text="Add Action Bar Item" />
94 </LinearLayout>
95
96 <LinearLayout
97 android:layout_width="match_parent"
98 android:paddingTop="@dimen/view_vertical_margin"
99 android:gravity="center"
100 android:layout_height="@dimen/view_height">
101
102 <Button
103 android:id="@+id/save_setting"
104 android:layout_gravity="center_horizontal"
105 android:paddingTop="@dimen/button_padding_top"
106 android:layout_width="@dimen/button_width"
107 android:layout_height="@dimen/button_height"
108 android:textSize="@dimen/abc_text_size_medium_material"
109 android:text="@string/label_save" />
110 </LinearLayout>
111
112 </LinearLayout>
113 </ScrollView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698