0
我有一个TableLayout动态地添加了一个线性布局,其中包含一个按钮单击的文本视图。添加每个线性布局时。我需要更新最后添加的线性布局的文本视图。我怎样才能做到这一点?在表格布局中动态添加textview
TableLayout tableLayout= (TableLayout) findViewById(R.id.table_layout);
View subView = (LinearLayout) inflater.inflate(R.layout.layout_view, container, false);
tableLayout.addView(subView);
txtVal = (TextView)imageView.findViewById(R.id.txt_val);
我需要一个按钮被点击