Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / distilled_page_prefs_view.xml
blobf0a73c3809dd43bc8b0f6bbd4c31a7fa7f70a54e
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
4      Use of this source code is governed by a BSD-style license that can be
5      found in the LICENSE file.
6 -->
8 <org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView
9     xmlns:android="http://schemas.android.com/apk/res/android"
10     android:layout_width="match_parent"
11     android:layout_height="wrap_content"
12     android:orientation="vertical"
13     android:background="@drawable/distilled_page_pref_background"
14     android:padding="10dp" >
16     <RadioGroup
17         android:id="@+id/radio_button_group"
18         android:layout_width="match_parent"
19         android:layout_height="wrap_content"
20         android:orientation="horizontal" >
22         <RadioButton
23             android:id="@+id/light_mode"
24             android:text="@string/light_mode"
25             style="@style/DistilledPagePrefThemeButton" />
27         <RadioButton
28             android:id="@+id/dark_mode"
29             android:text="@string/dark_mode"
30             style="@style/DistilledPagePrefThemeButton" />
31         <RadioButton
32             android:id="@+id/sepia_mode"
33             android:text="@string/sepia_mode"
34             style="@style/DistilledPagePrefThemeButton" />
36     </RadioGroup>
38     <Spinner
39         android:id="@+id/font_family"
40         android:layout_width="match_parent"
41         android:layout_height="wrap_content"
42         android:layout_weight="1"
43         android:orientation="horizontal"
44         android:padding="10dp"/>
46     <LinearLayout
47         android:layout_width="match_parent"
48         android:layout_height="wrap_content"
49         android:orientation="horizontal"
50         android:layout_marginTop="3dp">
52         <TextView
53             android:id="@+id/font_size_percentage"
54             android:layout_width="wrap_content"
55             android:layout_height="match_parent"
56             android:layout_marginEnd="3dp"
57             android:layout_marginStart="3dp"
58             android:minWidth="50dp"
59             android:gravity="center"
60             android:textSize="17sp" />
62         <TextView
63             android:layout_width="wrap_content"
64             android:layout_height="match_parent"
65             android:gravity="center_vertical"
66             android:layout_marginStart="5dp"
67             android:textSize="13sp"
68             android:text="@string/text_size_signifier" />
70         <SeekBar
71             android:id="@+id/font_size"
72             android:layout_width="0dp"
73             android:layout_height="wrap_content"
74             android:layout_weight="1"
75             android:orientation="horizontal"
76             android:max="30" />
78         <TextView
79             android:layout_width="wrap_content"
80             android:layout_height="match_parent"
81             android:gravity="center_vertical"
82             android:layout_marginEnd="3dp"
83             android:textSize="20sp"
84             android:text="@string/text_size_signifier" />
86     </LinearLayout>
88 </org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView>