All Projects → ayaremin → panter-dialog

ayaremin / panter-dialog

Licence: other
Panter Dialog is an stylish android library that helps users add cool features like adding header and header logos

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to panter-dialog

Adversarial-Learning-for-Generative-Conversational-Agents
This repository contains a new adversarial training method for Generative Conversational Agents
Stars: ✭ 71 (-38.79%)
Mutual labels:  dialog
TTFancyGifDialog-Android
TTFancyGifDialog makes your Android Dialog Fancy and more Beautiful. A library that makes normal Android Dialog to high level Dialog with many styling options and fully customizable. Make dialog from few lines of code.
Stars: ✭ 61 (-47.41%)
Mutual labels:  dialog
flutter jd address selector
京东地址选择器
Stars: ✭ 26 (-77.59%)
Mutual labels:  dialog
HeaderDialog
An android library to display a material-designed dialog with header.
Stars: ✭ 64 (-44.83%)
Mutual labels:  dialog
AndroidToRN
原生android中嵌入React Native
Stars: ✭ 95 (-18.1%)
Mutual labels:  dialog
flutter examples
Random flutter examples
Stars: ✭ 18 (-84.48%)
Mutual labels:  dialog
dialogbot
dialogbot, provide search-based dialogue, task-based dialogue and generative dialogue model. 对话机器人,基于问答型对话、任务型对话、聊天型对话等模型实现,支持网络检索问答,领域知识问答,任务引导问答,闲聊问答,开箱即用。
Stars: ✭ 96 (-17.24%)
Mutual labels:  dialog
Xpersona
XPersona: Evaluating Multilingual Personalized Chatbot
Stars: ✭ 54 (-53.45%)
Mutual labels:  dialog
mac-ibm-notifications
macOS agent used to display custom notifications and alerts to the end user.
Stars: ✭ 206 (+77.59%)
Mutual labels:  dialog
BaseDevelop
an android project for now fashion open source framework
Stars: ✭ 24 (-79.31%)
Mutual labels:  dialog
XStyleDialog
可定制化样式的Android Dialog
Stars: ✭ 37 (-68.1%)
Mutual labels:  dialog
HHChaosToolkit
A set of MVVM tookit class libraries for uwp platform.
Stars: ✭ 27 (-76.72%)
Mutual labels:  dialog
Material-Smart-Rating
😍⭐⭐Material Smart Rating App - An Android library that encourages users to rate the app on Google Play.⭐⭐😘
Stars: ✭ 30 (-74.14%)
Mutual labels:  dialog
cookie-consent-js
A simple dialog and framework to handle the German and EU law about cookies in a website (December 2021)
Stars: ✭ 55 (-52.59%)
Mutual labels:  dialog
jquery.dialog.js
A lightweight replacement for the browser's default dialog boxes.
Stars: ✭ 17 (-85.34%)
Mutual labels:  dialog
Android-Dialog
Android Dialog(BaseDialog、AlertDialog、ProgressDialog、SuccessDdialog、ErrorDialog、BottomDialog)
Stars: ✭ 36 (-68.97%)
Mutual labels:  dialog
wechat-miniprogram-dialog
微信小程序弹窗组件 wxapp dialog component
Stars: ✭ 50 (-56.9%)
Mutual labels:  dialog
react-native-input-prompt
A cross-platform user input prompt component for React Native with Native UI.
Stars: ✭ 45 (-61.21%)
Mutual labels:  dialog
react-fusionui
☢️ Nuclear power-up for your UI.
Stars: ✭ 13 (-88.79%)
Mutual labels:  dialog
svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (-79.31%)
Mutual labels:  dialog

PanterDialog

Build Status Android Arsenal Join the chat at https://gitter.im/panterdialog/Lobby

Logo

Screenshots

Installation

Add this into your build.gradle dependencies section.

compile 'com.eminayar.panterdialog:panter-dialog:0.0.2.1'

Sample Usages

You can check sample application to see how to create PanterDialogs with simply [sample module] (https://github.com/kngfrhzs/panter-dialog/tree/master/app).

There are 3 types of dialog for now. Default dialog type is DialogType.Standart. So if you don't pass this value it will create a standart text dialog. Otherwise you can create Input Dialog by just calling setDialogType(DialogType.INPUT) or Single Choice List Dialog by just calling setDialogType(DialogType.SINGLECHOICE).

Dialog with Header and Logo

new PanterDialog(this)
       .setHeaderBackground(R.drawable.pattern_bg_orange)
       .setHeaderLogo(R.drawable.sample_logo)
       .setPositive("I GOT IT")// You can pass also View.OnClickListener as second param
       .setNegative("DISMISS")
       .setMessage(R.string.lorem_ipsum)
       .isCancelable(false)
       .show();

Dialog with Header and Title

new PanterDialog(this)
       .setHeaderBackground(R.drawable.pattern_bg_orange)
       .setTitle("Sample Title")
       .setPositive("I GOT IT")// You can pass also View.OnClickListener as second param
       .setNegative("DISMISS")
       .setMessage(R.string.lorem_ipsum)
       .isCancelable(false)
       .show();

Dialog with Only Header

new PanterDialog(this)
       .setHeaderBackground(R.drawable.pattern_bg_orange)
       .setPositive("I GOT IT")// You can pass also View.OnClickListener as second param
       .setNegative("DISMISS")
       .setMessage(R.string.lorem_ipsum)
       .isCancelable(false)
       .show();

Input Dialog

new PanterDialog(this)
        .setHeaderBackground(R.drawable.pattern_bg_orange)
        .setHeaderLogo(R.drawable.sample_logo)
        .setDialogType(DialogType.INPUT)
        .isCancelable(false)
        .input("THIS IS HINT FOR INPUT AREA YOU CAN WRITE HERE ANY LONGER TEXTS",
                "ERROR MESSAGE IF USER PUT EMPTY INPUT", new
                            OnTextInputConfirmListener() {
                            @Override
                            public void onTextInputConfirmed(String text) {
                                Toast.makeText(MainActivity.this, text, Toast.LENGTH_LONG).show();
                            }
                        })
        .show();

Single Choice List Dialog

While passing your values to dialog you can pass them as @ArrayRes , String[] or ArrayList<String>.There are 3 built-in method for them

new PanterDialog(this)
          .setHeaderBackground(R.drawable.pattern_bg_blue)
          .setHeaderLogo(R.drawable.sample_logo)
          .setDialogType(DialogType.SINGLECHOICE)
          .isCancelable(false)
          .items(R.array.sample_array, new OnSingleCallbackConfirmListener() {
              @Override
              public void onSingleCallbackConfirmed(PanterDialog dialog, int pos, String text) {
                  Toast.makeText(MainActivity.this, "position : " + String.valueOf(pos) +
                                  " value = " + text,
                          Toast.LENGTH_LONG).show();
              }
          })
          .show();

Animation

There are 3 type of pre-defined animation you can use : POP, SLIDE and SIDE

Pop Animation

You can add this animation to your dialog by using .withAnimation(Animation.POP)

Side Animation

This animation let dialog enter screen from left and exit from right. You can add this animation to your dialog by using .withAnimation(Animation.SIDE)

Slide Animation

This animation let dialog enter screen from bottom and exit from bottom. You can add this animation to your dialog by using .withAnimation(Animation.SLIDE)

Contribution

Open to any kind of new idea, development suggestion or bug fixing. And If anyone want to contribute , I will appreciate. It is enough to just create a new PR that explaining problem and solution.

###License

Copyright 2016 Muhammed Emin AYAR

The MIT License

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.
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].