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 4547028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:02:16+00:00 2026-05-21T16:02:16+00:00

I want to set the Transparent window for the Default alertDialogbox. . . How

  • 0

I want to set the Transparent window for the Default alertDialogbox. . .
How can i able to do it ??
My Alertbox is as like this. Please refer it. .

Thanks in Advance. .

  • 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-21T16:02:17+00:00Added an answer on May 21, 2026 at 4:02 pm

    The link is for activity
    How do I create a transparent Activity on Android?

    but still you can apply the same theme for dialog box too.

    Edit

    Create a class for the dialog as below

    CustDialog.java :

    public class CustomDialog extends Dialog implements android.view.View.OnClickListener {
    
        Button button_home,button_cancel,button_resume;
        public GamePauseMenu(Context context) {
            super(context,R.style.Theme_Transparent);
    
    
        }
        public void show(int bg) {
            // TODO Auto-generated method stub
            super.show();
            setContentView(R.layout.custdialog);
            button_resume = (Button)findViewById(R.id.imageButton1);
            button_resume.setOnClickListener(this);
        }
        public void onClick(View v) {
            cancel();
    
        }
    
    
    }
    

    custdialog.xml in Layout :

    <?xml version="1.0" encoding="utf-8"?>
    
    <LinearLayout android:id="@+id/linearLayout1"
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:gravity="center|center_vertical|center_horizontal"
        android:layout_width="fill_parent" android:layout_height="fill_parent">
        <Button android:id="@+id/imageButton1" android:background="@drawable/menu_home"
            android:layout_height="wrap_content" android:layout_width="fill_parent"
            android:drawingCacheQuality="auto" android:duplicateParentState="true"></Button>
        <Button android:background="@drawable/menu_next" android:id="@+id/imageButton2"
            android:layout_height="wrap_content" android:layout_width="fill_parent"></Button>
        <Button android:id="@+id/imageButton3" android:background="@drawable/menu_reset"
            android:layout_height="wrap_content" android:layout_width="fill_parent"></Button>
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I want a window to be transparent I have to set AllowsTransparency to
I just want to know how i can set a transparent background of an
I want set Listbox background to transparent but not working Is there any idea?
I have a div set transparent with rgba and want on that div an
I want to set color as transparent. In RGB 255 0 255 with alpha
In my application i want to set the statusbar transparent.There are three styles are
Hy,.. how can i set the background transparent and remove the closeoperation (marked red)
How do you create a transparent window that can be placed over another window
I want to set an image to have a transparent background, but I do
I'd like to make the background of a Gtk+ window transparent so that only

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.