Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / password_entry_editor.xml
blobbf79a3b5a763ca4158b3c2491f5e5689f623fac0
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
7     android:layout_width="match_parent"
8     android:layout_height="match_parent"
9     android:fillViewport="true" >
11     <LinearLayout
12         android:layout_width="match_parent"
13         android:layout_height="wrap_content"
14         android:orientation="vertical"
15         android:title="@string/password_entry_editor_title" >
17         <TextView
18             android:id="@+id/password_entry_editor_name"
19             android:layout_width="wrap_content"
20             android:layout_height="wrap_content"
21             android:layout_margin="2dp"
22             android:gravity="center_vertical"
23             android:textAppearance="?android:attr/textAppearanceMedium" />
25         <TextView
26             android:id="@+id/password_entry_editor_url"
27             android:layout_width="wrap_content"
28             android:layout_height="wrap_content"
29             android:layout_margin="2dp"
30             android:gravity="center_vertical"
31             android:textAppearance="?android:attr/textAppearanceMedium" />
33         <!-- Spacer to move the buttons to the bottom -->
35         <View
36             android:layout_width="0dp"
37             android:layout_height="0dp"
38             android:layout_weight="1"
39             android:minHeight="5dp" />
41         <!-- Top border for the buttons -->
43         <View
44             android:layout_width="match_parent"
45             android:layout_height="1dp"
46             android:background="?android:attr/dividerHorizontal" />
48         <!-- Save/Cancel/Delete buttons -->
50         <LinearLayout
51             style="?android:attr/buttonBarStyle"
52             android:layout_width="match_parent"
53             android:layout_height="wrap_content"
54             android:divider="?android:attr/dividerVertical"
55             android:dividerPadding="0dp"
56             android:orientation="horizontal"
57             android:showDividers="middle" >
59             <Button
60                 android:id="@+id/password_entry_editor_delete"
61                 style="?android:attr/buttonBarButtonStyle"
62                 android:layout_width="match_parent"
63                 android:layout_height="match_parent"
64                 android:layout_weight="1"
65                 android:focusable="true"
66                 android:text="@string/delete" />
68             <Button
69                 android:id="@+id/password_entry_editor_cancel"
70                 style="?android:attr/buttonBarButtonStyle"
71                 android:layout_width="match_parent"
72                 android:layout_height="match_parent"
73                 android:layout_weight="1"
74                 android:focusable="true"
75                 android:text="@string/cancel" />
76         </LinearLayout>
77     </LinearLayout>
79 </ScrollView>