Skip to content

Instantly share code, notes, and snippets.

@kingjinho
Last active November 23, 2022 12:52
Show Gist options
  • Save kingjinho/99418d6a4d841c0899bdce24615df9aa to your computer and use it in GitHub Desktop.
Save kingjinho/99418d6a4d841c0899bdce24615df9aa to your computer and use it in GitHub Desktop.
기본적인?(보편적인) activity.xml 레이아웃 구조
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
... >
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomnav"
...
app:menu="@menu/bottom_nav_menu" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/container"
android:name="androidx.navigation.fragment.NavHostFragment"
app:defaultNavHost="true"
app:navGraph="@navigation/mobile_navigation"
...
/>
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment