Nifty Modal Dialog Effects

Min SDK   10
Latest Commit   2016-06-28 10:52:03
License   unknown

Github   https://github.com/sd6352051/NiftyDialogEffects

         

使用APP客户端扫描二维码运行Demo


...

sd6352051

Beijing, China


         

类似的还有....
PlaceSearchDialog A place autocomplete search dialog which uses Google's places API for finding results.
BottomDialog BottomDialog is a bottom dialog layout implemented with DialogFragment, Supports pop-up animation, Support any layout
LovelyDialog This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.
README

README.md

NiftyDialogEffects

NiftyDialogEffects is deprecated

Nifty Modal Dialog Effects look like this(Nifty Modal Window Effects)

Android Arsenal Build Status JitPack Maven

ScreenShot

Image . Image . Image . Image

Gradle

dependencies {
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.github.sd6352051.niftydialogeffects:niftydialogeffects:1.0.0@aar'
}

Or using JitPack:

repositories { 
    maven { url "https://jitpack.io" }
}
dependencies {
    compile 'com.github.sd6352051:NiftyDialogEffects:1.0.0'
}

Eclipse

Download nineoldandroids-2.4.0.jar into your libs directory.

Usage

NiftyDialogBuilder dialogBuilder=NiftyDialogBuilder.getInstance(this);

dialogBuilder
    .withTitle("Modal Dialog")
    .withMessage("This is a modal Dialog.")
    .show();

Configuration

dialogBuilder
    .withTitle("Modal Dialog")                                  //.withTitle(null)  no title
    .withTitleColor("#FFFFFF")                                  //def
    .withDividerColor("#11000000")                              //def
    .withMessage("This is a modal Dialog.")                     //.withMessage(null)  no Msg
    .withMessageColor("#FFFFFFFF")                              //def  | withMessageColor(int resid)
    .withDialogColor("#FFE74C3C")                               //def  | withDialogColor(int resid)
    .withIcon(getResources().getDrawable(R.drawable.icon))
    .withDuration(700)                                          //def
    .withEffect(effect)                                         //def Effectstype.Slidetop
    .withButton1Text("OK")                                      //def gone
    .withButton2Text("Cancel")                                  //def gone
    .isCancelableOnTouchOutside(true)                           //def    | isCancelable(true)
    .setCustomView(R.layout.custom_view,v.getContext())         //.setCustomView(View or ResId,context)
    .setButton1Click(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Toast.makeText(v.getContext(), "i'm btn1", Toast.LENGTH_SHORT).show();
                    }
    })
    .setButton2Click(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Toast.makeText(v.getContext(),"i'm btn2",Toast.LENGTH_SHORT).show();
        }
    })
    .show();

Effects

Fadein, Slideleft, Slidetop, SlideBottom, Slideright, Fall, Newspager, Fliph, Flipv, RotateBottom, RotateLeft, Slit, Shake, Sidefill

(See The Effect)

Developed By

License

Copyright 2014 litao.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

by cncounter