<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="#ffffff">
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
android:id="@+id/viewPager"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_above="@id/bottom_navigation" />
|
|
<!-- 底部导航阴影 -->
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="3dp"
|
android:layout_above="@id/bottom_navigation"
|
android:background="@drawable/shadow_gradient" />
|
|
<LinearLayout
|
android:id="@+id/bottom_navigation"
|
android:layout_width="match_parent"
|
android:layout_height="55dp"
|
android:layout_alignParentBottom="true"
|
android:background="#FFFFFF"
|
android:elevation="8dp"
|
android:gravity="bottom"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:id="@+id/BSCardLL"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:background="@drawable/tab_selector_background"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="@drawable/bottom_tab_selector"
|
android:gravity="center"
|
android:orientation="vertical">
|
|
|
<ImageView
|
android:id="@+id/BSCardImg"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_marginTop="6dp"
|
android:src="@drawable/bottom_card_black" />
|
|
|
<TextView
|
android:id="@+id/BSCardText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="2dp"
|
android:layout_marginBottom="3dp"
|
android:text="制卡"
|
android:textColor="@drawable/text_color_selector"
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:id="@+id/rechargeLL"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_gravity="center"
|
android:layout_weight="1"
|
android:background="@drawable/tab_selector_background"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="@drawable/bottom_tab_selector"
|
android:gravity="center"
|
android:orientation="vertical">
|
|
<ImageView
|
android:id="@+id/rechargeImg"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_marginTop="6dp"
|
android:src="@drawable/bottom_recharge_white" />
|
|
<TextView
|
android:id="@+id/rechargeText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="2dp"
|
android:layout_marginBottom="3dp"
|
android:text="充值"
|
android:textColor="@color/white"
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:id="@+id/myLL"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:background="@drawable/tab_selector_background"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="@drawable/bottom_tab_selector"
|
android:gravity="center"
|
android:orientation="vertical">
|
|
<ImageView
|
android:id="@+id/myImg"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_marginTop="6dp"
|
android:src="@drawable/bottom_my_black" />
|
|
<TextView
|
android:id="@+id/myText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="2dp"
|
android:layout_marginBottom="3dp"
|
android:text="我的"
|
android:textColor="@drawable/text_color_selector"
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
<!-- <!– BottomNavigationView 用于底部导航 –>-->
|
<!-- <com.google.android.material.bottomnavigation.BottomNavigationView-->
|
<!-- android:id="@+id/bottom_navigation"-->
|
<!-- android:layout_width="match_parent"-->
|
<!-- android:layout_height="wrap_content"-->
|
<!-- android:layout_alignParentBottom="true"-->
|
<!-- android:background="@color/bottom_color"-->
|
<!-- app:menu="@menu/main_bottom_nav_menu"-->
|
<!-- app:itemIconTint="@color/bottom_selector_nav_item"-->
|
<!-- app:itemTextColor="@color/bottom_selector_nav_item"-->
|
|
<!-- />-->
|
|
|
</RelativeLayout>
|