🌠 Simple way make your beautiful dialog (Bottom Sheet Dialog)

Overview

Bottom Flux Dialog

BottomFluxDialog, Simple way make your beautiful dialog

Download Demo

ScreenShot

image

Setup

The simplest way to use BottomFluxDialog is to add the library as aar dependency to your build.

Maven

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>

<dependency>
    <groupId>com.github.haerulmuttaqin</groupId>
    <artifactId>BottomFluxDialog</artifactId>
    <version>0.1.1</version>
</dependency>

Gradle

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

dependencies {
        implementation 'com.github.haerulmuttaqin:BottomFluxDialog:0.1.1'
}

Usage

display dialogs easily

Info dialog:

BottomFluxDialog.infoDialog(MainActivity.this)
        .setTextTitle("Info Title")
        .setTextMessage("This is a info message")
        .setImageDialog(R.drawable.ic_dialog_info)
        .setInfoButtonText("CLOSE")
        .show();

Alert dialog:

BottomFluxDialog.alertDialog(MainActivity.this)
        .setTextTitle("Alert Title")
        .setTextMessage("This is a alert message")
        .setImageDialog(R.drawable.ic_dialog_alert)
        .setAlertButtonText("OK")
        .setAlertListener(new BottomFluxDialog.OnAlertListener() {
            @Override
            public void onClick() {
                Toast.makeText(MainActivity.this, "Button Clicked!", Toast.LENGTH_SHORT).show();
            }
        })
        .show();

Confirm dialog:

BottomFluxDialog.confirmDialog(MainActivity.this)
        .setTextTitle("Confirm Title")
        .setTextMessage("This is a confirm message")
        .setImageDialog(R.drawable.ic_dialog_confirm)
        .setLeftButtonText("CANCEL")
        .setRightButtonText("OK")
        .setConfirmListener(new BottomFluxDialog.OnConfirmListener() {
            @Override
            public void onLeftClick() {
                Toast.makeText(MainActivity.this, "Left Button Clicked!", Toast.LENGTH_SHORT).show();
            }

            @Override
            public void onRightClick() {
                Toast.makeText(MainActivity.this, "Right Button Clicked!", Toast.LENGTH_SHORT).show();
            }
        })
        .show();

Input dialog:

BottomFluxDialog.inputDialog(MainActivity.this)
                        .setTextTitle("Input Title")
                        .setTextMessage("This is a input message")
                        .setRightButtonText("SUBMIT")
                        .setInputListener(new BottomFluxDialog.OnInputListener() {
                            @Override
                            public void onSubmitInput(String text) {
                                Toast.makeText(MainActivity.this, "Input : " + text, Toast.LENGTH_SHORT).show();
                            }

                            @Override
                            public void onCancelInput() {
                                Toast.makeText(MainActivity.this, "Button Cancel Clicked!", Toast.LENGTH_SHORT).show();
                            }
                        })
                        .show();

License

MIT License

Copyright (c) 2020 Haerul Muttaqin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
You might also like...
An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!

SlidingMenu (Play Store Demo) SlidingMenu is an Open Source Android library that allows developers to easily create applications with sliding menus li

Simple library which enable you to add a drawer(slide-out) navigation to your android application
Simple library which enable you to add a drawer(slide-out) navigation to your android application

SimpleSideDrawer is an android library to add a drawer navigation into your android application. This library has high affinity with other libraries l

You can easily add awesome animated context menu to your app.
You can easily add awesome animated context menu to your app.

ContextMenu You can easily add awesome animated context menu to your app. Check this project on dribbble Check this project on Behance Usage: For a wo

** A slide-out menu implementation, which allows users to navigate between views in your app.

MenuDrawer A slide-out menu implementation, which allows users to navigate between views in your app. Most commonly the menu is revealed by either dra

Space Navigation is a library allowing easily integrate fully customizable Google Spaces like navigation to your app.
Space Navigation is a library allowing easily integrate fully customizable Google Spaces like navigation to your app.

Space-Navigation-View Introduction Space Navigation is a library allowing easily integrate fully customizable Google [Spaces][1] like navigation to yo

Simple and easy to use circular menu widget for Android.
Simple and easy to use circular menu widget for Android.

Deprecated This project is no longer maintained. No new issues or pull requests will be accepted. You can still use the source or fork the project to

A simple Floating Action Button that shows an anchored Navigation View
A simple Floating Action Button that shows an anchored Navigation View

Floating Navigation View A simple Floating Action Button that shows an anchored Navigation View and was inspired by Menu Material Fixed created by Tom

BottomSheet-Android - A simple customizable BottomSheet Library for Android Kotlin

BottomSheet-Android A simple customizable BottomSheet Library for Android Kotlin

FMenu: A simple plugin that permits to open a menu by swapping the item to the secondary hand

FutureTeam - FMenu FMenu is a simple plugin that permits to open a menu by swapp

Releases(0.1.1)
Owner
Haerul Muttaqin
Haerul Muttaqin
🚀 A very customizable library that allows you to present menu items (from menu resource and/or other sources) to users as a bottom sheet.

SlidingUpMenu A library that allows you to present menu items (from menu resource and/or other sources) to users as a bottom sheet. Gradle Dependency

Rasheed Sulayman 26 Jul 17, 2022
You can create awesome menus with bottom sheet experience in a few lines

You can create awesome menus with bottom sheet experience in a few lines

Mazen Rashed 19 Nov 1, 2022
Bottom Sheet fragment with a sticky header and a content recycler view

Sticky Header Bottom Sheet A simple library to create a Bottom Sheet with a sticky header and a content recycler view. The bottom sheet expands on scr

Kshitij Kumar 12 Sep 21, 2022
Bottom Navigation widget component inspired by the Google Material Design Guidelines at https://www.google.com/design/spec/components/bottom-navigation.html

Material Bottom Navigation Library Lightweight Bottom Navigation library component inspired by the Google Material Design Guidelines at https://www.go

Alessandro Crugnola 1.4k Dec 18, 2022
Suhuf is an android library that is used to build bottom sheets in an elegant way.

Suhuf is an android library that is used to build bottom sheets in an elegant way.

Rahmat Rasyidi Hakim 10 Nov 15, 2021
Android library that provides the floating action button to sheet transition from Google's Material Design.

MaterialSheetFab Library that implements the floating action button to sheet transition from Google's Material Design documentation. It can be used wi

Gordon Wong 1.6k Dec 13, 2022
Spotify like android material bottom navigation bar library.

SuperBottomBar About Spotify like android material bottom navigation bar library. GIF Design Credits All design and inspiration credits belongs to Spo

Ertugrul 73 Dec 10, 2022
A new way to implement navigation in your app 🏎

ExpandableBottomBar A new way to improve navigation in your app Its really easy integrate to your project take it, faster, faster Important: library w

Alexander Dadukin 692 Dec 29, 2022
Neat library, that provides a simple way to implement guillotine-styled animation

Guillotine animation Neat library, that provides a simple way to implement guillotine-styled animation Check this [project on Dribbble] (https://dribb

Yalantis 2.7k Jan 3, 2023
:fire: The powerful and easiest way to implement modern material popup menu.

PowerMenu ?? The powerful and easiest way to implement modern material popup menu. PowerMenu can be fully customized and used for popup dialogs. Downl

Jaewoong Eum 1k Dec 29, 2022