37 lines
1.3 KiB
XML
37 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="34dp"
|
|
tools:context=".activity.MainActivity">
|
|
|
|
<com.live.mylivewallpaper.help.MyTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:text="@string/app_name"
|
|
android:padding="8dp"
|
|
android:id="@+id/title"
|
|
app:apply_font="true"
|
|
android:textColor="@color/tab_selected_color"
|
|
android:textSize="18sp" />
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/vp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/title"
|
|
android:layout_above="@id/tab" />
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/tab"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentBottom="true"
|
|
app:tabBackground="@color/transparent"
|
|
app:tabIndicatorHeight="0dp"
|
|
app:tabRippleColor="@null" />
|
|
|
|
</RelativeLayout> |