Thanks for your prompt response.

In the xml, I have already given 

android:layout_height="match_parent' of its LinearLayout & of List too. 
 
> <?xml version=*"1.0"* encoding=*"utf-8"*?>
>
> <LinearLayout xmlns:android=*"http://schemas.android.com/apk/res/android"*
> * *android:layout_width=*"match_parent"* android:layout_height=*
> "match_parent"** *android:orientation=*"vertical"* android:id=*
> "@+id/genListLayId"* >
>
> <TextView android:id=*"@+id/genListTitTv"* style=*
> "@style/inResultTitleStyle"* android:text=*""* />
>
> <ListView android:id=*"@+id/genList"* android:layout_width=*"match_parent"
> * android:layout_height=*"match_parent" *android:dividerHeight=*"0dp"* 
> android:divider=*"@null"* android:layout_marginLeft=*"10dp"* /> 
>
</LinearLayout>
>
<https://lh5.googleusercontent.com/-y59oa3y62Nc/UEXnAWzGAzI/AAAAAAAAAEo/TsOtuD5AU2k/s1600/dialogImage.png>
Above is the xml file that I am using in creation of the dialog. Heres' the 
result :

The red panel is the Footer, I want the dialog to be appeared in the 
MainBody i.e. Black part & not on the footer. What is still going wrong 
here ??


 


On Tuesday, 4 September 2012 16:29:40 UTC+5:30, aravelli wrote:
>
> Set height attribute for xml which u r going to show in dialog
> On Sep 4, 2012 4:18 PM, "tvdalia" <[email protected] <javascript:>> 
> wrote:
>
>>  
>> Hello, 
>>  
>>     I create a custom AlertDilaog using inflate Layout. It uses all the 
>> space it can. I want it to restrict the height. My Activities have differnt 
>> part :
>> MainBODY
>> Footer
>>     Thier is a ParentActivity that has a standard footer and in other 
>> activities I inflate the ViewGroup in  the MainBody with the layout to be 
>> shown. On certain clicks of othe activity a dialog appears which takes all 
>> possible space i.e. almost full screen.
>>     I want the height of the dialog to be within the MainBody Activity 
>> height. How do and when do I set that ? I can't find any resource for the 
>> same.
>>  
>>     It would be very good if you can help me with this at the earliest. 
>> Am stuck from 3-4 days with this problem. Any help is highly appreciated.
>>  
>> Thanks
>>  
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to