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.widget.ReaderModeControl |
| 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="#FFF" |
| 14 android:gravity="center_vertical|start" |
| 15 android:orientation="vertical" |
| 16 > |
| 17 <RelativeLayout |
| 18 android:layout_width="match_parent" |
| 19 android:layout_height="56dp"> |
| 20 <ImageView |
| 21 android:id="@+id/main_icon" |
| 22 android:src="@drawable/reader_mode_icon" |
| 23 android:layout_width="wrap_content" |
| 24 android:layout_height="wrap_content" |
| 25 android:layout_marginStart="16dp" |
| 26 android:layout_alignParentStart="true" |
| 27 android:layout_centerVertical="true" |
| 28 android:contentDescription="@null" |
| 29 /> |
| 30 <TextView |
| 31 android:id="@+id/main_text" |
| 32 android:text="@string/reader_view_text" |
| 33 android:layout_width="wrap_content" |
| 34 android:layout_height="wrap_content" |
| 35 android:layout_marginStart="8dp" |
| 36 android:layout_marginEnd="8dp" |
| 37 android:layout_toEndOf="@id/main_icon" |
| 38 android:layout_toStartOf="@+id/main_close" |
| 39 android:layout_centerVertical="true" |
| 40 android:ellipsize="end" |
| 41 android:singleLine="true" |
| 42 android:fontFamily="sans-serif" |
| 43 android:textColor="#333333" |
| 44 android:textSize="@dimen/reader_mode_text_size" |
| 45 /> |
| 46 <ImageView |
| 47 android:id="@+id/main_close" |
| 48 android:src="@drawable/btn_close" |
| 49 android:layout_width="48dp" |
| 50 android:layout_height="48dp" |
| 51 android:scaleType="centerInside" |
| 52 android:layout_marginEnd="16dp" |
| 53 android:layout_alignParentEnd="true" |
| 54 android:layout_centerVertical="true" |
| 55 android:contentDescription="@null" |
| 56 /> |
| 57 </RelativeLayout> |
| 58 </org.chromium.chrome.browser.widget.ReaderModeControl> |
OLD | NEW |