Move Clear and Exit to the top of the navigation menu. https://redmine.stoutner...
[PrivacyBrowser.git] / app / src / main / res / layout / custom_tab_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2017,2019 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <LinearLayout
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:app="http://schemas.android.com/apk/res-auto"
24     xmlns:tools="http://schemas.android.com/tools"
25     android:layout_height="match_parent"
26     android:layout_width="wrap_content"
27     android:orientation="horizontal"
28     tools:ignore="UseCompoundDrawables" >
29
30     <ImageView
31         android:id="@+id/favorite_icon_imageview"
32         android:src="@drawable/world"
33         android:layout_height="26dp"
34         android:layout_width="26dp"
35         android:layout_gravity="center_vertical"
36         android:layout_marginEnd="5dp"
37         android:contentDescription="@string/favorite_icon" />
38
39     <TextView
40         android:id="@+id/title_textview"
41         android:layout_height="match_parent"
42         android:layout_width="wrap_content"
43         android:gravity="center_vertical"
44         android:textSize="16sp"
45         android:text="@string/new_tab"
46         app:autoSizeTextType="uniform"
47         android:maxWidth="150dp"
48         android:maxLines="2"
49         android:ellipsize="end" />
50 </LinearLayout>