Create TableLayout programmatically

后端 未结 5 1381
小蘑菇
小蘑菇 2020-12-02 17:30

I\'m trying to create a TableLayout programatically. It just won\'t work. The same layout in an xml file works though. This is what I have:

public class MyTa         


        
5条回答
  •  不思量自难忘°
    2020-12-02 18:11

    A good solution is to inflate layout files for each instance of row you want to create. See this post : How to duplicate Views to populate lists and tables?

提交回复
热议问题