| OLD | NEW |
| 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 <resources xmlns:tools="http://schemas.android.com/tools"> | 6 <resources xmlns:tools="http://schemas.android.com/tools"> |
| 7 <!-- Q: Why put style resources under values-v17/ ? | 7 <!-- Q: Why put style resources under values-v17/ ? |
| 8 A: Problem: | 8 A: Problem: |
| 9 1. paddingStart causes a crash on Galaxy Tab&Note b/8351339. | 9 1. paddingStart causes a crash on Galaxy Tab&Note b/8351339. |
| 10 2. So we wrote a build script(generate_v14_compatible_resources.py)
to convert | 10 2. So we wrote a build script(generate_v14_compatible_resources.py)
to convert |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 <!-- Bookmarks --> | 425 <!-- Bookmarks --> |
| 426 <style name="BookmarkTitleBarButton"> | 426 <style name="BookmarkTitleBarButton"> |
| 427 <item name="android:layout_width">wrap_content</item> | 427 <item name="android:layout_width">wrap_content</item> |
| 428 <item name="android:layout_height">wrap_content</item> | 428 <item name="android:layout_height">wrap_content</item> |
| 429 <item name="android:background">@null</item> | 429 <item name="android:background">@null</item> |
| 430 <item name="android:padding">15dp</item> | 430 <item name="android:padding">15dp</item> |
| 431 </style> | 431 </style> |
| 432 <style name="BookmarkMenuStyle" parent="Widget.AppCompat.ListPopupWindow"> | 432 <style name="BookmarkMenuStyle" parent="Widget.AppCompat.ListPopupWindow"> |
| 433 <item name="android:popupBackground">@drawable/menu_bg</item> | 433 <item name="android:popupBackground">@drawable/menu_bg</item> |
| 434 </style> | 434 </style> |
| 435 <style name="BookmarkDrawerItemStyle"> | |
| 436 <item name="android:layout_width">match_parent</item> | |
| 437 <item name="android:layout_height">?android:attr/listPreferredItemHeight
Small</item> | |
| 438 <item name="android:textAlignment">viewStart</item> | |
| 439 <item name="android:gravity">start|center_vertical</item> | |
| 440 <item name="android:paddingStart">@dimen/bookmark_drawer_drawable_paddin
g</item> | |
| 441 <item name="android:paddingEnd">@dimen/bookmark_drawer_drawable_padding<
/item> | |
| 442 <item name="android:singleLine">true</item> | |
| 443 <item name="android:textAppearance">?android:attr/textAppearanceLargePop
upMenu</item> | |
| 444 <item name="android:textSize">14sp</item> | |
| 445 </style> | |
| 446 | 435 |
| 447 <!-- Contextual Search styles --> | 436 <!-- Contextual Search styles --> |
| 448 <style name="ContextualSearchTextViewLayout"> | 437 <style name="ContextualSearchTextViewLayout"> |
| 449 <item name="android:layout_width">match_parent</item> | 438 <item name="android:layout_width">match_parent</item> |
| 450 <item name="android:layout_height">wrap_content</item> | 439 <item name="android:layout_height">wrap_content</item> |
| 451 <item name="android:layout_gravity">bottom</item> | 440 <item name="android:layout_gravity">bottom</item> |
| 452 <item name="android:background">#FFF</item> | 441 <item name="android:background">#FFF</item> |
| 453 <item name="android:visibility">invisible</item> | 442 <item name="android:visibility">invisible</item> |
| 454 <!-- 60dp padding minus 7dp for fading edge --> | 443 <!-- 60dp padding minus 7dp for fading edge --> |
| 455 <item name="android:paddingStart">53dp</item> | 444 <item name="android:paddingStart">53dp</item> |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 <style name="IncognitoNewTabLearnMoreLink"> | 704 <style name="IncognitoNewTabLearnMoreLink"> |
| 716 <item name="android:background">?attr/listChoiceBackgroundIndicator</ite
m> | 705 <item name="android:background">?attr/listChoiceBackgroundIndicator</ite
m> |
| 717 <item name="android:clickable">true</item> | 706 <item name="android:clickable">true</item> |
| 718 <item name="android:focusable">true</item> | 707 <item name="android:focusable">true</item> |
| 719 <item name="android:textSize">14sp</item> | 708 <item name="android:textSize">14sp</item> |
| 720 <item name="android:textAllCaps">true</item> | 709 <item name="android:textAllCaps">true</item> |
| 721 <item name="android:padding">16dp</item> | 710 <item name="android:padding">16dp</item> |
| 722 </style> | 711 </style> |
| 723 | 712 |
| 724 </resources> | 713 </resources> |
| OLD | NEW |