You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
4.2 KiB
124 lines
4.2 KiB
<?xml version="1.0" encoding="utf-8"?> |
|
<!-- |
|
Copyright 2010-2018 Eric Kok et al. |
|
|
|
Transdroid is free software: you can redistribute it and/or modify |
|
it under the terms of the GNU General Public License as published by |
|
the Free Software Foundation, either version 3 of the License, or |
|
(at your option) any later version. |
|
|
|
Transdroid is distributed in the hope that it will be useful, |
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
GNU General Public License for more details. |
|
|
|
You should have received a copy of the GNU General Public License |
|
along with Transdroid. If not, see <http://www.gnu.org/licenses/>. |
|
--> |
|
<!-- This layout is for phones in portrait and shows the torrents list with the filters as navigation drawer. --> |
|
<androidx.drawerlayout.widget.DrawerLayout |
|
android:id="@+id/drawer_layout" |
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
xmlns:tools="http://schemas.android.com/tools" |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
tools:context=".core.gui.TorrentsActivity_"> |
|
|
|
<!-- The main content view --> |
|
<RelativeLayout |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
android:orientation="vertical"> |
|
|
|
<androidx.appcompat.widget.Toolbar |
|
android:id="@+id/torrents_toolbar" |
|
style="@style/DefaultToolbar" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:minHeight="?attr/actionBarSize" /> |
|
|
|
<androidx.appcompat.widget.Toolbar |
|
android:id="@+id/actions_toolbar" |
|
style="@style/SplitToolbar" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:layout_alignParentBottom="true" |
|
android:minHeight="?attr/actionBarSize" |
|
android:paddingEnd="@dimen/ui_actions_padding" |
|
android:paddingRight="@dimen/ui_actions_padding" /> |
|
|
|
<androidx.appcompat.widget.ActionMenuView |
|
android:id="@+id/contextual_menu" |
|
style="@style/SplitToolbar" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:layout_alignParentBottom="true" |
|
android:minHeight="?attr/actionBarSize" |
|
android:visibility="gone" |
|
tools:visibility="visible"/> |
|
|
|
<fragment |
|
android:id="@+id/torrents_fragment" |
|
class="org.transdroid.core.gui.TorrentsFragment_" |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
android:layout_above="@id/actions_toolbar" |
|
android:layout_below="@id/torrents_toolbar" |
|
tools:layout="@layout/fragment_torrents" /> |
|
|
|
<View |
|
style="@style/DefaultToolbarShadow" |
|
android:layout_below="@id/torrents_toolbar" /> |
|
|
|
<View |
|
style="@style/SplitToolbarShadow" |
|
android:layout_above="@id/actions_toolbar" /> |
|
|
|
<include |
|
layout="@layout/actionbar_addbutton" |
|
android:layout_width="wrap_content" |
|
android:layout_height="wrap_content" |
|
android:layout_alignParentBottom="true" |
|
android:layout_alignParentEnd="true" |
|
android:layout_alignParentRight="true" |
|
android:layout_gravity="bottom|end" |
|
android:layout_marginBottom="16dp" |
|
android:layout_marginEnd="10dp" |
|
android:layout_marginRight="10dp" /> |
|
|
|
</RelativeLayout> |
|
|
|
<!-- The navigation drawer --> |
|
<LinearLayout |
|
android:id="@+id/drawer_container" |
|
android:layout_width="@dimen/ui_filters_list" |
|
android:layout_height="match_parent" |
|
android:layout_gravity="start" |
|
android:background="?attr/drawer_background" |
|
android:orientation="vertical"> |
|
|
|
<ListView |
|
android:id="@+id/drawer_list" |
|
android:layout_width="@dimen/ui_filters_list" |
|
android:layout_height="0dp" |
|
android:layout_weight="1" |
|
android:choiceMode="singleChoice" |
|
android:divider="@null" |
|
tools:listitem="@layout/list_item_filter" /> |
|
|
|
<androidx.appcompat.widget.SearchView |
|
android:id="@+id/filter_search" |
|
android:layout_width="@dimen/ui_filters_list" |
|
android:layout_height="wrap_content" |
|
android:layout_marginBottom="5dp" |
|
android:layout_marginEnd="5dp" |
|
android:layout_marginRight="10dp" |
|
android:layout_marginTop="5dp" |
|
app:iconifiedByDefault="false" |
|
app:queryHint="@string/action_filter" |
|
app:searchIcon="@drawable/ic_action_filter" /> |
|
|
|
</LinearLayout> |
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|
|
|