我该如何动态地添加一个TextView到这个?注释掉的代码不起作用。所有的动态添加一个TextView - Android
public class myTextSwitcher extends Activity {
private TextView myText;
public myTextSwitcher(String string){
//myText = new TextView(this);
//myText.setText("My Text");
}
}
是否需要为textview对象mytext提供'LinearLayout.LayoutParams'? –