Tusky-App-Android/app/src/main/res/layout/activity_main.xml

90 lines
3.6 KiB
XML
Raw Normal View History

2017-01-03 00:30:27 +01:00
<?xml version="1.0" encoding="utf-8"?>
2017-12-09 21:34:04 +01:00
<android.support.design.widget.CoordinatorLayout 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"
2017-01-03 00:30:27 +01:00
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.keylesspalace.tusky.MainActivity">
2017-01-03 00:30:27 +01:00
<RelativeLayout
2017-01-03 00:30:27 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false">
2017-01-03 00:30:27 +01:00
<ImageButton
2017-12-09 21:34:04 +01:00
android:id="@+id/drawer_toggle"
style="?attr/image_button_style"
android:layout_width="?attr/actionBarSize"
android:layout_height="?attr/actionBarSize"
2017-12-09 21:34:04 +01:00
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="?android:colorBackground"
2017-12-09 21:34:04 +01:00
android:contentDescription="@string/action_open_drawer"
android:elevation="@dimen/actionbar_elevation"
2017-12-09 21:34:04 +01:00
app:layout_anchor="@id/pager"
app:layout_anchorGravity="top|left"
app:srcCompat="@drawable/ic_menu_24dp" />
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize"
2017-12-09 21:34:04 +01:00
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_toEndOf="@id/drawer_toggle"
android:background="?android:colorBackground"
android:elevation="@dimen/actionbar_elevation"
app:tabGravity="fill"
2017-12-09 21:34:04 +01:00
app:tabIndicatorHeight="3dp"
app:tabMaxWidth="0dp"
app:tabPaddingEnd="1dp"
app:tabPaddingStart="1dp"
app:tabPaddingTop="4dp"
2017-12-09 21:34:04 +01:00
app:tabTextAppearance="@style/TabLayoutTextStyle">
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_home" />
2017-01-03 00:30:27 +01: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
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_public_local" />
<android.support.design.widget.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_public_federated" />
</android.support.design.widget.TabLayout>
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-12-09 21:34:04 +01:00
android:layout_alignParentBottom="true"
android:layout_below="@id/tab_layout" />
</RelativeLayout>
2017-03-10 04:35:08 +01:00
<android.support.design.widget.FloatingActionButton
android:id="@+id/floating_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:contentDescription="@string/action_compose"
2017-03-10 18:38:49 +01:00
app:layout_anchor="@id/pager"
app:layout_anchorGravity="bottom|end"
app:srcCompat="@drawable/ic_create_24dp" />
<include layout="@layout/item_status_bottom_sheet" />
</android.support.design.widget.CoordinatorLayout>