android - Two vertical Listviews having the same row height -
Two listviews (vertical parallel) I want to display in my layout is the same number of items, but the problem is that Their heights are not synchronized, so I want to make my heights equals ...
& Lt; Android: layout_weight = "0.85" Android: choiceMode = "singleChoice" Android: Divider = "@Android: Color = Dark_gray "android: dividerheit =" 0.2sp "Android: fastScrollEnabled =" true "/>
You can write code like this to create an equal list view:
& Lt; Android: layout_weight = "250dp" Android: layout_weight = "1" Android: background = "@ android: color / white" Android: choiceMode = "ListView" Android: id = "@ + id / content" Android: layout_width = "0dp" SingleChoice "Android: Divider =" @Android: Color / darker_gray "Android: dividerHeight =" 0.2sp "Android: fastScrollEnabled =" true "/>
Comments
Post a Comment