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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -