Index: chrome/android/java/res/layout/homepage_preferences.xml |
diff --git a/chrome/android/java/res/layout/homepage_preferences.xml b/chrome/android/java/res/layout/homepage_preferences.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30324d7d924ff9dc4cf1926d130918dc03870144 |
--- /dev/null |
+++ b/chrome/android/java/res/layout/homepage_preferences.xml |
@@ -0,0 +1,65 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright 2015 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" |
+ style="@style/PreferenceScreenLayout" > |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:clickable="true" |
+ android:focusableInTouchMode="true" |
+ android:orientation="vertical" |
+ android:paddingTop="6dp" > |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:layout_margin="6dp" |
+ android:orientation="horizontal" > |
+ |
+ <TextView |
+ android:id="@+id/homepage_switch_label" |
+ android:layout_width="0dp" |
+ android:layout_weight="1" |
+ android:layout_height="wrap_content" |
+ android:singleLine="true" |
+ android:textAppearance="@style/PreferenceTextAppearanceMedium" /> |
+ |
+ <android.support.v7.widget.SwitchCompat |
+ android:id="@+id/homepage_switch" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:textOn="@string/text_on" |
+ android:textOff="@string/text_off" /> |
+ |
+ </LinearLayout> |
+ |
+ <EditText |
+ android:id="@+id/custom_uri" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:layout_marginTop="6dp" |
+ android:layout_marginBottom="6dp" |
+ android:hint="@string/options_startup_pages_placeholder" |
+ android:inputType="textUri" |
+ android:nextFocusLeft="@id/custom_uri" |
+ android:nextFocusUp="@id/custom_uri" |
+ android:singleLine="true" |
+ android:textAppearance="?android:attr/textAppearanceMedium" /> |
+ |
+ <CheckBox |
+ android:id="@+id/default_checkbox" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:layout_marginTop="6dp" |
+ android:layout_marginBottom="6dp" |
+ android:text="@string/homepage_default_title" /> |
+ </LinearLayout> |
+ |
+</ScrollView> |