| | |
| | | <?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" |
| | |
| | | tools:context="com.dayu.pipirrapp.activity.MainActivity"> |
| | | |
| | | |
| | | <com.dayu.pipirrapp.view.MyViewPager |
| | | <androidx.viewpager2.widget.ViewPager2 |
| | | android:id="@+id/viewPager" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_above="@id/tabLayout" /> |
| | | android:layout_above="@id/bottom_navigation" /> |
| | | |
| | | |
| | | <com.google.android.material.tabs.TabLayout |
| | | android:id="@+id/tabLayout" |
| | | <LinearLayout |
| | | android:id="@+id/bottom_navigation" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_height="70dp" |
| | | android:layout_alignParentBottom="true" |
| | | android:background="?attr/colorPrimary" |
| | | app:tabGravity="fill" |
| | | app:tabIndicatorColor="#FFC107" |
| | | app:tabMode="fixed" |
| | | app:tabSelectedTextColor="#FFC107" |
| | | app:tabTextColor="#000000"> |
| | | android:layout_marginTop="-20dp" |
| | | android:background="#00ffffff" |
| | | android:gravity="bottom" |
| | | android:orientation="horizontal"> |
| | | |
| | | <!-- <com.google.android.material.tabs.TabItem--> |
| | | <!-- android:layout_width="match_parent"--> |
| | | <!-- android:layout_height="match_parent"--> |
| | | <!-- android:text="首页" />--> |
| | | <LinearLayout |
| | | android:id="@+id/orderLL" |
| | | android:layout_width="0dp" |
| | | android:layout_height="50dp" |
| | | android:layout_weight="1" |
| | | android:background="@color/bottom_color" |
| | | android:gravity="center" |
| | | android:orientation="vertical"> |
| | | |
| | | <!-- <com.google.android.material.tabs.TabItem--> |
| | | <!-- android:layout_width="match_parent"--> |
| | | <!-- android:layout_height="match_parent"--> |
| | | <!-- android:text="地图" />--> |
| | | <RelativeLayout |
| | | android:layout_width="25dp" |
| | | android:layout_height="33dp"> |
| | | |
| | | <!-- <com.google.android.material.tabs.TabItem--> |
| | | <!-- android:layout_width="match_parent"--> |
| | | <!-- android:layout_height="match_parent"--> |
| | | <!-- android:text="我的" />--> |
| | | </com.google.android.material.tabs.TabLayout> |
| | | <ImageView |
| | | android:id="@+id/orderImg" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="25dp" |
| | | android:layout_marginTop="8dp" |
| | | android:src="@drawable/bottom_order_black" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/red_dot_img" |
| | | android:layout_width="9dp" |
| | | android:layout_height="9dp" |
| | | android:layout_alignParentRight="true" |
| | | android:layout_marginTop="8dp" |
| | | android:src="@drawable/ic_red_dot" |
| | | android:visibility="gone" /> |
| | | |
| | | </RelativeLayout> |
| | | |
| | | <TextView |
| | | android:id="@+id/orderText" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="3dp" |
| | | android:text="工单" |
| | | android:textSize="12sp" /> |
| | | |
| | | </LinearLayout> |
| | | |
| | | <FrameLayout |
| | | android:id="@+id/mapLL" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1" |
| | | android:gravity="bottom" |
| | | android:orientation="vertical"> |
| | | |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="50dp" |
| | | android:layout_gravity="bottom" |
| | | android:background="@color/bottom_color" |
| | | android:orientation="vertical" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="80dp" |
| | | android:layout_height="70dp" |
| | | android:layout_gravity="center" |
| | | android:background="@drawable/bottom_circle_bg" |
| | | android:gravity="center" |
| | | android:orientation="vertical"> |
| | | |
| | | <ImageView |
| | | android:id="@+id/mapImg" |
| | | android:layout_width="40dp" |
| | | android:layout_height="40dp" |
| | | android:layout_marginTop="8dp" |
| | | android:src="@drawable/bottom_map_white" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/mapText" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="地图" |
| | | android:textColor="@color/white" |
| | | android:textSize="15sp" /> |
| | | |
| | | </LinearLayout> |
| | | |
| | | </FrameLayout> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/myLL" |
| | | android:layout_width="0dp" |
| | | android:layout_height="50dp" |
| | | android:layout_weight="1" |
| | | android:background="@color/bottom_color" |
| | | android:gravity="center" |
| | | android:orientation="vertical"> |
| | | |
| | | <ImageView |
| | | android:id="@+id/myImg" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="25dp" |
| | | android:layout_marginTop="8dp" |
| | | android:src="@drawable/bottom_my_black" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/myText" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="3dp" |
| | | android:text="我的" |
| | | 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> |