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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:29:57+00:00 2026-06-01T12:29:57+00:00

I need to create a activity which should look like as a dialog box

  • 0

I need to create a activity which should look like as a dialog box with a rounded corners.

For this requirement I set

 android:theme="@android:style/Theme.Dialog" 

Now my activity looks like a dialog box but I need its corners to be rounded.

Then I created xml with attribute and set this drawable as my activity theme but now my activity not looks like dialog box.

Please suggest me what can be done so that my activity looks like dialog box with rounded corners.

  • 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-06-01T12:29:58+00:00Added an answer on June 1, 2026 at 12:29 pm

    You could make your own theme that has rounded corners. First you’ll need a drawable for the Activity background:

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android" >
    
        <corners android:radius="15dp" />
    
        <solid android:color="#565656" />
    
        <stroke
            android:width="3dp"
            android:color="#ffffff" />
    
        <padding
            android:bottom="6dp"
            android:left="6dp"
            android:right="6dp"
            android:top="3dp" />
    
    </shape>
    

    Next make your own theme that extends the parent Theme.Dialog:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
    
        <style name="ThemeWithCorners" parent="android:Theme.Dialog">
            <item name="android:windowBackground">@drawable/another_test_drawable</item>
        </style>
    
    
    </resources>
    

    This will be in a file named styles.xml in the res/values folder. Use this theme in the android manifest for the Activity you want:

    //...
    <activity
                android:name=".ActivityName"
                android:label="@string/app_name"
                android:theme="@style/ThemeWithCorners" >
    //...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to develop an android app that achieves the following: Create an activity
I need to create a base class that extends Activity which does some common
In my activity, I create a Bitmap object and then I need to launch
I need create custom dialog and put JPanel into it. Is it possible?
Need to create a custom DNS name server using C which will check against
I need to have Receive activity which can receive my custom data. I found
I need to create all the UI programmatically on demand, this means I can't
I need to create an activity that starts a service that monitors the users
I want to start an activity as a dialog, which can be simply done
i need create an email list sending to many emails. what is best solution

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.