Define list view with static elements on android in xml?

后端 未结 4 1938
傲寒
傲寒 2021-02-05 00:54

I want to create fragment which would display static menu as a set of rows in a list.

I like iOS method with static cells in a tableview. How can I achieve this in andro

4条回答
  •  情话喂你
    2021-02-05 01:19

    Some progress can be made using a string-array, e.g.,

    
    
      
    
    

    couple with

    
    
      
        Shuttle Badminton
        Tennis
        FootBall
      
    
    

    source: http://theopentutorials.com/tutorials/android/listview/android-creating-and-populating-listview-items-in-xml/

提交回复
热议问题