Yuito-app-android/app/src/main/res/layout/activity_main.xml

75 lines
3.0 KiB
XML
Raw Normal View History

2017-01-03 00:30:27 +01:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-13 02:14:57 +02:00
<LinearLayout 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"
2018-08-13 02:14:57 +02:00
android:orientation="vertical"
tools:context="com.keylesspalace.tusky.MainActivity">
2017-01-03 00:30:27 +01:00
2018-08-13 02:14:57 +02:00
<androidx.coordinatorlayout.widget.CoordinatorLayout
2017-01-03 00:30:27 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
2017-01-03 00:30:27 +01:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/main_appbar"
2018-08-13 02:14:57 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevationOverlayEnabled="false"
android:elevation="@dimen/actionbar_elevation">
2018-08-13 02:14:57 +02:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/main_toolbar"
2018-08-13 02:14:57 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentInsetStartWithNavigation="0dp">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
style="@style/TuskyTabAppearance"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:focusable="true"
android:focusableInTouchMode="true"
app:tabGravity="fill"
app:tabMaxWidth="0dp"
app:tabMode="fixed"
app:tabUnboundedRipple="false" />
2018-08-13 02:14:57 +02:00
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
2017-03-10 04:35:08 +01:00
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/pager"
android:background="?attr/windowBackgroundColor"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/tab_layout"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
2018-08-13 02:14:57 +02:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/floating_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-08-13 02:14:57 +02:00
android:layout_margin="16dp"
android:contentDescription="@string/action_compose"
app:layout_anchor="@id/pager"
app:layout_anchorGravity="bottom|end"
app:srcCompat="@drawable/ic_create_24dp" />
2018-08-13 02:14:57 +02:00
<include layout="@layout/item_status_bottom_sheet" />
2017-03-10 04:35:08 +01:00
2018-08-13 02:14:57 +02:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<include
2018-08-13 02:14:57 +02:00
android:id="@+id/quick_toot_container"
layout="@layout/view_quick_toot"
2018-08-13 02:14:57 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0" />
2018-08-13 02:14:57 +02:00
</LinearLayout>