]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout-w900dp/domains_list.xml
801d7ccc184dc48df1e98f3ad3707ba75dc650b4
[PrivacyBrowserAndroid.git] / app / src / main / res / layout-w900dp / domains_list.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2017 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 <!-- `android:baselineAligned="False"` reduces unneeded computational overhead with `RecyclerViews`. -->
22 <LinearLayout
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     xmlns:tools="http://schemas.android.com/tools"
25     tools:context=".activities.DomainsActivity"
26     android:layout_width="match_parent"
27     android:layout_height="match_parent"
28     android:orientation="horizontal"
29     android:baselineAligned="false"
30     android:divider="?android:attr/dividerHorizontal"
31     android:showDividers="middle" >
32
33     <!-- `android:choiceMode="singleChoice" allows a selected domain to be highlighted. -->
34     <!-- `android:dividerHeight` must be specified with `android:divider` or the height will be `0dp`.  In our case we want the height to be `0dp`. -->
35     <ListView
36         android:id="@+id/domains_listview"
37         android:layout_height="match_parent"
38         android:layout_width="0dp"
39         android:layout_weight="2"
40         android:choiceMode="singleChoice"
41         android:divider="@color/white"
42         android:dividerHeight="0dp" />
43
44     <ScrollView
45         android:id="@+id/domain_settings_scrollview"
46         android:layout_height="match_parent"
47         android:layout_width="0dp"
48         android:layout_weight="3" />
49 </LinearLayout>