Skip to content

feifeng/AlertDialog

Repository files navigation

AlertDialog - Android

Kotlin's AlertDialog and BottomSheetDialog

Preview

Alert Dialog Sheet Dialog Progress Dialog
Alert Dialog Sheet Dialog Progress Dialog

Features

  • Imitate IOS style
  • Rounded style
  • Highly customizable
  • Very lightweight

Known issue

Installation

Requirements

  • Android SDK Version 21
  • Kotlin Development language

Usage

val alertDialog = AlertDialog(this)
alertDialog.setTitle(R.string.mobile_phone_password_wrong)            
alertDialog.show()

val items = arrayOf(getString(R.string.password_login), getString(R.string.sms_login_or_register))
val sheetDialog = SheetDialog(this, items)
sheetDialog.setMessage(R.string.logout_prompt)
sheetDialog.show()
sheetDialog.onItemClickListener = {

}

val progressDialog = ProgressDialog(this)
progressDialog.show()

Author

Does your organization or project use PhotoBrowse? Please let me know by email.

License

AlerDialog is available under the MIT license. See the LICENSE file for more info.

About

Kotlin's AlertDialog and BottomSheetDialog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages