2018-08-20 19:00:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2018 Thomas Schneider
|
|
|
|
|
|
|
|
This file is a part of Mastalab
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Mastalab 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 Mastalab; if not,
|
|
|
|
see <http://www.gnu.org/licenses>
|
|
|
|
-->
|
|
|
|
<android.support.v4.widget.DrawerLayout
|
|
|
|
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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
tools:openDrawer="start">
|
|
|
|
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context="fr.gouv.etalab.mastodon.activities.MainActivity">
|
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
|
android:id="@+id/appBar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:theme="@style/AppTheme.AppBarOverlay"
|
|
|
|
>
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
|
|
android:theme="@style/AppThemeDark_NoActionBar"
|
|
|
|
app:popupTheme="?attr/popupOverlay">
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/iconbar"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/toolbar_search_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<android.support.design.widget.TabLayout
|
|
|
|
android:id="@+id/tabLayout"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
app:tabGravity="fill"
|
|
|
|
app:tabMaxWidth="0dp"
|
|
|
|
app:tabIndicatorHeight="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:tabSelectedTextColor="?attr/colorAccent"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Framelayout to display Fragments -->
|
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/viewpager"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
|
tools:context="fr.gouv.etalab.mastodon.activities.MainActivity"
|
|
|
|
>
|
|
|
|
</android.support.v4.view.ViewPager>
|
2018-09-12 10:31:23 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/no_action"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/no_action_text"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="25sp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:textStyle="italic|bold"
|
|
|
|
android:typeface="serif"
|
|
|
|
android:text="@string/action_remote_instance_add"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
</RelativeLayout>
|
2018-08-20 19:00:20 +02:00
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:id="@+id/add_new_instance"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="@dimen/fab_margin_floating"
|
|
|
|
app:srcCompat="@drawable/ic_action_add_new"
|
|
|
|
tools:ignore="VectorDrawableCompat" />
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:id="@+id/federated_timeline_close"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="bottom|start"
|
|
|
|
app:fabSize="mini"
|
|
|
|
app:srcCompat="@drawable/ic_close"
|
|
|
|
android:layout_margin="@dimen/fab_margin_floating"
|
|
|
|
tools:ignore="VectorDrawableCompat" />
|
|
|
|
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|