| OLD | NEW |
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2016 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 <!-- | 6 <!-- |
| 7 The TextView is wrapped in a FrameLayout so that the entire view can be cent
ered and use a width | 7 The TextView is wrapped in a FrameLayout so that the entire view can be cent
ered and use a width |
| 8 of wrap_content. A RecyclerView does not support layout_gravity alignment. T
he width of the | 8 of wrap_content. A RecyclerView does not support layout_gravity alignment. T
he width of the |
| 9 TextView must be wrap_content because otherwise clicks on the padding can ac
tivate its clickable | 9 TextView must be wrap_content because otherwise clicks on the padding can ac
tivate its clickable |
| 10 span. | 10 span. |
| 11 See http://crbug.com/660083 for more details. | 11 See http://crbug.com/660083 for more details. |
| 12 --> | 12 --> |
| 13 <FrameLayout | 13 <FrameLayout |
| 14 xmlns:android="http://schemas.android.com/apk/res/android" | 14 xmlns:android="http://schemas.android.com/apk/res/android" |
| 15 android:layout_width="match_parent" | 15 android:layout_width="match_parent" |
| 16 android:layout_height="wrap_content" | 16 android:layout_height="wrap_content" |
| 17 android:paddingTop="40dp" | 17 android:paddingTop="40dp" |
| 18 android:paddingBottom="18dp" | 18 android:paddingBottom="18dp" |
| 19 android:paddingStart="16dp" | 19 android:paddingStart="16dp" |
| 20 android:paddingEnd="16dp"> | 20 android:paddingEnd="16dp"> |
| 21 <TextView | 21 <TextView |
| 22 android:id="@+id/text" | 22 android:id="@+id/text" |
| 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:layout_gravity="center" | 25 android:layout_gravity="center" |
| 26 android:textColor="@color/snippets_text_color" | 26 android:textColor="@color/snippets_text_color" |
| 27 android:textSize="12sp" | 27 android:textSize="12sp"/> |
| 28 android:textStyle="italic"/> | |
| 29 </FrameLayout> | 28 </FrameLayout> |
| OLD | NEW |