OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. --> |
| 5 |
| 6 <!-- Reader Mode view. --> |
| 7 <org.chromium.chrome.browser.dom_distiller.ReaderModeButtonView |
| 8 xmlns:android="http://schemas.android.com/apk/res/android" |
| 9 android:id="@+id/reader_mode_view" |
| 10 android:layout_width="match_parent" |
| 11 android:layout_height="wrap_content" |
| 12 android:layout_gravity="center_vertical" |
| 13 android:background="@drawable/reader_mode_bar_background" |
| 14 android:paddingTop="16dp" |
| 15 android:paddingBottom="16dp" |
| 16 android:gravity="center_vertical|start" |
| 17 android:orientation="vertical" |
| 18 > |
| 19 <RelativeLayout |
| 20 android:layout_width="match_parent" |
| 21 android:layout_height="wrap_content"> |
| 22 <ImageView |
| 23 android:id="@+id/main_icon" |
| 24 android:src="@drawable/reader_mode_icon" |
| 25 android:layout_width="wrap_content" |
| 26 android:layout_height="wrap_content" |
| 27 android:layout_marginStart="16dp" |
| 28 android:layout_alignParentStart="true" |
| 29 android:layout_centerVertical="true" |
| 30 android:contentDescription="@null" |
| 31 /> |
| 32 <TextView |
| 33 android:id="@+id/main_text" |
| 34 android:text="@string/reader_view_text" |
| 35 android:layout_width="wrap_content" |
| 36 android:layout_height="wrap_content" |
| 37 android:layout_marginStart="8dp" |
| 38 android:layout_marginEnd="8dp" |
| 39 android:layout_toEndOf="@id/main_icon" |
| 40 android:layout_toStartOf="@+id/main_close" |
| 41 android:layout_centerVertical="true" |
| 42 android:ellipsize="end" |
| 43 android:singleLine="true" |
| 44 android:fontFamily="sans-serif" |
| 45 android:textColor="#333333" |
| 46 android:textSize="@dimen/reader_mode_text_size" |
| 47 /> |
| 48 <ImageView |
| 49 android:id="@+id/main_close" |
| 50 android:src="@drawable/btn_close" |
| 51 android:background="?attr/selectableItemBackground" |
| 52 android:layout_width="wrap_content" |
| 53 android:layout_height="wrap_content" |
| 54 android:layout_marginEnd="16dp" |
| 55 android:layout_alignParentEnd="true" |
| 56 android:layout_centerVertical="true" |
| 57 android:contentDescription="@null" |
| 58 /> |
| 59 </RelativeLayout> |
| 60 </org.chromium.chrome.browser.dom_distiller.ReaderModeButtonView> |
OLD | NEW |