jncultural/modulemain/src/main/res/layout/fragment_home.xml

60 lines
2.3 KiB
XML
Raw Normal View History

2020-05-27 13:32:22 +08:00
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:theme="@style/Theme.AppCompat"
tools:ignore="MissingDefaultResource">
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="40dp"-->
<!-- android:background="@color/titleBar"-->
<!-- android:gravity="center_vertical"-->
<!-- android:orientation="horizontal">-->
<!-- <EditText-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginLeft="5dp"-->
<!-- android:layout_marginRight="5dp"-->
<!-- android:layout_weight="1"-->
<!-- android:background="@drawable/shape_search_input_box"-->
<!-- android:hint="请输入"-->
<!-- android:padding="3dp"-->
<!-- android:textColorHint="@color/black"-->
<!-- android:textSize="13sp" />-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:clickable="true"-->
<!-- android:focusable="true"-->
<!-- android:padding="8dp"-->
<!-- android:textColor="@color/white"-->
<!-- android:textSize="15sp"-->
<!-- android:visibility="visible"-->
<!-- tools:text="搜索" />-->
<!-- </LinearLayout>-->
<com.google.android.material.tabs.TabLayout
android:id="@+id/xtl_new_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
app:tabGravity="fill"
app:tabIndicatorColor="@color/red"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/red"
app:tabTextAppearance="@style/TabLayoutTextStyle"
app:tabTextColor="@color/gray_text" />
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/vp_new_content"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>