forked from thijooree/android
73 lines
2.4 KiB
XML
73 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<!-- Drag handle -->
|
|
<View
|
|
android:layout_width="36dp"
|
|
android:layout_height="4dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:background="@drawable/drag_handle_bg" />
|
|
|
|
<!-- Header row -->
|
|
<LinearLayout
|
|
android:id="@+id/notifHeader"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="20dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvNotifTitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="Notifications"
|
|
android:textAppearance="?attr/textAppearanceTitleLarge"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/btnMarkAllRead"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Mark all read"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:padding="8dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:textColor="?attr/colorPrimary" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Divider -->
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:alpha="0.12"
|
|
android:background="?attr/colorOnSurface" />
|
|
|
|
<!-- Tabs -->
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/notifTabs"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:tabMode="fixed"
|
|
app:tabGravity="fill" />
|
|
|
|
<!-- Pager fills remaining height -->
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/notifPager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|