BottomSheetDialog example
BottomSheetDialog example The former post show a example of "Implement BottomSheet of Android Design Support Library". This post show a BottomSheetDialog example. To use Design Support Library in your app, you have to "Add Android Design Support Library to Android Studio Project", currently version com.android.support:design:23.4.0. Create a file layout/bottomsheetdialog_layout.xml, to define the layout of the BottomSheetDialog. <?xml version="1.0" encoding="utf-8"?> <LinearLayout android_orientation="vertical" android_layout_width="match_parent" android_layout_height="wrap_content" app_layout_behavior="android.support.design.widget.BottomSheetBehavior"> <LinearLayout android_layout_width="match_parent" android_layout_height="300dp" android_orientation="vertical"> <TextView android_layout_width="wrap_content" android_layout_height=...