Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".ui.fragment.message.MessageFragment">
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/white"
app:contentInsetStart="0dp"
app:contentInsetLeft="0dp"
android:elevation="5dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Message"
android:textSize="16sp"
android:textColor="@color/black"
android:fontFamily="@font/robotomed"/>
</androidx.appcompat.widget.Toolbar>
<com.google.android.material.tabs.TabLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/white"
app:tabTextColor="@color/gray"
app:tabRippleColor="@color/green"
app:tabIndicatorColor="@color/green"
app:tabSelectedTextColor="@color/green"
android:elevation="5dp"
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
android:id="@+id/tabs"/>
<androidx.viewpager2.widget.ViewPager2
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/vp"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment