]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/bookmarks_databaseview_item_linearlayout.xml
First wrong button text in View Headers in night theme. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_databaseview_item_linearlayout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2017,2019,2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser Android 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 Android 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 Android.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <LinearLayout
22     android:id="@+id/bookmarks_databaseview_item_linearlayout"
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     xmlns:tools="http://schemas.android.com/tools"
25     android:layout_height="wrap_content"
26     android:layout_width="match_parent"
27     android:orientation="vertical"
28     android:background="?attr/listSelectorDrawable" >
29
30     <!-- First row. -->
31     <LinearLayout
32         android:layout_height="wrap_content"
33         android:layout_width="match_parent"
34         android:layout_marginTop="10dp"
35         android:layout_marginStart="10dp"
36         android:layout_marginEnd="10dp"
37         android:orientation="horizontal" >
38
39         <TextView
40             android:id="@+id/bookmarks_databaseview_database_id"
41             android:layout_height="wrap_content"
42             android:layout_width="50dp"
43             android:layout_marginEnd="10dp"
44             android:gravity="end"
45             android:textColor="@color/gray_500"
46             android:textSize="22sp" />
47
48         <ImageView
49             android:id="@+id/bookmarks_databaseview_favorite_icon"
50             android:layout_width="30dp"
51             android:layout_height="30dp"
52             android:layout_gravity="center_vertical"
53             android:layout_marginEnd="10dp"
54             tools:ignore="ContentDescription" />
55
56         <TextView
57             android:id='@+id/bookmarks_databaseview_bookmark_name'
58             android:layout_height="wrap_content"
59             android:layout_width="wrap_content"
60             android:textColor="?android:attr/textColorPrimary"
61             android:textSize="22sp"
62             android:ellipsize="end"
63             android:lines="1" />
64     </LinearLayout>
65
66     <!-- Second row. -->
67     <TextView
68         android:id="@+id/bookmarks_databaseview_bookmark_url"
69         android:layout_height="wrap_content"
70         android:layout_width="wrap_content"
71         android:layout_marginStart="13dp"
72         android:layout_marginEnd="10dp"
73         android:textColor="?android:attr/textColorPrimary"
74         android:textSize="22sp"
75         android:ellipsize="end"
76         android:lines="1" />
77
78     <!-- Third row. -->
79     <LinearLayout
80         android:layout_height="wrap_content"
81         android:layout_width="wrap_content"
82         android:layout_marginStart="10dp"
83         android:layout_marginEnd="10dp"
84         android:layout_marginBottom="10dp"
85         android:orientation="horizontal" >
86
87         <TextView
88             android:id="@+id/bookmarks_databaseview_display_order"
89             android:layout_height="wrap_content"
90             android:layout_width="50dp"
91             android:layout_marginEnd="10dp"
92             android:gravity="end"
93             android:textColor="?android:attr/textColorPrimary"
94             android:textSize="22sp" />
95
96         <ImageView
97             android:id="@+id/bookmarks_databaseview_parent_folder_icon"
98             android:layout_height="30dp"
99             android:layout_width="30dp"
100             android:layout_gravity="center_vertical"
101             android:layout_marginEnd="10dp"
102             android:src="@drawable/folder_gray"
103             tools:ignore="ContentDescription" />
104
105         <TextView
106             android:id="@+id/bookmarks_databaseview_parent_folder"
107             android:layout_height="wrap_content"
108             android:layout_width="wrap_content"
109             android:textSize="22sp"
110             android:textStyle="italic"
111             android:ellipsize="end"
112             android:lines="1" />
113     </LinearLayout>
114 </LinearLayout>