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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:25:45+00:00 2026-05-20T21:25:45+00:00

I want to make my Activity appear like a Dialog box, but without the

  • 0

I want to make my Activity appear like a Dialog box, but without the title bar. So I think I should write this style myself.

But how should this XML style be?

I already tried the Theme.Dialog for my Activity, but the thing is, I don’t want the background of the Theme.Dialog style. And without an label for screen.
I has all the screen build by XML, I want just center it on screen and has a semi-transparent outside background.

  • 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-20T21:25:45+00:00Added an answer on May 20, 2026 at 9:25 pm

    Just do this

    <activity android:name=".MyActivity" 
    android:theme="@style/CustomTheme" 
    android:label="Gana"/>
    

    res/values/styles.xml

    <resources>
    <style name="CustomTheme" parent="android:Theme.Dialog"> 
     <item name="android:windowNoTitle">true</item>
     <item name="android:layout_width">wrap_content</item>
     <item name="android:layout_height">wrap_content</item>
     <item name="android:background">@drawable/mybackground</item>
     <item name="android:gravity">center</item>
     <item name="android:windowIsTranslucent">true</item>
     <item name="android:windowFrame">@null</item>
     <item name="android:windowBackground">@android:color/transparent</item>
     <item name="android:windowIsFloating">true</item>
     <item name="android:windowContentOverlay">@null</item>
     <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
     <item name="android:backgroundDimEnabled">true</item>
     <item name="android:background">@android:color/transparent</item>
    
    </style>
       
    

    If you don’t want background remove that.

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

Sidebar

Related Questions

I want to make Activity like this using GridView. And this Activity have only
I'm a new freshman from china. I want to make a android dialog activity
I want to make layout like the attached image but the problem is when
I used Toast to make notification, but it seems it will appear even its
I want to make a keyboard activity i-e whenever my activity starts it shows
I want to make an app for iPhone and Android. The main activity will
I need to a make a dialog appear as soon as my program's user
How can I make ringtone activity (that always appear in setting) so the user
Hey I want to make a view appear below the last that has been
I want to make an application which prevents other applications to launch without user

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.