Dynamically adding and removing table rows - Android

前端 未结 2 922
醉梦人生
醉梦人生 2020-12-31 17:33

I am trying to dynamically add and remove rows from a TableLayout.

The layout is defined in an xml file.

I am able to successfully remove a row, but when I c

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 18:20

    public int indexOfChild (View child) 
    
    public View getChildAt (int index) 
    

    Both methods provided by TableLayout. ;-)

提交回复
热议问题