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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:20:21+00:00 2026-05-28T06:20:21+00:00

I have to build a dialog that looks exactly the same across different devices

  • 0

I have to build a dialog that looks exactly the same across different devices regardless of the OS theme. At the moment, I created an AlertDialog and I call alertDialog.setView(myLayout). This creates a dialog with my view. However, some parts of the dialog box (outer part and border line) are still OS based and they look different in my Samsung or HTC.

Is there anyway to create the actual box?

  • 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-28T06:20:22+00:00Added an answer on May 28, 2026 at 6:20 am

    Go for this

    import android.app.Dialog;
    import android.content.Context;
    import android.os.Bundle;
    
    public class FullyscutomDialo extends Dialog{
    
    public FullyscutomDialo(Context context) {
        super(context);
        // TODO Auto-generated constructor stub
    }
    
    @Override
    public void dismiss() {
        //do what you need before closing here
        super.dismiss();
    }
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //set your custom layout here
        //use layout attribut just like activity
    }
    
     }
    

    then use two line to show it from activity(May be onclickevent etc)

             FullyscutomDialo hh=new FullyscutomDialo (this);
             hh.show()
    

    Edited For Transparent Dialog

    use In onCreate of dialog class

     this.getWindow().setBackgroundDrawable(new ColorDrawable(0));
    

    Cheers :):)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have build C# program that work with RAPI (communication to PPC or WinCE)
I'm developing a system, and I have build a code generator that emits a
I would like to build a generic/re-usable modal dialog that I can use in
I have an InstallShield (InstallScript) installation, created using IS2009, that's built automatically every night,
I want to create a dialog with a string that I build at runtime.
I have an ajax request that looks like this, $(#frmProducts).submit(function(){ var dataSet = $(#frmProducts).serialize();
I've been working on this application but have come across a problem that I
How can I make that dialog box which most of the applications have that
I have two open winforms, say that winform1 gets a modal dialog, this means
I have the first activity that call a dialog from second activity with this

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.