2017-01-03 00:30:27 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-06-20 02:50:40 +02:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-02-20 01:27:15 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-04-27 14:47:56 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-01-03 00:30:27 +01:00
|
|
|
android:id="@+id/activity_main"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-01-10 07:14:27 +01:00
|
|
|
tools:context="com.keylesspalace.tusky.MainActivity">
|
2017-01-03 00:30:27 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<RelativeLayout
|
2017-01-03 00:30:27 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-06-20 02:50:40 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-01-03 00:30:27 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<ImageButton
|
|
|
|
android:layout_width="?attr/actionBarSize"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:id="@+id/drawer_toggle"
|
|
|
|
app:srcCompat="@drawable/ic_menu_24dp"
|
|
|
|
app:layout_anchor="@id/pager"
|
|
|
|
app:layout_anchorGravity="top|left"
|
|
|
|
android:layout_alignParentTop="true"
|
2017-07-12 08:09:07 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2017-06-20 02:50:40 +02:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:background="?android:colorBackground"
|
|
|
|
android:contentDescription="@string/action_open_drawer" />
|
|
|
|
|
|
|
|
<android.support.design.widget.TabLayout
|
|
|
|
android:id="@+id/tab_layout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:background="?android:colorBackground"
|
|
|
|
app:tabGravity="fill"
|
|
|
|
app:tabMaxWidth="0dp"
|
|
|
|
app:tabPaddingEnd="1dp"
|
|
|
|
app:tabPaddingStart="1dp"
|
|
|
|
app:tabPaddingTop="4dp"
|
|
|
|
app:tabTextAppearance="@style/TabLayoutTextStyle"
|
|
|
|
android:layout_alignParentTop="true"
|
2017-07-12 08:09:07 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
2017-06-20 02:50:40 +02:00
|
|
|
android:layout_alignParentRight="true"
|
2017-07-12 08:09:07 +02:00
|
|
|
android:layout_toEndOf="@id/drawer_toggle"
|
2017-06-20 02:50:40 +02:00
|
|
|
android:layout_toRightOf="@id/drawer_toggle">
|
2017-01-10 07:14:27 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<android.support.design.widget.TabItem
|
2017-02-20 01:27:15 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-20 02:50:40 +02:00
|
|
|
android:text="@string/title_home" />
|
2017-01-03 00:30:27 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<android.support.design.widget.TabItem
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_notifications" />
|
2017-04-03 03:45:04 +02:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<android.support.design.widget.TabItem
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_public_local" />
|
2017-01-18 19:35:07 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<android.support.design.widget.TabItem
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/title_public_federated" />
|
2017-01-10 07:14:27 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
</android.support.design.widget.TabLayout>
|
2017-04-09 10:13:18 +02:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
android:id="@+id/pager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/tab_layout"
|
2017-06-25 07:07:41 +02:00
|
|
|
android:layout_alignParentBottom="true" />
|
2017-01-10 07:14:27 +01:00
|
|
|
|
2017-06-20 02:50:40 +02:00
|
|
|
</RelativeLayout>
|
2017-03-10 04:35:08 +01:00
|
|
|
|
2017-04-09 10:13:18 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/tab_bottom_shadow"
|
2017-01-10 07:14:27 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-04-09 10:13:18 +02:00
|
|
|
android:layout_height="2dp"
|
|
|
|
android:background="@drawable/material_drawer_shadow_bottom"
|
2017-04-27 14:47:56 +02:00
|
|
|
android:visibility="visible"
|
|
|
|
app:layout_anchor="@id/tab_layout"
|
|
|
|
app:layout_anchorGravity="bottom" />
|
2017-04-09 10:13:18 +02:00
|
|
|
|
2017-03-07 01:38:22 +01:00
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:id="@+id/floating_btn"
|
|
|
|
android:layout_width="wrap_content"
|
2017-04-27 14:47:56 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/action_compose"
|
2017-03-10 18:38:49 +01:00
|
|
|
app:layout_anchor="@id/pager"
|
|
|
|
app:layout_anchorGravity="bottom|end"
|
2017-04-27 14:47:56 +02:00
|
|
|
app:srcCompat="@drawable/ic_create_24dp" />
|
2017-04-09 10:13:18 +02:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/overlay_fragment_container"
|
|
|
|
android:layout_width="match_parent"
|
2017-04-12 06:21:52 +02:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
</FrameLayout>
|
2017-04-09 10:13:18 +02:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|