Durable Storage: Refactor browser test and test the basic "deny" flow.
[chromium-blink-merge.git] / chrome / android / java / res / layout / eb_edit.xml
bloba8254096fdac7d8f7b5a9018b19a15208f9ac2c3
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>
89         </LinearLayout>
90     </ScrollView>
91 </LinearLayout>