Advertisement
fakhrycodepolitan

activity_main.xml

Nov 12th, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.73 KB | Source Code | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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.    tools:context=".main.MainActivity">
  8.    
  9.     <FrameLayout
  10.        android:id="@+id/frameMain"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="0dp"
  13.        app:layout_constraintBottom_toTopOf="@id/btnNavMain"
  14.        app:layout_constraintTop_toTopOf="parent" />
  15.  
  16.     <com.google.android.material.bottomnavigation.BottomNavigationView
  17.        android:id="@+id/btnNavMain"
  18.        android:layout_width="match_parent"
  19.        android:layout_height="?attr/actionBarSize"
  20.        android:background="@color/black"
  21.        app:itemIconTint="@drawable/button_navigation_colored"
  22.        app:itemTextColor="@drawable/button_navigation_colored"
  23.        app:layout_constraintBottom_toBottomOf="parent"
  24.        app:menu="@menu/main_menu" />
  25.  
  26.     <ImageButton
  27.        android:id="@+id/btnAddTask"
  28.        android:layout_width="wrap_content"
  29.        android:layout_height="wrap_content"
  30.        android:background="@android:color/transparent"
  31.        android:elevation="8dp"
  32.        android:src="@drawable/ic_baseline_add_circle_outline_48"
  33.        app:layout_constraintBottom_toBottomOf="@id/btnNavMain"
  34.        app:layout_constraintEnd_toEndOf="@id/btnNavMain"
  35.        app:layout_constraintStart_toStartOf="@+id/btnNavMain"
  36.        app:layout_constraintTop_toTopOf="@id/btnNavMain"
  37.        app:tint="@color/purple_700" />
  38.  
  39. </androidx.constraintlayout.widget.ConstraintLayout>
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement