Problem with custom row in List View
-
I have problem with layout in my application. I'm using list view and I have defined a custom list row. The program is correctly executed, but layout has some problem. The space between two consecutive row is excessive... This is XML code that I use in application layout (main) "activityMain.xml"
and this is the custm row in XML resource ("list_row.xml")
-
I have problem with layout in my application. I'm using list view and I have defined a custom list row. The program is correctly executed, but layout has some problem. The space between two consecutive row is excessive... This is XML code that I use in application layout (main) "activityMain.xml"
and this is the custm row in XML resource ("list_row.xml")
Andy_Bell wrote:
android:layout_height="90dip"
Have you considered values other than
90
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Andy_Bell wrote:
android:layout_height="90dip"
Have you considered values other than
90
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Yes of course. Reducing this value I can restrict row (defined in "list_row.xml") but the problem remain: space between 2 line remains the same. I think it's like the problem is in ListView and not in the custom row.....
A picture would help. You have a bunch of extra stuff on each of those widgets, both files. I would suggest trimming away everything that is not 100% necessary and then build them back up until the problem reappears.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles