也许使用充气机,然后将textview放在外部布局文件中:
View v = LayoutInflater.from(this).inflate(R.layout.textview_include, null);viewGroup.addView(v);

也许使用充气机,然后将textview放在外部布局文件中:
View v = LayoutInflater.from(this).inflate(R.layout.textview_include, null);viewGroup.addView(v);