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

206 lines
7.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
Copyright 2017 Thomas Schneider
This file is a part of Fedilab
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.
Fedilab 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 Fedilab; if not,
see <http://www.gnu.org/licenses>.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_vertical_margin"
android:paddingEnd="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_vertical_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="horizontal"
android:paddingBottom="10dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/settings_time_from" />
<Button
android:id="@+id/settings_time_from"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:focusableInTouchMode="false" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:text="@string/settings_time_to" />
<Button
android:id="@+id/settings_time_to"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:focusableInTouchMode="false" />
</LinearLayout>
<!-- Show boosts -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/order_by" />
<Spinner
android:id="@+id/filter_order"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/filter_order" />
</LinearLayout>
<CheckBox
android:id="@+id/filter_visibility_public"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/v_public" />
<CheckBox
android:id="@+id/filter_visibility_unlisted"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/v_unlisted" />
<CheckBox
android:id="@+id/filter_visibility_private"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/v_private" />
<CheckBox
android:id="@+id/filter_visibility_direct"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/v_direct" />
<!-- Show boosts -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/show_boosts" />
<Spinner
android:id="@+id/filter_boost"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/filter_select" />
</LinearLayout>
<!-- Show replies -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/show_replies" />
<Spinner
android:id="@+id/filter_replies"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/filter_select" />
</LinearLayout>
<!-- Show media -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/show_media" />
<Spinner
android:id="@+id/filter_media"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/filter_select" />
</LinearLayout>
<!-- Show pinned -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/show_pinned" />
<Spinner
android:id="@+id/filter_pinned"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/filter_select" />
</LinearLayout>
<EditText
android:id="@+id/filter_keywords"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/v_keywords"
android:inputType="text"
android:maxLines="2" />
</LinearLayout>
</ScrollView>