Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: chrome/android/java/res/layout/password_entry_editor_interactive.xml

Issue 2156613002: Modify PasswordEntryEditor UI to display account credentials in a user-friendly manner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename icons Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/password_entry_editor_interactive.xml
diff --git a/chrome/android/java/res/layout/password_entry_editor_interactive.xml b/chrome/android/java/res/layout/password_entry_editor_interactive.xml
new file mode 100644
index 0000000000000000000000000000000000000000..79165c48ffb3bb7b39ee9b88af1c4da356fdd3d7
--- /dev/null
+++ b/chrome/android/java/res/layout/password_entry_editor_interactive.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 The Chromium Authors. All rights reserved.
+ 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_interactive"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:title="@string/password_entry_editor_title"
+ android:visibility="gone">
+
+ <TextView
+ android:text="@string/password_entry_editor_site_title"
+ 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">
+
+ <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
+ 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/ic_content_copy"
+ android:contentDescription="@string/password_entry_editor_copy_stored_site" />
+
+ </LinearLayout>
+
+ <TextView
+ android:text="@string/password_entry_editor_username_title"
+ 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">
+
+ <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"
+ android:contentDescription="@string/password_entry_editor_copy_stored_username" />
+
+ <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/ic_content_copy" />
+
+ </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" >
Bernhard Bauer 2016/07/21 09:06:40 Remove the weightSum and the space here as well.
dozsa 2016/07/21 09:43:42 Done.
+
+ <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/ic_visibility"
+ android:contentDescription="@string/password_entry_editor_view_stored_password" />
+
+ <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/ic_content_copy"
+ android:contentDescription="@string/password_entry_editor_copy_stored_password" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+</ScrollView>

Powered by Google App Engine
This is Rietveld 408576698