WANTED: TableLayout-Like ListView

后端 未结 4 1226
挽巷
挽巷 2020-12-19 03:21

My question might be, \"How does one create a single-line horizontal LinearLayout with two single-line non-wrapping TextViews, where the left TextView always occupies 1/3 of

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 03:36

    The best I can come up with is to have a row.xml that looks something like this. It's not ideal, but it will keep the rows with a fixed width, which will scale on a change of dimensions, but not based off of the text. It'll give you 80% of a Table Layout, with the benefits of a ListView.

    
    
     
     
     
     
    
    
    

提交回复
热议问题