tag:blogger.com,1999:blog-7565989862281145057.post3378309641331030606..comments2024-01-25T15:57:17.280-08:00Comments on AndroidBlogger: Multi columns in listViewAndroidBloggerhttp://www.blogger.com/profile/03281698485999677325noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7565989862281145057.post-31123155820680894662009-11-03T05:09:36.020-08:002009-11-03T05:09:36.020-08:00Hi Malachi, and thanks for this tip...
Actually, ...Hi Malachi, and thanks for this tip...<br /><br />Actually, in this article, I finished with an implementation for 3 columns !<br />I did it with a different version from yours : I have one column on the left, one on the middle, and one on the right.<br /><br />The difference is that you can have some content bigger than one third of the screen width :<br />In my test, I had a name on the left, just a one digit number on the middle ( the level reached) , and a score on the right. <br />As there is only one digit in the middle column, it is a very small column, and you can have a name bigger than 1/3 of the screen in the left column !<br />I found it useful, as it was more suited to my problem, but it may not be always the case, so it's nice you made this comment : the reader can now choose the solution best suited for his problem !<br /><br />And you can also point out that your solution allow to adapt to any number of column, as I am stuck with 3 !<br /><br />Thanks again !AndroidBloggerhttps://www.blogger.com/profile/03281698485999677325noreply@blogger.comtag:blogger.com,1999:blog-7565989862281145057.post-75229511517048039232009-11-02T17:45:28.971-08:002009-11-02T17:45:28.971-08:00Hi. I found this post while trying to design my fi...Hi. I found this post while trying to design my first android app. At first I needed two columns, so this was perfect, but then the user demanded a third and I switched to a fixed width layout that I found described elsewhere... how unsatisfying. <br /><br />However, a few days later I found <a href="http://developer.android.com/guide/topics/ui/layout-objects.html" rel="nofollow">a tip in the android documentation</a>:<br /><br /><i>Tip: To create a proportionate size layout on the screen, create a container view group object with the layout_width and layout_height attributes set to fill_parent; assign the children height or width to 0 (zero); then assign relative weight values to each child, depending on what proportion of the screen each should have.</i><br /><br />That seemed to do the trick for me. I just thought your readers might find it handy if they stumbled across your site looking for a solution like I did.<br /><br />thanks,<br />malachiUnknownhttps://www.blogger.com/profile/09995599051625913834noreply@blogger.com