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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:58:24+00:00 2026-06-11T04:58:24+00:00

I want to create an About dialog. I’m using wrap_content for the height of

  • 0

I want to create an About dialog.

I’m using “wrap_content” for the height of the dialog and I’m setting the textbox message by
code.

For some reason, the dialog is bigger and there is an empty black space on the top.

The dialog doesn’t fit to the size of my content.

Here is my dialog layout:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" > 

    <RelativeLayout
    android:id="@+id/titleLayout"
    android:layout_width="fill_parent"
    android:layout_height="40dip"
    android:background="#EBEBEB" > 


        <ImageView 
        android:id="@+id/ivAbout"
        android:layout_alignParentRight="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"        
        android:src="@drawable/ic_dunk"
        android:layout_marginRight="10dip"
        android:layout_centerVertical="true"/>

        <TextView
        android:id="@+id/tvAboutTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="#08BCBF"
        android:textSize="20sp"
        android:paddingRight="10dip"
        android:layout_toLeftOf="@+id/ivAboutDunk"
        android:layout_centerVertical="true"
        android:text="blabla" 
        />

    </RelativeLayout>    
    <View
        android:id="@+id/lineSeperator"
        android:layout_width="fill_parent"
        android:layout_height="2dip"
        android:background="#08BCBF"
        android:layout_below="@+id/titleLayout"
         />

    <RelativeLayout
    android:id="@+id/aboutStoryLayout"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_below="@+id/lineSeperator"
    android:background="#FFFFFF" > 
    <TextView
        android:id="@+id/tvAboutStory"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textColor="#000000"
        android:gravity="right"
        android:layout_marginRight="12dip"
        android:layout_marginTop="10dip"
        android:text="bla" 
        android:textSize="16sp"
        />    
    </RelativeLayout>

    <RelativeLayout
    android:id="@+id/aboutButtonsLayout"
    android:layout_width="fill_parent"
    android:layout_height="40dip"
    android:layout_below="@+id/aboutStoryLayout"
    android:background="#BDBDBD" >
     <Button
        android:id="@+id/dialogButtonOK"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="OK"
        android:layout_centerInParent="true"        
        />
    </RelativeLayout>      
</RelativeLayout>
  • 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-11T04:58:25+00:00Added an answer on June 11, 2026 at 4:58 am

    If you are using that layout to add content to your dialog via dialog.setContentView(View) then I suspect that the black space at the top is the unused title for the dialog. In which case you can hide/remove the title area by using dialog.requestWindowFeature(Window.FEATURE_NO_TITLE)

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

Sidebar

Related Questions

I want to create a high performance server in C# which could take about
I'm about to create an API for a existing .NET application and want to
I want to publish tutorial about how to easily create an UIScrollView on http://www.xprogress.com/
i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
Having a minor problem, I'm trying to create an about us dialog box by
I am trying to create a hint dialog box that informs the user about
I want to create a run dialog, i implemented interface and command run, but
I'm trying to create an introduction to my program with a helpful dialog message
Where I can find complete manual about style of dialog window? I've create custom
It's easy to create a multi-level menu structure using nested RootElements in MonoTouch.Dialog but

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.