mejdi14 / Flat Dialog Android
📱Android Library to implement beautiful dialogs in android apps easily
Stars: ✭ 102
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Flat Dialog Android
Aestheticdialogs
📱 An Android Library for 💫fluid, 😍beautiful, 🎨custom Dialogs.
Stars: ✭ 352 (+245.1%)
Mutual labels: design, dialog
Md Date Time Picker
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
Stars: ✭ 272 (+166.67%)
Mutual labels: design, dialog
Dialogsheet
An Android library to create fully material designed bottom dialogs similar to the Android Pay app.
Stars: ✭ 236 (+131.37%)
Mutual labels: design, dialog
Singledateandtimepicker
You can now select a date and a time with only one widget !
Stars: ✭ 921 (+802.94%)
Mutual labels: design, dialog
Visual Center
Proposed tool to better align logos in the center of a container.
Stars: ✭ 1,338 (+1211.76%)
Mutual labels: design
Flipprogressdialog
Airbnb like ProgressDialog with Image Flip Animation.🛌🍞✨
Stars: ✭ 92 (-9.8%)
Mutual labels: dialog
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (-1.96%)
Mutual labels: dialog
Immersionbar
android 4.4以上沉浸式状态栏和沉浸式导航栏管理,适配横竖屏切换、刘海屏、软键盘弹出等问题,可以修改状态栏字体颜色和导航栏图标颜色,以及不可修改字体颜色手机的适配,适用于Activity、Fragment、DialogFragment、Dialog,PopupWindow,一句代码轻松实现,以及对bar的其他设置,详见README。简书请参考:http://www.jianshu.com/p/2a884e211a62
Stars: ✭ 10,030 (+9733.33%)
Mutual labels: dialog
Quasar Sika Design
quasar-sika-design让世界没有难写的代码,Quasar Sika Design 是一个企业级中后台前端 / 设计解决方案,中后台管理模板,我们秉承 Ant Design 的设计价值观,致力于在设计规范和基础组件的基础上,继续向上构建,提炼出典型模板 / 业务组件 / 配套设计资源,进一步提升企业级中后台产品设计研发过程中的『用户』和『设计者』的体验。
Stars: ✭ 93 (-8.82%)
Mutual labels: design
Measureit arch
An expansion of Antonio Vazquez's MeasureIt addon to add features to create Architectural Drawings in Blender 2.8
Stars: ✭ 93 (-8.82%)
Mutual labels: design
Hpmor
A set of covers for "Harry Potter and the Methods of Rationality".
Stars: ✭ 92 (-9.8%)
Mutual labels: design
Material Design For Bootstrap
Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
Stars: ✭ 9,463 (+9177.45%)
Mutual labels: design
Css Flags
A collection of pure CSS flags, all single divs.
Stars: ✭ 90 (-11.76%)
Mutual labels: design
Rox
🌍 BeWelcome lets you share a place to stay, connect with travellers, meet up and find accommodation on your journey. It is and will always be a free, open source, non for profit, democratic community.
Stars: ✭ 95 (-6.86%)
Mutual labels: design
Simpledialogfragments
A collection of easy to use and extendable DialogFragment's for Android
Stars: ✭ 94 (-7.84%)
Mutual labels: dialog
Flat-Dialog
Installation
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
...
implementation 'com.github.mejdi14:Flat-Dialog-Android:1.0.5'
}
Screenshots
How to use with java
final FlatDialog flatDialog = new FlatDialog(ExempleActivity.this);
flatDialog.setTitle("Login")
.setSubtitle("write your profile info here")
.setFirstTextFieldHint("email")
.setSecondTextFieldHint("password")
.setFirstButtonText("CONNECT")
.setSecondButtonText("CANCEL")
.withFirstButtonListner(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(ExempleActivity.this, flatDialog.getFirstTextField(), Toast.LENGTH_SHORT).show();
}
})
.withSecondButtonListner(new View.OnClickListener() {
@Override
public void onClick(View view) {
flatDialog.dismiss();
}
})
.show();
How to use with kotlin
val flatDialog = FlatDialog(this@MainActivity)
flatDialog.setTitle("Login")
.setSubtitle("write your profile info here")
.setFirstTextFieldHint("email")
.setSecondTextFieldHint("password")
.setFirstButtonText("CONNECT")
.setSecondButtonText("CANCEL")
.withFirstButtonListner {
// do something ...
}
.withSecondButtonListner {
flatDialog.dismiss()
}
.show()
More useful methods
Method | Description |
---|---|
isCancelable(boolean) | |
setIcon(image) | Add an image at the top of the dialog |
setBackgroundColor(color) | Change the dialog background color |
setFirstTextFieldHint(String) | Set a hint for the edittext |
setFirstTextFieldTextColor(color) | Set the edittext text color |
setFirstTextFieldBorderColor(color) | Set the border color for the edittext |
setFirstTextFieldInputType(type) | Set the input type for the edittext |
setFirstButtonColor(color) | Set the button background color |
Contributing
Any contributions, large or small, major features, bug fixes, are welcomed and appreciated
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].