]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/bookmarks_databaseview_item_linearlayout.xml
Remove all the custom attr entries. https://redmine.stoutner.com/issues/1189
[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-2024 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     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:tools="http://schemas.android.com/tools"
24     android:layout_height="wrap_content"
25     android:layout_width="match_parent"
26     android:orientation="vertical"
27     android:background="@drawable/list_selector" >
28
29     <!-- First row. -->
30     <LinearLayout
31         android:layout_height="wrap_content"
32         android:layout_width="match_parent"
33         android:layout_marginTop="10dp"
34         android:layout_marginStart="10dp"
35         android:layout_marginEnd="10dp"
36         android:orientation="horizontal" >
37
38         <!-- Database ID. -->
39         <TextView
40             android:id="@+id/database_id_textview"
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         <!-- Favorite icon. -->
49         <ImageView
50             android:id="@+id/favorite_icon_imageview"
51             android:layout_width="30dp"
52             android:layout_height="30dp"
53             android:layout_gravity="center_vertical"
54             android:layout_marginEnd="10dp"
55             tools:ignore="ContentDescription" />
56
57         <!-- Name. -->
58         <TextView
59             android:id="@+id/name_textview"
60             android:layout_height="wrap_content"
61             android:layout_width="wrap_content"
62             android:textColor="?android:attr/textColorPrimary"
63             android:textSize="22sp"
64             android:ellipsize="end"
65             android:lines="1" />
66
67         <!-- Folder ID. -->
68         <TextView
69             android:id="@+id/folder_id_textview"
70             android:layout_height="wrap_content"
71             android:layout_width="wrap_content"
72             android:textColor="@color/gray_500"
73             android:textSize="22sp"
74             android:ellipsize="end"
75             android:lines="1" />
76     </LinearLayout>
77
78     <!-- Second row - URL. -->
79     <TextView
80         android:id="@+id/url_textview"
81         android:layout_height="wrap_content"
82         android:layout_width="wrap_content"
83         android:layout_marginStart="13dp"
84         android:layout_marginEnd="10dp"
85         android:textColor="?android:attr/textColorPrimary"
86         android:textSize="22sp"
87         android:ellipsize="end"
88         android:lines="1" />
89
90     <!-- Third row. -->
91     <LinearLayout
92         android:layout_height="wrap_content"
93         android:layout_width="wrap_content"
94         android:layout_marginStart="10dp"
95         android:layout_marginEnd="10dp"
96         android:layout_marginBottom="10dp"
97         android:orientation="horizontal" >
98
99         <!-- Display order. -->
100         <TextView
101             android:id="@+id/display_order_textview"
102             android:layout_height="wrap_content"
103             android:layout_width="50dp"
104             android:layout_marginEnd="10dp"
105             android:gravity="end"
106             android:textColor="?android:attr/textColorPrimary"
107             android:textSize="22sp" />
108
109         <!-- Parent folder icon. -->
110         <ImageView
111             android:id="@+id/parent_folder_icon_imageview"
112             android:layout_height="30dp"
113             android:layout_width="30dp"
114             android:layout_gravity="center_vertical"
115             android:layout_marginEnd="10dp"
116             android:src="@drawable/folder_gray"
117             tools:ignore="ContentDescription" />
118
119         <!-- Parent folder name. -->
120         <TextView
121             android:id="@+id/parent_folder_textview"
122             android:layout_height="wrap_content"
123             android:layout_width="wrap_content"
124             android:textSize="22sp"
125             android:textStyle="italic"
126             android:ellipsize="end"
127             android:lines="1" />
128     </LinearLayout>
129 </LinearLayout>