Re: [android-developers] Re: Problem in height of Listview
thnx for replay, but its not working with list view. if i set the height=0dip, my entire list item gone. On Fri, Oct 1, 2010 at 9:42 PM, letlite letl...@gmail.com wrote: Set its height to 0 and give it a weight. android:layout_weight=1 android:layout_height=0dip On Sep 30, 11:08 pm, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi Techie, I'm facing a problem in height of ListView (in my list i'v some time 1 item or some times 20-30 items) ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_width=fill_parent /ListView Here I want android:layout_height = wrap_content or android:layout_height = fill_parent but in both the case lower part of button is not showing, if i fix height=330px, den its comming appropriately in my emumlator, i want height should be dynamic, wrap_content so please help me, how to fix the height of list view according to devices, so that it will fit in any devices, thaanks __RKJ -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in height of Listview
Hi paulb, thanx for reply its working fine. I was stick at this point since long time. On Sun, Oct 3, 2010 at 7:37 PM, paulb pbizan...@gmail.com wrote: Hey Rocky, If you are still experiencing a problem with the layout, and the RelativeLayout does not work, you can use a solution along the lines of: LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_marginBottom=60dp android:layout_height=fill_parent ListView android:id=@+id/ListView01 android:layout_height=wrap_content android:layout_weight=1 android:layout_width=fill_parent /ListView /LinearLayout ... and then, in your /inbox_page_edit_mode_footer_button layout, you set the attribute: android:layout_marginTop=-60dp On Sat, Oct 2, 2010 at 4:50 AM, letlite letl...@gmail.com wrote: Set its layout_height to 0 and give it a layout_weight : android:layout_height=0dip android:layout_weight=1 As it was mentioned, wrap_content should not be used for ListView's layout_height. See why here: a href=http://code.google.com/events/io/2010/sessions/ world-of-listview-android.htmlThe world of ListView /a On Sep 30, 11:08 pm, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi Techie, I'm facing a problem in height of ListView (in my list i'v some time 1 item or some times 20-30 items) ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_width=fill_parent /ListView Here I want android:layout_height = wrap_content or android:layout_height = fill_parent but in both the case lower part of button is not showing, if i fix height=330px, den its comming appropriately in my emumlator, i want height should be dynamic, wrap_content so please help me, how to fix the height of list view according to devices, so that it will fit in any devices, thaanks __RKJ -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in height of Listview
Hey Rocky, If you are still experiencing a problem with the layout, and the RelativeLayout does not work, you can use a solution along the lines of: LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_marginBottom=60dp android:layout_height=fill_parent ListView android:id=@+id/ListView01 android:layout_height=wrap_content android:layout_weight=1 android:layout_width=fill_parent /ListView /LinearLayout ... and then, in your /inbox_page_edit_mode_footer_button layout, you set the attribute: android:layout_marginTop=-60dp On Sat, Oct 2, 2010 at 4:50 AM, letlite letl...@gmail.com wrote: Set its layout_height to 0 and give it a layout_weight : android:layout_height=0dip android:layout_weight=1 As it was mentioned, wrap_content should not be used for ListView's layout_height. See why here: a href=http://code.google.com/events/io/2010/sessions/ world-of-listview-android.htmlThe world of ListView /a On Sep 30, 11:08 pm, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi Techie, I'm facing a problem in height of ListView (in my list i'v some time 1 item or some times 20-30 items) ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_width=fill_parent /ListView Here I want android:layout_height = wrap_content or android:layout_height = fill_parent but in both the case lower part of button is not showing, if i fix height=330px, den its comming appropriately in my emumlator, i want height should be dynamic, wrap_content so please help me, how to fix the height of list view according to devices, so that it will fit in any devices, thaanks __RKJ -- 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+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in height of Listview
Hi Bibek, if i'm using fill_parent, also it fill entire screen, and my bottom button goes off, (footer button not showing that case) is any dynamic approach, thr that i can set the height according to device, in java file (coding) --RKJ On Fri, Oct 1, 2010 at 12:14 PM, Kumar Bibek coomar@gmail.com wrote: Wrap_content is not suitable for listview's height. AFAIK. Either you set the height, or allow it to expand, by setting fill_parent -Kumar Bibek http://techdroid.kbeanie.com On Oct 1, 11:08 am, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi Techie, I'm facing a problem in height of ListView (in my list i'v some time 1 item or some times 20-30 items) ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_width=fill_parent /ListView Here I want android:layout_height = wrap_content or android:layout_height = fill_parent but in both the case lower part of button is not showing, if i fix height=330px, den its comming appropriately in my emumlator, i want height should be dynamic, wrap_content so please help me, how to fix the height of list view according to devices, so that it will fit in any devices, thaanks __RKJ -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in height of Listview
hi Bibek, still same problem, ListView android:id=@+id/ListView01 android:layout_height=wrap_content android:layout_weight=1 android:layout_width=fill_parent /ListView or ListView android:id=@+id/ListView01 android:layout_height=fill_parent android:layout_weight=1 android:layout_width=fill_parent /ListView is i'm writing right way of weight. On Fri, Oct 1, 2010 at 1:25 PM, Kumar Bibek coomar@gmail.com wrote: Try weight parameter in a LinearLayout. That should solve your problem. -Kumar Bibek http://techdroid.kbeanie.com On Oct 1, 11:56 am, Rocky rkjhaw1...@gmail.com wrote: Hi Bibek, if i'm using fill_parent, also it fill entire screen, and my bottom button goes off, (footer button not showing that case) is any dynamic approach, thr that i can set the height according to device, in java file (coding) --RKJ On Fri, Oct 1, 2010 at 12:14 PM, Kumar Bibek coomar@gmail.com wrote: Wrap_content is not suitable for listview's height. AFAIK. Either you set the height, or allow it to expand, by setting fill_parent -Kumar Bibek http://techdroid.kbeanie.com On Oct 1, 11:08 am, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi Techie, I'm facing a problem in height of ListView (in my list i'v some time 1 item or some times 20-30 items) ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_width=fill_parent /ListView Here I want android:layout_height = wrap_content or android:layout_height = fill_parent but in both the case lower part of button is not showing, if i fix height=330px, den its comming appropriately in my emumlator, i want height should be dynamic, wrap_content so please help me, how to fix the height of list view according to devices, so that it will fit in any devices, thaanks __RKJ -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in height of Listview
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent include layout=@layout/tabbar android:layout_height=fill_parent / LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_weight=1 android:layout_width=fill_parent /ListView /LinearLayout include layout=@layout/inbox_page_edit_mode_footer_button android:layout_height=wrap_content / /LinearLayout while i'm showing the list item I've footer header, if i'm using either of fill_parent or wrap_content, my footer part is not showing, if i fixed the height=330, then footer part is showing. that the problem, I wountn't like to fix the height. On Fri, Oct 1, 2010 at 2:46 PM, Kumar Bibek coomar@gmail.com wrote: The parent of the ListView should be Linear Layout, just ensure that, and it should work. But I suspect that what you want is really not what this will give you. If you can be more specific, that would help. -Kumar Bibek http://techdroid.kbeanie.com On Oct 1, 1:48 pm, Rocky rkjhaw1...@gmail.com wrote: hi Bibek, still same problem, ListView android:id=@+id/ListView01 android:layout_height=wrap_content android:layout_weight=1 android:layout_width=fill_parent /ListView or ListView android:id=@+id/ListView01 android:layout_height=fill_parent android:layout_weight=1 android:layout_width=fill_parent /ListView is i'm writing right way of weight. On Fri, Oct 1, 2010 at 1:25 PM, Kumar Bibek coomar@gmail.com wrote: Try weight parameter in a LinearLayout. That should solve your problem. -Kumar Bibek http://techdroid.kbeanie.com On Oct 1, 11:56 am, Rocky rkjhaw1...@gmail.com wrote: Hi Bibek, if i'm using fill_parent, also it fill entire screen, and my bottom button goes off, (footer button not showing that case) is any dynamic approach, thr that i can set the height according to device, in java file (coding) --RKJ On Fri, Oct 1, 2010 at 12:14 PM, Kumar Bibek coomar@gmail.com wrote: Wrap_content is not suitable for listview's height. AFAIK. Either you set the height, or allow it to expand, by setting fill_parent -Kumar Bibek http://techdroid.kbeanie.com On Oct 1, 11:08 am, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi Techie, I'm facing a problem in height of ListView (in my list i'v some time 1 item or some times 20-30 items) ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_width=fill_parent /ListView Here I want android:layout_height = wrap_content or android:layout_height = fill_parent but in both the case lower part of button is not showing, if i fix height=330px, den its comming appropriately in my emumlator, i want height should be dynamic, wrap_content so please help me, how to fix the height of list view according to devices, so that it will fit in any devices, thaanks __RKJ -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com android-developers%252bunsubscr...@googlegroups.comandroid-developers%25252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
Re: [android-developers] Re: Problem in height of Listview
Use a relative layout. Set layout_alignParentBottom for the footer view, and use fill_parent for height of the list view. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.10.2010 13:46 пользователь Rocky rkjhaw1...@gmail.com написал: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent include layout=@layout/tabbar android:layout_height=fill_parent / LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_weight=1 android:layout_width=fill_parent /L... /LinearLayout include layout=@layout/inbox_page_edit_mode_footer_button android:layout_height=wrap_content / /LinearLayout while i'm showing the list item I've footer header, if i'm using either of fill_parent or wrap_content, my footer part is not showing, if i fixed the height=330, then footer part is showing. that the problem, I wountn't like to fix the height. On Fri, Oct 1, 2010 at 2:46 PM, Kumar Bibek coomar@gmail.com wrote: The parent of the Li... -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalo... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem in height of Listview
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content ListView android:id=@+id/ListView01 android:layout_height=fill_parent android:layout_weight=1 android:layout_width=fill_parent /ListView /RelativeLayout I make it RelativeLayout, and set the android:layout_alignParentBottom =true for the inbox_page_edit_mode_footer_button.xml file as LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:background=#808080 android:layout_alignParentBottom=true android:layout_width=fill_parent android:layout_height=wrap_content Button android:id=@+id/mark_unread_button style=@style/TextAppearance_ok_button android:text=Mark unread/ Button android:id=@+id/add_star_button style=@style/TextAppearance_ok_button android:text=Add star/ Button android:id=@+id/delete_button style=@style/TextAppearance_ok_button android:text=Delete/ /LinearLayout ---but still i'm facing the same issue:( 2010/10/1 Kostya Vasilyev kmans...@gmail.com Use a relative layout. Set layout_alignParentBottom for the footer view, and use fill_parent for height of the list view. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.10.2010 13:46 пользователь Rocky rkjhaw1...@gmail.com написал: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent include layout=@layout/tabbar android:layout_height=fill_parent / LinearLayout xmlns:android= http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content ListView android:id=@+id/ListView01 android:layout_height=330px android:layout_weight=1 android:layout_width=fill_parent /L... /LinearLayout include layout=@layout/inbox_page_edit_mode_footer_button android:layout_height=wrap_content / /LinearLayout while i'm showing the list item I've footer header, if i'm using either of fill_parent or wrap_content, my footer part is not showing, if i fixed the height=330, then footer part is showing. that the problem, I wountn't like to fix the height. On Fri, Oct 1, 2010 at 2:46 PM, Kumar Bibek coomar@gmail.com wrote: The parent of the Li... -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalo... -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en