Skip to content

Instantly share code, notes, and snippets.

@kedzie
Created July 3, 2019 16:47
Show Gist options
  • Save kedzie/d18a296590232a6622c53e5c676af481 to your computer and use it in GitHub Desktop.
Save kedzie/d18a296590232a6622c53e5c676af481 to your computer and use it in GitHub Desktop.
Layout with MapView and ViewPager2 which causes bug
<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