GithubHelp home page GithubHelp logo

khalidelsayed / wink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeandmagic/wink

0.0 1.0 0.0 924 KB

Android Dialogs on steroids (kidding, don't use steroids!)

License: Apache License 2.0

wink's Introduction

Android Dialogs on steroids (kidding, don't use steroids!)

What is Wink?

Wink is a DialogFragment which can be easily styled. It works for Android 2.2+ and comes out of the box in Holo Light and Dark flavours.

List of nice features

  • Support for up to three buttons (negative, neutral, positive) arranged according to the OS version
  • Support for generating Holo Light & Dark dialogs based on an accent color
  • Support for custom layout
  • Support for themes
  • Support for lists (single and multiple choice)

Features yet to be implemented

  • Support for simple date & time pickers
  • Support for currency picker
  • Release to Maven Central as an .apklib and .aar library

How to use it?

Basic example of a dialog shown from a Fragment.

new Wink.Builder(getActivity())
        .setWinkId(DIALOG_SHOW)
        .setTitle(R.string.hello_title)
        .setMessage(R.string.hello_message)
        .setUseLightTheme(useLightTheme)
        .setAccentColor(colorPicker.getColor())
        .setPositiveButton(R.string.awesome)
        .setNeutralButton(R.string.hmm)
        .setNegativeButton(R.string.no)
        .setTargetFragmentTag(TAG)
        .show(getChildFragmentManager());

More examples to come soon...

Wink Demo

Wink Holo Dark

Wink Holo Light

Wink ListView

wink's People

Contributors

evelyne24 avatar

Watchers

 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.