1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2017 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
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.
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.
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/>. -->
21 <!-- `android:baselineAligned="False"` reduces unneeded computational overhead with `RecyclerViews`. -->
23 xmlns:android="http://schemas.android.com/apk/res/android"
24 xmlns:tools="http://schemas.android.com/tools"
25 tools:context=".activities.DomainsList"
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" >
33 <!-- `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 android:id="@+id/domains_listview"
36 android:layout_height="match_parent"
37 android:layout_width="0dp"
38 android:layout_weight="1"
39 android:divider="@color/white"
40 android:dividerHeight="0dp" />
43 android:id="@+id/domains_list_framelayout"
44 android:layout_height="match_parent"
45 android:layout_width="0dp"
46 android:layout_weight="3" />