Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / eb_edit.xml
blob00be737332f59fb0bb3c0c7e5200084925d6f3da
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright 2015 The Chromium Authors. All rights reserved.
4      Use of this source code is governed by a BSD-style license that can be
5      found in the LICENSE file.
6 -->
7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
8     xmlns:chrome="http://schemas.android.com/apk/res-auto"
9     android:layout_width="match_parent"
10     android:layout_height="match_parent"
11     android:orientation="vertical" >
13     <android.support.v7.widget.Toolbar
14         android:id="@+id/toolbar"
15         android:layout_width="match_parent"
16         android:layout_height="?attr/actionBarSize"
17         android:background="?attr/colorPrimary" />
19     <View
20         android:layout_width="match_parent"
21         android:layout_height="4dp"
22         android:layout_marginBottom="-4dp"
23         android:background="@drawable/eb_title_bar_shadow" />
25     <ScrollView
26         android:layout_width="match_parent"
27         android:layout_height="match_parent" >
29         <LinearLayout
30             android:layout_width="match_parent"
31             android:layout_height="wrap_content"
32             android:layout_marginEnd="16dp"
33             android:layout_marginStart="16dp"
34             android:orientation="vertical" >
36             <android.support.design.widget.TextInputLayout
37                 android:layout_width="match_parent"
38                 android:layout_height="wrap_content"
39                 android:layout_marginTop="22dp" >
40                 <!-- android:text is set here is to avoid UI jumping. -->
41                 <org.chromium.chrome.browser.widget.EmptyAlertEditText
42                     android:id="@+id/title_text"
43                     android:layout_width="match_parent"
44                     android:layout_height="wrap_content"
45                     android:hint="@string/bookmark_name"
46                     android:text="@string/bookmark_name"
47                     android:imeOptions="flagNoExtractUi"
48                     android:inputType="textCapSentences|textAutoCorrect"
49                     android:singleLine="true"
50                     chrome:alertMessage="@string/bookmark_missing_title" />
51             </android.support.design.widget.TextInputLayout>
53             <TextView
54                 android:layout_width="wrap_content"
55                 android:layout_height="wrap_content"
56                 android:layout_marginTop="18dp"
57                 android:layout_marginStart="3dp"
58                 android:layout_marginEnd="3dp"
59                 android:text="@string/bookmark_folder"
60                 android:textAppearance="@style/TextAppearance.AppCompat.Small"
61                 android:textSize="12sp" />
63             <TextView
64                 android:id="@+id/folder_text"
65                 android:layout_width="match_parent"
66                 android:layout_height="wrap_content"
67                 android:layout_marginTop="14dp"
68                 android:layout_marginStart="3dp"
69                 android:layout_marginEnd="3dp"
70                 android:textAppearance="@style/TextAppearance.AppCompat.Medium"
71                 android:textColor="@color/dark_mode_tint" />
73             <android.support.design.widget.TextInputLayout
74                 android:layout_width="match_parent"
75                 android:layout_height="wrap_content"
76                 android:layout_marginTop="24dp" >
78                 <org.chromium.chrome.browser.widget.EmptyAlertEditText
79                     android:id="@+id/url_text"
80                     android:layout_width="match_parent"
81                     android:layout_height="wrap_content"
82                     android:hint="@string/bookmark_url"
83                     android:text="@string/bookmark_url"
84                     android:imeOptions="flagNoExtractUi"
85                     android:inputType="textUri"
86                     android:singleLine="true"
87                     chrome:alertMessage="@string/bookmark_missing_url" />
88             </android.support.design.widget.TextInputLayout>
90             <LinearLayout
91                 android:id="@+id/offline_page_group"
92                 android:layout_width="match_parent"
93                 android:layout_height="wrap_content"
94                 android:orientation="horizontal"
95                 android:layout_marginTop="28dp"
96                 android:visibility="gone" >
98                 <TextView
99                     android:id="@+id/offline_page_info_text"
100                     android:layout_width="0dp"
101                     android:layout_height="wrap_content"
102                     android:layout_weight="1"
103                     android:layout_gravity="center_vertical"
104                     android:layout_marginStart="3dp"
105                     android:text="@string/bookmark_offline_page_none"
106                     android:textAlignment="viewStart"
107                     android:textAppearance="@style/TextAppearance.AppCompat.Medium"
108                     android:textColor="@color/dark_mode_tint"
109                     android:textSize="15sp" />
111                 <Button
112                     android:id="@+id/offline_page_save_remove_button"
113                     style="@style/ButtonCompatBorderless"
114                     android:layout_width="wrap_content"
115                     android:layout_height="wrap_content"
116                     android:layout_gravity="center_vertical"
117                     android:textAllCaps="true"
118                     android:textColor="@color/light_active_color"
119                     android:textSize="15sp" />
121             </LinearLayout>
122         </LinearLayout>
123     </ScrollView>
124 </LinearLayout>