Created
July 12, 2020 13:36
-
-
Save DmitriySosnovskiy/c3b6f23949e73b661ec1bf286ff1446f to your computer and use it in GitHub Desktop.
Фрагмент с BottomSheet
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
<?xml version="1.0" encoding="utf-8"?> | |
<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/activity_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true"> | |
<androidx.fragment.app.FragmentContainerView | |
android:id="@+id/mapView" | |
class="com.google.android.gms.maps.SupportMapFragment" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#FFFFFF"> | |
</androidx.fragment.app.FragmentContainerView> | |
<ImageButton | |
android:id="@+id/btn_settings" | |
android:layout_width="40dp" | |
android:layout_height="40dp" | |
android:layout_gravity="end" | |
android:layout_marginTop="@dimen/spacing_normal_16" | |
android:layout_marginEnd="@dimen/spacing_normal_16" | |
android:background="@drawable/btn_round_bg" | |
android:contentDescription="@string/description_btn_settings" | |
android:scaleType="centerInside" | |
android:src="?attr/settingsIcon" /> | |
<include layout="@layout/bottomsheet_layout" /> | |
<com.google.android.material.floatingactionbutton.FloatingActionButton | |
style="@style/WhiteButtonStyle" | |
android:theme="@style/WhiteButtonTheme" | |
android:id="@+id/bottomsheet_back_button" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/ic_bottomsheet_return_button" | |
app:backgroundTint="@android:color/white" | |
app:layout_anchor="@id/bottom_sheet" | |
android:layout_marginLeft="25dp" | |
app:layout_anchorGravity="top|start" /> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment