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

Side by Side Diff: chrome/android/java/res/layout/preference_category.xml

Issue 788053007: Styling tweaks for preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restrict padding manipulation to L+ Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/java/res/values/dimens.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <!-- Emulates Android's preference_category_material.xml on pre-L devices. 6 <!-- Emulates Android's preference_category_material.xml on pre-L devices.
7 Also used as the layout for IconPreferenceCategory. --> 7 Also used as the layout for IconPreferenceCategory. -->
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
9 android:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="wrap_content" 10 android:layout_height="wrap_content"
11 android:gravity="center_vertical" 11 android:gravity="center_vertical"
12 style="@style/PreferenceCategoryWithButtonStyle" > 12 style="@style/PreferenceCategoryWithButtonStyle" >
13 13
14 <TextView 14 <TextView
15 android:id="@android:id/title" 15 android:id="@android:id/title"
16 android:layout_width="0dp" 16 android:layout_width="0dp"
17 android:layout_weight="1" 17 android:layout_weight="1"
18 android:layout_height="wrap_content" 18 android:layout_height="wrap_content"
19 android:textAppearance="@style/PreferenceCategoryTextStyle" /> 19 android:textAppearance="@style/PreferenceCategoryTextStyle" />
20 20
21 <ImageView 21 <ImageView
22 android:id="@android:id/icon" 22 android:id="@android:id/icon"
23 android:layout_width="wrap_content" 23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content" 24 android:layout_height="wrap_content"
25 android:minHeight="@dimen/min_touch_target_size"
26 android:minWidth="@dimen/min_touch_target_size"
27 android:scaleType="center"
25 android:background="?android:attr/selectableItemBackground" /> 28 android:background="?android:attr/selectableItemBackground" />
26 29
27 </LinearLayout> 30 </LinearLayout>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/res/values/dimens.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698