Created
July 3, 2019 16:47
-
-
Save kedzie/d18a296590232a6622c53e5c676af481 to your computer and use it in GitHub Desktop.
Layout with MapView and ViewPager2 which causes bug
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.coordinatorlayout.widget.CoordinatorLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/coordinator" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<!-- mapview uses generated ID of 1 for linear layout --> | |
<com.google.android.gms.maps.MapView | |
android:id="@+id/mapView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" /> | |
<!-- viewpager2 uses generated ID of 1 for embedded recyclerview --> | |
<androidx.viewpager2.widget.ViewPager2 | |
android:id="@+id/merchant_pager" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" | |
app:behavior_hideable="true" /> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment