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" >
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:orientation="vertical"
15 android:title="@string/password_entry_editor_title" >
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" />
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 -->
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 -->
44 android:layout_width="match_parent"
45 android:layout_height="1dp"
46 android:background="?android:attr/dividerHorizontal" />
48 <!-- Save/Cancel/Delete buttons -->
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" >
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" />
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" />