You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
anyu_zhongjian_android/app/src/main/res/layout/activity_main.xml

53 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
2 years ago
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
2 years ago
android:id="@+id/home_coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
2 years ago
android:background="#F2F6F7">
2 years ago
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
tools:context=".act.MainActivity">
2 years ago
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/mVp2"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toTopOf="@+id/mBottom"/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/mBottom"
android:layout_width="match_parent"
android:layout_height="65dp"
android:layout_gravity="bottom"
android:background="@color/white"
android:theme="@style/myNavigationDrawerStyle"
app:elevation="0dp"
app:itemBackground="@null"
app:itemTextColor="@color/bottom_nav_col"
app:labelVisibilityMode="labeled"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/bottom_nav_bar" />
<pl.droidsonroids.gif.GifImageView
android:id="@+id/gifImageVIew"
android:layout_width="@dimen/dp_50"
android:layout_height="@dimen/dp_50"
android:layout_marginBottom="@dimen/dp_18"
app:layout_constraintBottom_toBottomOf="@+id/mBottom"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>