Advertisement
fakhrycodepolitan

activity_main.xml

Nov 23rd, 2022
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.83 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_constraintEnd_toEndOf="parent"
  15.        app:layout_constraintStart_toStartOf="parent"
  16.        app:layout_constraintTop_toTopOf="parent" />
  17.  
  18.     <com.google.android.material.bottomnavigation.BottomNavigationView
  19.        android:id="@+id/btnNavMain"
  20.        android:layout_width="match_parent"
  21.        android:layout_height="?attr/actionBarSize"
  22.        android:background="@color/black"
  23.        app:itemIconTint="@drawable/button_navigation_colored"
  24.        app:itemTextColor="@drawable/button_navigation_colored"
  25.        app:layout_constraintBottom_toBottomOf="parent"
  26.        app:menu="@menu/main_menu" />
  27.  
  28.     <ImageButton
  29.        android:id="@+id/btnAddTask"
  30.        android:layout_width="wrap_content"
  31.        android:layout_height="wrap_content"
  32.        android:background="@android:color/transparent"
  33.        android:elevation="8dp"
  34.        android:src="@drawable/ic_baseline_add_circle_outline_48"
  35.        app:layout_constraintBottom_toBottomOf="@id/btnNavMain"
  36.        app:layout_constraintEnd_toEndOf="@id/btnNavMain"
  37.        app:layout_constraintStart_toStartOf="@+id/btnNavMain"
  38.        app:layout_constraintTop_toTopOf="@id/btnNavMain"
  39.        app:tint="@color/purple_700" />
  40.  
  41. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement