[android-developers] Re: Notepad Sample - adding more columns to listview
Thank you so much. I am considering breaking the table up into multiple views as one see in some other apps. It just seems strange that there is no way to do this in android, however I've seen it in other apps, Iriduim Flares for example, which shows many numerals in columns and it's easy to read accross, perfect for what I needed. Thanks again for responding. On Jan 26, 11:06 am, Kostya Vasilyev kmans...@gmail.com wrote: Every ListView item layout is separate from those next to it - therefore, it positions and sizes its children without any regard for other list items. Two things you can try are: - Do not try to make a table, and use multi-line layouts instead, the screen is typically not wide enough to fit a proper table anyway. - For a table-like layout, position the views within your item layout so that they always have the same size, regardless of the data they contain. This can be done by using a LinearLayout, with the children having zero layout_width and non-zero layout_weight values. -- Kostya 26.01.2011 11:24, Hein пишет: I've done the notepad tutorial on Google's Android site, but I would like to know how to add more fields to the list, in columns. At the moment I can add the columns no problem, but they're not aligned like you would a normal table on the layout: john smith heinrich cilliers will peck I would like it aligned as in a html table. Any pointers? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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: Notepad Sample - adding more columns to listview
The popup in Iridium Flares looks like a TableLayout: http://developer.android.com/reference/android/widget/TableLayout.html TableLayout doesn't recycle views like ListView, and so isn't really suited for long scrollable lists, but it's just fine for presenting compact data (also useful for lining up controls within a layout). -- Kostya 26.01.2011 14:42, Hein пишет: Thank you so much. I am considering breaking the table up into multiple views as one see in some other apps. It just seems strange that there is no way to do this in android, however I've seen it in other apps, Iriduim Flares for example, which shows many numerals in columns and it's easy to read accross, perfect for what I needed. Thanks again for responding. On Jan 26, 11:06 am, Kostya Vasilyevkmans...@gmail.com wrote: Every ListView item layout is separate from those next to it - therefore, it positions and sizes its children without any regard for other list items. Two things you can try are: - Do not try to make a table, and use multi-line layouts instead, the screen is typically not wide enough to fit a proper table anyway. - For a table-like layout, position the views within your item layout so that they always have the same size, regardless of the data they contain. This can be done by using a LinearLayout, with the children having zero layout_width and non-zero layout_weight values. -- Kostya 26.01.2011 11:24, Hein пишет: I've done the notepad tutorial on Google's Android site, but I would like to know how to add more fields to the list, in columns. At the moment I can add the columns no problem, but they're not aligned like you would a normal table on the layout: john smith heinrich cilliers will peck I would like it aligned as in a html table. Any pointers? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: Notepad Sample - adding more columns to listview
please don't send message me -- 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
[android-developers] Re: Notepad Sample - adding more columns to listview
I thought one could not do a row click on a table, so I assumed otherwise. Pity. Thanks again. On Jan 26, 1:50 pm, Kostya Vasilyev kmans...@gmail.com wrote: The popup in Iridium Flares looks like a TableLayout: http://developer.android.com/reference/android/widget/TableLayout.html TableLayout doesn't recycle views like ListView, and so isn't really suited for long scrollable lists, but it's just fine for presenting compact data (also useful for lining up controls within a layout). -- 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