fedilab-Android-App/app/src/main/res/layout/filter_owner_toots.xml

175 lines
7.0 KiB
XML
Raw Normal View History

2018-02-17 12:35:54 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 Thomas Schneider
2019-05-18 11:10:30 +02:00
This file is a part of Fedilab
2018-02-17 12:35:54 +01:00
This program 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.
2019-05-18 11:10:30 +02:00
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
2018-02-17 12:35:54 +01:00
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
2019-05-18 11:10:30 +02:00
You should have received a copy of the GNU General Public License along with Fedilab; if not,
2018-02-17 12:35:54 +01:00
see <http://www.gnu.org/licenses>.
-->
2018-02-17 14:43:12 +01:00
<ScrollView
2018-02-17 12:35:54 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
2018-02-17 14:43:12 +01:00
android:orientation="vertical"
2018-02-17 12:35:54 +01:00
android:layout_width="match_parent"
2018-02-17 14:43:12 +01:00
android:paddingStart="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_vertical_margin"
android:paddingEnd="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_vertical_margin"
android:layout_height="wrap_content">
<LinearLayout
style="?attr/shapeBorder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingBottom="10dp"
android:orientation="horizontal">
<TextView
android:text="@string/settings_time_from"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:focusableInTouchMode="false"
android:id="@+id/settings_time_from"
2018-11-03 14:45:55 +01:00
style="?attr/borderlessColored"
2018-02-17 14:43:12 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:text="@string/settings_time_to"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:focusableInTouchMode="false"
2018-11-03 14:45:55 +01:00
style="?attr/borderlessColored"
2018-02-17 14:43:12 +01:00
android:id="@+id/settings_time_to"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<CheckBox
android:id="@+id/filter_visibility_public"
2018-02-17 12:35:54 +01:00
android:layout_width="wrap_content"
2018-02-17 14:43:12 +01:00
android:text="@string/v_public"
android:checked="true"
2018-02-17 12:35:54 +01:00
android:layout_height="wrap_content" />
2018-02-17 14:43:12 +01:00
<CheckBox
android:id="@+id/filter_visibility_unlisted"
2018-02-17 12:35:54 +01:00
android:layout_width="wrap_content"
2018-02-17 14:43:12 +01:00
android:text="@string/v_unlisted"
android:checked="true"
2018-02-17 12:35:54 +01:00
android:layout_height="wrap_content" />
2018-02-17 14:43:12 +01:00
<CheckBox
android:id="@+id/filter_visibility_private"
2018-02-17 12:35:54 +01:00
android:layout_width="wrap_content"
2018-02-17 14:43:12 +01:00
android:text="@string/v_private"
android:checked="true"
2018-02-17 12:35:54 +01:00
android:layout_height="wrap_content" />
2018-02-17 14:43:12 +01:00
<CheckBox
android:id="@+id/filter_visibility_direct"
2018-02-17 12:35:54 +01:00
android:layout_width="wrap_content"
2018-02-17 14:43:12 +01:00
android:text="@string/v_direct"
android:checked="true"
2018-02-17 12:35:54 +01:00
android:layout_height="wrap_content" />
2018-02-17 14:43:12 +01:00
<!-- Show boosts -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/show_boosts"/>
<Spinner
android:id="@+id/filter_boost"
android:entries="@array/filter_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
2018-02-17 12:35:54 +01:00
2018-02-17 14:43:12 +01:00
<!-- Show replies -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/show_replies"/>
<Spinner
android:id="@+id/filter_replies"
android:entries="@array/filter_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
2018-02-17 12:35:54 +01:00
2018-02-17 14:43:12 +01:00
<!-- Show media -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-02-17 15:28:15 +01:00
android:text="@string/show_media"/>
2018-02-17 14:43:12 +01:00
<Spinner
android:id="@+id/filter_media"
android:entries="@array/filter_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
2018-02-17 12:35:54 +01:00
2018-02-17 14:43:12 +01:00
<!-- Show pinned -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-02-17 15:28:15 +01:00
android:text="@string/show_pinned"/>
2018-02-17 14:43:12 +01:00
<Spinner
android:id="@+id/filter_pinned"
android:entries="@array/filter_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<EditText
android:inputType="text"
android:id="@+id/filter_keywords"
android:maxLines="2"
android:hint="@string/v_keywords"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>