Re: [android-developers] How to set height of a custom developed AlertDialog ?
Calin,
Made LineatLayout layout_height - 150dp & ListView's height = match_parent. Unfortunately, no success. Infact the result was same as shown above. Also tried ListView height as wrap_content, both show same results as show above.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="150dp"
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>
Oh godness, how to make this work now ???
On Thursday, 6 September 2012 12:49:29 UTC+5:30, Calin Perebiceanu wrote:
Hard code the LinearLayout's height, not the ListView--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home