Material Design Hub

Showing posts with label AlertDialogPro. Show all posts
Showing posts with label AlertDialogPro. Show all posts

Saturday, May 30, 2015

Android Confirm Dialog Library

Android Confirm Dialog Library


Android Confirm Dialog Library

Description:- This Library provide a  custom animated Android confirm dialog.

Min SDK: 9 (Android 2.3–2.3.2 Gingerbread).


How to use  Confirm Dialog Android Library in eclipse :-

Step 1: Create a new Android Project

Step 2: Import  Library to your Android Application Project
     1: File->New->Other
     2: Select Android Project
     3: Select "Create Project from existing source"
     4: Click "Browse and select  Confirm Dialog Android Library, 
     5: Finish 
     6: Right-click on your project -> Properties
     7: In Android->Library section click Add
     8: select recently added project -> Ok
     9: that's it!

Download via maven:


<dependency>
    <groupId>com.github.vignesh-iopex</groupId>
    <artifactId>confirmdialog</artifactId>
    <version>1.0</version>
</dependency>

or Gradle(Android studio):


compile 'com.github.vignesh-iopex:confirmdialog:1.0'

How To Use Confirm Dialog  Library :
public class MainActivity extends Activity {
  @Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Confirm.using(this).ask("Fire missles?").onPositive("Yes", new DialogEventListener.OnClickListener() {
                           @Override public void onClick(DialogEventListener dialog, int which) {
                             launchMissles();
                           }}).onNegative("No",  new DialogEventListener.OnClickListener() {
                           @Override public void onClick(DialogEventListener dialog, int which) {
                             sendFalseAlarm();
                           }}).build().show();
  }
}

Please Join our Facebook  Group and Page

Facebook group: Android controls

Facebook page: Android Controls

Subscribe YouTube channel: Click here

SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Monday, January 12, 2015

ToolTips android Library

SuperToolTips  Android library



ToolTips in android

Description:    SuperToolTips is an Open Source Android library that allows developers to easily create Tool Tips for views.




Download library

How to use SuperToolTips Android Library :-

Step 1: Create a new Android Project

Step 2: Import  Library to your Android Application Project
     1: File->New->Other
     2: Select Android Project
     3: Select "Create Project from existing source"
     4: Click "Browse and select SuperToolTips Android Library, 
     5: Finish 
     6: Right-click on your project -> Properties
     7: In Android->Library section click Add
     8: select recently added project -> Ok
     9: Download nineoldandroids-2.4.0.jar  into your libs directory.
     10: that's it!

Now we are ready to use SuperToolTips Android Library

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/activity_main_redtv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true" />

    <com.nhaarman.supertooltips.ToolTipRelativeLayout
        android:id="@+id/activity_main_tooltipRelativeLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</RelativeLayout>

Java file:

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ToolTipRelativeLayout toolTipRelativeLayout = (ToolTipRelativeLayout) findViewById(R.id.activity_main_tooltipRelativeLayout);

    ToolTip toolTip = new ToolTip()
                        .withText("A beautiful View")
                        .withColor(Color.RED)
                        .withShadow()
                        .withAnimationType(ToolTip.ANIMATIONTYPE_FROMTOP);
    myToolTipView = toolTipRelativeLayout.showToolTipForView(toolTip, findViewById(R.id.activity_main_redtv));
    myToolTipView.setOnToolTipViewClickedListener(MainActivity.this);
}


Developed By:   Niek Haarman


Please Join our Facebook  Group and Page

Facebook group: Android controls

Facebook page: Android Controls

Subscribe YouTube channel: Click here

SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Sunday, November 30, 2014

AlertDialogPro/Dialogs

Android AlertDialogPro/Dialogs 

Android AlertDialogPro/Dialogs


Android AlertDialogPro/Dialogs


Android AlertDialogPro/Dialogs


Description
It's not an easy thing to theme the Android's AlertDialog, even though you are developing against HoneyComb (which introduced some new APIs like android:singleChoiceItemLayout -- allows you specify your own single-choice item layout in theme. But not enough) or above. AlertDialogPro can make this thing easy. It includes (but is not limited to) all AlertDialog's APIs. You can use it the same as using the platform's AlertDialog (just replace AlertDialog.Builder with AlertDialogPro.Builder) and benefit from some of the other sweet features.



Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .