Giter Site home page Giter Site logo

easydialog's Introduction

EasyDialog

A lightweight, flexible tip dialog in Android

Demo can be download in GooglePlay

项目可在GooglePlay下载

Android app on Google Play

A lightweight, flexible tip dialog in Android.You can custom the dialog style easily,set the TipView location, background color,animations,just only one line code!!! This Project and Demo is open source in github.

你可以只用一行代码就实现提示对话框,包括设置对话框的位置,背景颜色和动画等等。

How to use(如何使用)

dependencies {
    compile 'com.github.michaelye.easydialog:easydialog:1.0'
}

 View view = this.getLayoutInflater().inflate(R.layout.layout_tip_content_horizontal, null);
 new EasyDialog(MainActivity.this)
 // .setLayoutResourceId(R.layout.layout_tip_content_horizontal)//layout resource id
    .setLayout(view)
    .setBackgroundColor(MainActivity.this.getResources().getColor(R.color.background_color_black))
 // .setLocation(new location[])//point in screen
    .setLocationByAttachedView(btnTopLeft)
    .setGravity(EasyDialog.GRAVITY_BOTTOM)
    .setAnimationTranslationShow(EasyDialog.DIRECTION_X, 1000, -600, 100, -50, 50, 0)
    .setAnimationAlphaShow(1000, 0.3f, 1.0f)
    .setAnimationTranslationDismiss(EasyDialog.DIRECTION_X, 500, -50, 800)
    .setAnimationAlphaDismiss(500, 1.0f, 0.0f)
    .setTouchOutsideDismiss(true)
    .setMatchParent(true)
    .setMarginLeftAndRight(24, 24)
    .setOutsideColor(MainActivity.this.getResources().getColor(R.color.outside_color_trans))
    .show();

easydialog's People

Contributors

michaelye avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.