Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:18:16+00:00 2026-05-26T04:18:16+00:00

How to create a progress dialog with blue color background and my own spinner

  • 0

How to create a progress dialog with blue color background and my own spinner style in android? Please help me out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:18:17+00:00Added an answer on May 26, 2026 at 4:18 am
                Dialog  dialog = new Dialog(MainActivity.this, R.style.mydialogstyle);
                dialog.setContentView(R.layout.dialogmain);
                dialog.setCancelable(false);
    
                ProgressBar pbar = (ProgressBar) dialog.findViewById(R.id.progressBar);
    
                Button btncancel = (Button) dialog.findViewById(R.id.cancelbtn);
                btncancel.setOnClickListener(new OnClickListener() {
    
                    public void onClick(View v) {
                        dialog.dismiss();
                    }
                });
    
                dialog.show();
    

    R.layout.dialogmain—>>

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:background="#0000FF" android:layout_height="wrap_content">
         <ProgressBar style="?android:attr/progressBarStyleHorizontal"
            android:progressDrawable="@android:drawable/progress_horizontal"//You can change drawable of spinner 
            android:layout_marginTop="10dip" android:layout_width="250dip"
            android:id="@+id/progressBar" android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"></ProgressBar>
        <Button android:layout_width="wrap_content" android:background="@drawable/cancel"
            android:layout_height="wrap_content" android:text=""         android:id="@+id/cancelbtn"
            android:layout_marginTop="2dip" android:layout_below="@+id/progressBar"
            android:layout_centerHorizontal="true"></Button>
    
    </RelativeLayout>
    

    Res->values–>style.xml

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <style name="mydialogstyle" parent="android:style/Theme.Dialog">
            <item name="android:windowBackground">@null</item>
            <item name="android:windowNoTitle">false</item>
        </style>
    </resources>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a simple app for android with progress bar . Everything
I have created a progress dialog by ProgressDialog progressDialog = null; // create instance
I would like to create a dialog-style form which would fill the bigger screen
I'm trying to create a dialog window using JQuery. I'm making progress so far,
how to create a progress bar column in DataGrid control in c#
I am trying to create downloading progress. I have my class which extends AsyncTask:
I am trying to find the best option to create a simple progress bar
I'm trying to create a ProgressDialog for an Android-App (just a simple one showing
I'm really interested if I can create two dialogs in Android in same time
I want to create modal dialog but which shouldn't behave in a modal way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.