2018-09-10 19:21:42 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2018 Thomas Schneider
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
This file is a part of Fedilab
|
2018-09-10 19:21:42 +02: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-09-10 19:21:42 +02: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-09-10 19:21:42 +02:00
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<androidx.drawerlayout.widget.DrawerLayout
|
2018-09-10 19:35:17 +02:00
|
|
|
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:id="@+id/drawer_layout"
|
2018-09-10 19:21:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-09-10 19:35:17 +02:00
|
|
|
android:fitsSystemWindows="true"
|
2018-09-10 19:21:42 +02:00
|
|
|
>
|
2019-06-11 19:38:26 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2018-09-10 19:21:42 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-09-10 19:35:17 +02:00
|
|
|
android:layout_height="match_parent"
|
2019-05-18 11:10:30 +02:00
|
|
|
tools:context="app.fedilab.android.activities.HashTagActivity">
|
2018-09-10 19:35:17 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2018-09-10 19:35:17 +02:00
|
|
|
android:id="@+id/appBar"
|
2018-09-10 19:21:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
>
|
2019-06-11 19:38:26 +02:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2018-09-10 19:35:17 +02:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
|
|
app:popupTheme="?attr/popupOverlay"/>
|
2019-06-11 19:38:26 +02:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2018-09-10 19:21:42 +02:00
|
|
|
<RelativeLayout
|
2018-09-10 19:35:17 +02:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
|
android:paddingLeft="@dimen/fab_margin"
|
|
|
|
android:paddingRight="@dimen/fab_margin"
|
2018-09-16 16:52:33 +02:00
|
|
|
android:layout_marginBottom="100dp"
|
2018-09-10 19:21:42 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-09-10 19:35:17 +02:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
<!-- Listview who to follow -->
|
|
|
|
<ListView
|
|
|
|
android:id="@+id/lv_list"
|
2018-09-10 19:21:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-10 19:35:17 +02:00
|
|
|
android:scrollbars="none"
|
|
|
|
android:divider="@null"
|
|
|
|
>
|
|
|
|
</ListView>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/no_action"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:padding="10dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="25sp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:textStyle="italic|bold"
|
|
|
|
android:typeface="serif"
|
|
|
|
android:text="@string/action_who_to_follow_empty_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- Main Loader -->
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/loader"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
>
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
</RelativeLayout>
|
2018-09-10 19:21:42 +02:00
|
|
|
</RelativeLayout>
|
2018-09-12 09:49:56 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2018-09-11 17:50:04 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-10 19:35:17 +02:00
|
|
|
android:layout_gravity="bottom|end"
|
2018-09-12 09:49:56 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
|
|
android:id="@+id/follow_accounts_select"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
2018-09-16 16:52:33 +02:00
|
|
|
android:tint="@android:color/white"
|
2018-09-12 09:49:56 +02:00
|
|
|
android:text="@string/select_all"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/follow_accounts"
|
|
|
|
android:gravity="center"
|
2018-09-16 16:52:33 +02:00
|
|
|
android:tint="@android:color/white"
|
2018-09-12 09:49:56 +02:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:text="@string/follow_account"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/progess_action"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="?colorPrimaryDark"
|
|
|
|
android:layout_gravity="bottom"
|
2018-09-10 19:35:17 +02:00
|
|
|
android:gravity="center"
|
2018-09-12 09:49:56 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp" />
|
2019-06-11 19:38:26 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|