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

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

Issue 2646313005: Implement additional parts of the new ui for CBD. (Closed)
Patch Set: fix review issues Created 3 years, 11 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/preference_spinner_one_line.xml
diff --git a/chrome/android/java/res/layout/preference_spinner_one_line.xml b/chrome/android/java/res/layout/preference_spinner_one_line.xml
new file mode 100644
index 0000000000000000000000000000000000000000..bd75b7e0043232689159faf32a9c242d1433a8e1
--- /dev/null
+++ b/chrome/android/java/res/layout/preference_spinner_one_line.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
Theresa 2017/01/27 03:30:11 nit: make this preference_spinner_single_line.xml
dullweber 2017/01/30 11:36:44 Done.
+<!-- Copyright 2016 The Chromium Authors. All rights reserved.
Theresa 2017/01/27 03:30:11 s/2016/2017
dullweber 2017/01/30 11:36:44 Done.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<!-- Layout used by SpinnerPreference if its singleLine is set to true. -->
+
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/PreferenceLayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/title"
+ style="@style/PreferenceTitle"
+ android:textAlignment="viewStart"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_alignParentStart="true"
+ android:layout_toStartOf="@id/spinner" />
+
+ <Spinner
+ android:id="@+id/spinner"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_alignParentEnd="true" />
+</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698