Skip to content

Mojtaba-Shafaei/AndroidBottomDialog

Repository files navigation

Android Bottom Dialog

A customizable Android library to display bottom dialog. It Supports LTR/RTL directions. All parameters are customizable.

Requirements

  • MIN-SDK Version = 14

Install

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
        compile 'com.github.Mojtaba-Shafaei:AndroidBottomDialog:last-version'
}

Screenshots

LTR menu

RTL menu

Sample code

BottomDialog.builder()
    .withIcon(R.drawable.ic_error_outline_red_700_24dp)

    .withTitle("Warning", typeface, R.dimen.titleTextSize)
    .withContent("Do you remove this ... ?", typeface, R.dimen.contentTextSize)

    .withPositiveText("Yes.Remove it.", R.color.textPrimaryColor)
    .withPositiveBackgroundType(BottomDialog.BLUE)

    .withNegativeText("Cancel", R.color.textSecondaryColor)
    .withNegativeBackgroundType(BottomDialog.TRANSPARENT)
    .build()
    .show(MainActivity.this);

Developer

License

This project is licensed under the MIT License