Skip to content

Instantly share code, notes, and snippets.

@tomleejumah
Created July 22, 2024 17:52
Show Gist options
  • Save tomleejumah/5dfb4bdf11e11dfa1d2dccd82e51f6e5 to your computer and use it in GitHub Desktop.
Save tomleejumah/5dfb4bdf11e11dfa1d2dccd82e51f6e5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout 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"
android:background="@color/transparent"
tools:openDrawer="start"
android:id="@+id/drawer_layout"
tools:context=".activities.HomeActivity">
<com.google.android.material.navigation.NavigationView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
android:visibility="gone"
app:menu="@menu/side_nav_menu"
tools:visibility="gone" />
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/btn_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/add_plus_vector"
app:backgroundTint="?android:attr/windowBackground"
android:elevation="16dp"
app:fabSize="mini"
android:clickable="true"
android:tint="@color/hint_text_color_dark"
android:backgroundTint="@color/background_color_dark"
app:layout_anchor="@id/custom_bottom_nav"/>
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</FrameLayout>
<RelativeLayout
android:id="@+id/custom_tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/gradient_fade_bottom">
<TextView
android:id="@+id/user_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" />
<ImageButton
android:id="@+id/btn_search"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginEnd="19dp"
android:background="@drawable/bot_vector"
android:visibility="visible" />
<ImageButton
android:id="@+id/btn_settings"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_marginEnd="19dp"
android:background="@drawable/setting_vector"
android:visibility="gone"
tools:visibility="visible" />
<ImageButton
android:id="@+id/btn_back"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentBottom="true"
android:layout_marginStart="19dp"
android:background="@drawable/back"
android:backgroundTint="?android:attr/textColorPrimary"
android:visibility="gone"
tools:visibility="visible" />
</RelativeLayout>
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/custom_bottom_nav"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="bottom"
android:theme="@style/Widget.MemePal.BottomAppBar"
app:fabCradleMargin="3dp"
app:fabCradleRoundedCornerRadius="40dp">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_nav_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginEnd="20dp"
android:background="@color/transparent"
app:itemTextColor="#000000"
app:itemBackground="@color/transparent"
app:labelVisibilityMode="unlabeled"
app:layout_scrollFlags="scroll|enterAlways"
app:menu="@menu/bottom_nav_menu" />
</com.google.android.material.bottomappbar.BottomAppBar>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.drawerlayout.widget.DrawerLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment