Created
June 25, 2018 19:07
-
-
Save Avjeet/04c2ab61cd9f2a707830d8c8a688a15a to your computer and use it in GitHub Desktop.
This gist contains code for layout of bottomsheet guide as used to show information regarding instruments
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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/bottom_sheet" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="@dimen/bottom_sheet_side_margin" | |
android:layout_marginRight="@dimen/bottom_sheet_side_margin" | |
android:orientation="vertical" | |
app:behavior_hideable="true" | |
app:behavior_peekHeight="@dimen/peek_height" | |
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="@dimen/btnsheet_top_section_height" | |
android:background="@drawable/btn_sheet_back" | |
android:orientation="vertical"> | |
<ImageView | |
android:id="@+id/img_arrow" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:background="@color/colorPrimary" | |
android:src="@drawable/ic_arrow_drop_up_white_24dp" /> | |
<TextView | |
android:id="@+id/sheet_slide_text" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="center_horizontal" | |
android:text="@string/show_guide_text" | |
android:textColor="@color/white" /> | |
</LinearLayout> | |
<LinearLayout> | |
//put your bottomsheet content here | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment