Created
November 21, 2022 15:29
-
-
Save balvinderg/330b4e7268f6d2e98bafbe818bc3c47f to your computer and use it in GitHub Desktop.
Main Activity Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<androidx.viewpager2.widget.ViewPager2 | |
android:id="@+id/my_viewpager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintBottom_toTopOf="@+id/bottom_bar" /> | |
<com.google.android.material.bottomnavigation.BottomNavigationView | |
android:id="@+id/bottom_bar" | |
android:layout_width="match_parent" | |
app:menu="@menu/menu" | |
android:layout_height="wrap_content" | |
app:layout_constraintBottom_toBottomOf="parent" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment