Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I Want Show Custom Dialog like iphone HUD Progress Bar

Tags:

android

I want to show custom dialog like iphone hud progress Bar Style.but,i am no idea for creating custom dialog like hud progress bar like iphone on android.

I want custom dialog like below image:

enter image description here

Help with me...!

Thanks...!

like image 736
Dinesh Avatar asked Apr 25 '12 07:04

Dinesh


2 Answers

I have created a sample Android application and a ProgressHUD class which you can use for this purpose. You can find it here: https://github.com/anupamdhanuka/AndroidProgressHUD

like image 96
user1513819 Avatar answered Nov 11 '22 14:11

user1513819


Just look at this(my) library. IOSDialog/Spinner library

It is very easy to use and solves your problem. With it, you can easily create and use spinner like in IOS. The example of code:

final IOSDialog dialog1 = new IOSDialog.Builder(IOSDialogActivity.this)
            .setOnCancelListener(new DialogInterface.OnCancelListener() {
                @Override
                public void onCancel(DialogInterface dialog) {
                    dialog0.show();
                }
            })
            .setDimAmount(3)
            .setSpinnerColorRes(R.color.colorGreen)
            .setMessageColorRes(R.color.colorAccent)
            .setTitle(R.string.standard_title)
            .setTitleColorRes(R.color.colorPrimary)
            .setMessageContent("My message")
            .setCancelable(true)
            .setMessageContentGravity(Gravity.END)
            .build();

Result

 final IOSDialog dialog0 = new IOSDialog.Builder(IOSDialogActivity.this)
            .setTitle("Default IOS bar")
            .setTitleColorRes(R.color.gray)
            .build();

Result: standard IOS Dialog

like image 39
Samehadar Avatar answered Nov 11 '22 13:11

Samehadar