HarshBarash

Untitled

May 5th, 2021
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.81 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     android:background="@color/MoneyGreen"
  8.     tools:context=".MainActivity">
  9.  
  10.  
  11.     <com.google.android.material.bottomnavigation.BottomNavigationView
  12.         android:id="@+id/bottom_navigation"
  13.         android:layout_width="match_parent"
  14.         android:layout_height="wrap_content"
  15.         android:layout_alignParentStart="true"
  16.         android:layout_alignParentTop="false"
  17.         android:layout_alignParentEnd="false"
  18.         android:layout_marginStart="0dp"
  19.         android:layout_marginTop="675dp"
  20.         android:layout_marginEnd="0dp"
  21.         app:itemIconTint="@color/black"
  22.         app:itemTextColor="@color/black"
  23.         app:menu="@menu/bottom_navigation" />
  24.  
  25.     <FrameLayout
  26.         android:id="@+id/fragment_container"
  27.         android:layout_width="match_parent"
  28.         android:layout_height="674dp"
  29.         android:layout_alignParentStart="true"
  30.         android:layout_alignParentTop="true"
  31.         android:layout_alignParentEnd="true"
  32.         android:layout_alignParentBottom="true"
  33.         android:layout_marginStart="0dp"
  34.         android:layout_marginTop="0dp"
  35.         android:layout_marginEnd="0dp"
  36.         android:layout_marginBottom="57dp">
  37.  
  38.     </FrameLayout>
  39.     <!-- android:background="?androidoid:attr/windowBackground" //под цвет верхней панели -->
  40.     <!-- Заканчиваем окрашывание иконок и текста самостоятельно (app:itemIconTint="@color/black" + app:itemTextColor="@color/black") -->
  41.  
  42.  
  43.  
  44. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment