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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:52:03+00:00 2026-05-28T05:52:03+00:00

I have an activity which is with the theme Theme.Transparent which is: <style name=Theme.Transparent

  • 0

I have an activity which is with the theme Theme.Transparent which is:

<style name="Theme.Transparent" parent="android:Theme.Dialog">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowNoTitle">false</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:backgroundDimEnabled">false</item>
    <item name="android:gravity">top</item>
</style>

i’m trying to get rid of the border and the padding around it.. i want to make fill the horizontal of the screen. and no gray border.
please help 🙂
enter image description here

  • 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-28T05:52:04+00:00Added an answer on May 28, 2026 at 5:52 am

    Be sure to create your Dialog referencing your custom theme:

    Dialog dialog = new Dialog(this, R.style.MyDialogTheme);
    

    Your custom theme needs to fill the screen and disable a couple of Android framework defaults:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <style name="MyDialogTheme" parent="android:Theme.Dialog">
            <!-- Fill the screen -->
            <item name="android:layout_width">fill_parent</item>
            <item name="android:layout_height">fill_parent</item>
    
            <!-- No backgrounds, titles or window float -->
            <item name="android:windowBackground">@null</item>
            <item name="android:windowNoTitle">true</item>
            <item name="android:windowIsFloating">false</item>      
    
            <!-- Just to prove it's working -->
            <item name="android:background">#ff0000</item>
        </style>
    
    </resources>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My manifest setup: targetSdkVersion=11 I have Activity with theme set to android:style/Theme.Holo.NoActionBar or android:style/Theme.NoTitleBar
I have some problem with Android AsyncTask. There is an Activity which contains some
I have an activity which is shown in a dialog: In order to remove
I have an activity who's orientation is locked to portrait: <activity android:name=MainActivity android:label=@string/app_name android:screenOrientation=portrait
I have an Activity which extends ExpandableListActivity and which contains some Parent Groups and
I have a window that opens in a Dialog theme, which is how I
I have a faux dialog which uses this layout: <?xml version=1.0 encoding=utf-8?> <FrameLayout xmlns:android=http://schemas.android.com/apk/res/android
I have an activity which pops up a custom dialog. On that dialog I
My main preference activity is set to @android:style/Theme.Light . One of my preferences is
I have an activity which uses two Loaders. Each of them returns different type

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.