Skip to content
Bottom sheet with rounded corners
Kotlin Shell
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Merge pull request #1 from Deishelon/add-readme Jan 20, 2019
app Added Previews Jan 20, 2019
gradle/wrapper Initial commit with working example + lib Jan 20, 2019
roundedbottomsheet Merge pull request #1 from Deishelon/add-padding Jan 21, 2019
gradlew Initial commit with working example + lib Jan 20, 2019
gradlew.bat Initial commit with working example + lib Jan 20, 2019

Rounded Bottom Sheet - Android


Step 1. Add the JitPack repository to your build file

allprojects {
    repositories {
        maven { url '' }

Step 2. Add the dependency

dependencies {
    implementation 'com.github.Deishelon:RoundedBottomSheet:1.0.1'

Usage - DialogFragment

Simply extend RoundedBottomSheetDialogFragment, inflate your layout and show it


import com.deishelon.roundedbottomsheet.RoundedBottomSheetDialogFragment

class MyRoundedBottomSheet: RoundedBottomSheetDialogFragment(){

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return inflater.inflate(R.layout.dialog_2_my_rounded_bottom_sheet, container, false)

Usage - Dialog

Simply extend or create an instance of RoundedBottomSheetDialog , inflate your layout and show it


import com.deishelon.roundedbottomsheet.RoundedBottomSheetDialog

val mBottomSheetDialog = RoundedBottomSheetDialog(context!!)
val sheetView = layoutInflater.inflate(R.layout.dialog_2_my_rounded_bottom_sheet, null)


We provide a few options to customize, to make sure your Bottom Sheet will feel native to your app To change default values, just override the recourse you wish, like so:

<color name="roundedBottomSheetPrimaryBackground">#F06292</color>


Recourse Description Default value
@color/roundedBottomSheetPrimaryBackground Background colour #FFFFFFFF
@color/roundedBottomSheetPrimaryNavigationBarColor Navigation bar colour #FFFFFFFF
@dimen/roundedBottomSheetCornerRadius Bottom sheet corner radius 16dp
@dimen/roundedBottomSheetCornerRadiusTopPadding Top padding 8dp
@dimen/roundedBottomSheetCornerRadiusLeftPadding Left padding 8dp
@dimen/roundedBottomSheetCornerRadiusRightPadding Right padding 8dp
You can’t perform that action at this time.