[Android] Make EmptyAlertEditText validate trimmed text and use more.
[chromium-blink-merge.git] / chrome / android / java / res / layout / eb_add_edit_folder_activity.xml
blob199487dd23732382b3d9fe460f5763b79b3c0991
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3      Use of this source code is governed by a BSD-style license that can be
4      found in the LICENSE file. -->
6 <LinearLayout
7     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:minHeight="@dimen/enhanced_bookmark_minimum_dialog_size_tablet"
12     android:orientation="vertical" >
14     <LinearLayout
15         android:layout_width="match_parent"
16         android:layout_height="@dimen/toolbar_height_no_shadow"
17         android:background="@color/default_primary_color" >
19         <ImageButton
20             android:id="@+id/back"
21             style="@style/EnhancedBookmarkTitleBarButton"
22             android:contentDescription="@string/accessibility_toolbar_btn_back"
23             android:src="@drawable/eb_back_normal" />
25         <TextView
26             android:id="@+id/dialog_title"
27             android:layout_width="0dp"
28             android:layout_height="match_parent"
29             android:layout_weight="1"
30             android:gravity="center_vertical"
31             android:singleLine="true"
32             android:textColor="#343434"
33             android:textSize="20sp" />
35         <ImageButton
36             android:id="@+id/save"
37             style="@style/EnhancedBookmarkTitleBarButton"
38             android:contentDescription="@string/save"
39             android:src="@drawable/eb_check_gray" />
41         <org.chromium.chrome.browser.widget.TintedImageButton
42             android:id="@+id/delete"
43             style="@style/EnhancedBookmarkTitleBarButton"
44             android:contentDescription="@string/delete"
45             android:src="@drawable/btn_trash"
46             chrome:tint="@color/dark_mode_tint" />
47     </LinearLayout>
49     <View
50         android:layout_width="match_parent"
51         android:layout_height="4dp"
52         android:layout_marginBottom="-4dp"
53         android:background="@drawable/eb_title_bar_shadow" />
55     <ScrollView
56         android:layout_width="match_parent"
57         android:layout_height="match_parent" >
59         <LinearLayout
60             android:layout_width="match_parent"
61             android:layout_height="wrap_content"
62             android:orientation="vertical"
63             android:clipToPadding="false" >
65             <org.chromium.chrome.browser.widget.EmptyAlertEditText
66                 android:id="@+id/folder_title"
67                 android:layout_width="match_parent"
68                 android:layout_height="wrap_content"
69                 android:layout_marginEnd="12dp"
70                 android:layout_marginStart="12dp"
71                 android:layout_marginTop="24dp"
72                 android:hint="@string/title"
73                 android:imeOptions="flagNoExtractUi"
74                 android:inputType="textCapSentences|textAutoCorrect"
75                 android:textSize="24sp"
76                 chrome:alertMessage="@string/bookmark_missing_title"  />
78             <TextView
79                 android:layout_width="wrap_content"
80                 android:layout_height="wrap_content"
81                 android:layout_marginBottom="4dp"
82                 android:layout_marginEnd="16dp"
83                 android:layout_marginStart="16dp"
84                 android:layout_marginTop="24dp"
85                 android:text="@string/enhanced_bookmark_parent_folder"
86                 android:textColor="@color/enhanced_bookmark_detail_section"
87                 android:textSize="14sp"
88                 android:textStyle="bold" />
90             <TextView
91                 android:id="@+id/parent_folder"
92                 android:layout_width="match_parent"
93                 android:layout_height="wrap_content"
94                 android:layout_marginStart="16dp"
95                 android:layout_marginTop="8dp"
96                 android:layout_marginBottom="32dp"
97                 android:textColor="@color/dark_mode_tint"
98                 android:textSize="16sp" />
99         </LinearLayout>
100     </ScrollView>
102 </LinearLayout>