Chromium Code Reviews| Index: chrome/android/java/res/layout/password_entry_editor_1.xml |
| diff --git a/chrome/android/java/res/layout/password_entry_editor_1.xml b/chrome/android/java/res/layout/password_entry_editor_1.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..45d438d77a4e1f5450c137e6febcc52dd6f25ea5 |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/password_entry_editor_1.xml |
| @@ -0,0 +1,152 @@ |
| +<?xml version="1.0" encoding="utf-8"?> |
| +<!-- Copyright 2014 The Chromium Authors. All rights reserved. |
|
vabr (Chromium)
2016/07/19 08:44:38
nit: 2016
dozsa
2016/07/19 10:01:04
Done.
|
| + Use of this source code is governed by a BSD-style license that can be |
| + found in the LICENSE file. --> |
| + |
| +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| + android:layout_width="match_parent" |
| + android:layout_height="match_parent" |
| + android:fillViewport="true" > |
| + |
| + <LinearLayout |
| + android:id="@+id/password_entry_editor_1" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:orientation="vertical" |
| + android:title="@string/password_entry_editor_title" > |
| + |
| + <TextView |
| + android:text="@string/password_entry_editor_link" |
| + android:textColor="@color/google_blue_700" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginStart="15dp" |
| + android:gravity="center_vertical" |
| + android:textAppearance="?android:attr/textAppearanceMedium" /> |
| + |
| + <LinearLayout |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:orientation="horizontal" |
| + android:weightSum="1" > |
| + |
| + <TextView |
| + android:id="@+id/password_entry_editor_url" |
| + android:textColor="@color/default_text_color" |
| + android:layout_width="fill_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginStart="15dp" |
| + android:textAppearance="?android:attr/textAppearanceMedium" /> |
| + |
| + <View |
|
vabr (Chromium)
2016/07/19 08:44:38
Just for my own understanding: what is the purpose
dozsa
2016/07/19 10:01:04
Yes, I'm using them so that the copy/view buttons
|
| + android:layout_width="0dp" |
| + android:layout_height="0dp" |
| + android:layout_weight="1" /> |
| + |
| + <ImageButton |
| + style="?android:attr/buttonStyleSmall" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_gravity="end" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginEnd="15dp" |
| + android:src="@drawable/clipboard_black" /> |
| + |
| + </LinearLayout> |
| + |
| + <TextView |
| + android:text="@string/password_entry_editor_username" |
| + android:textColor="@color/google_blue_700" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="5dp" |
| + android:layout_marginStart="15dp" |
| + android:gravity="center_vertical" |
| + android:textAppearance="?android:attr/textAppearanceMedium" /> |
| + |
| + <LinearLayout |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:orientation="horizontal" |
| + android:weightSum="1" > |
| + |
| + <TextView |
| + android:id="@+id/password_entry_editor_name" |
| + android:textColor="@color/default_text_color" |
| + android:layout_width="fill_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginStart="15dp" |
| + android:textAppearance="?android:attr/textAppearanceMedium" /> |
| + |
| + <View |
| + android:layout_width="0dp" |
| + android:layout_height="0dp" |
| + android:layout_weight="1" /> |
| + |
| + <ImageButton |
| + style="?android:attr/buttonStyleSmall" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_gravity="end" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginEnd="15dp" |
| + android:src="@drawable/clipboard_black" /> |
| + |
| + </LinearLayout> |
| + |
| + <TextView |
| + android:text="@string/password_entry_editor_password" |
| + android:textColor="@color/google_blue_700" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="5dp" |
| + android:layout_marginStart="15dp" |
| + android:gravity="center_vertical" |
| + android:textAppearance="?android:attr/textAppearanceMedium" /> |
| + |
| + <LinearLayout |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:orientation="horizontal" |
| + android:weightSum="1" > |
| + |
| + <TextView |
| + android:id="@+id/password_entry_editor_password" |
| + android:textColor="@color/default_text_color" |
| + android:layout_width="fill_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginStart="15dp" |
| + android:textAppearance="?android:attr/textAppearanceMedium" /> |
| + |
| + <View |
| + android:layout_width="0dp" |
| + android:layout_height="0dp" |
| + android:layout_weight="1" /> |
| + |
| + <ImageButton |
| + style="?android:attr/buttonStyleSmall" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_gravity="end" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginEnd="15dp" |
| + android:src="@drawable/eye_black" /> |
| + |
| + <ImageButton |
| + style="?android:attr/buttonStyleSmall" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_gravity="end" |
| + android:layout_marginTop="10dp" |
| + android:layout_marginEnd="15dp" |
| + android:src="@drawable/clipboard_black" /> |
| + |
| + </LinearLayout> |
| + |
| + </LinearLayout> |
| + |
| +</ScrollView> |