TextView text = (TextView) vi.findViewById(R.id.text);
text.setText(text_value);
该字符串编辑android:text
值。 但是,如果我想编辑andoid:onClick
值,我该怎么办? 例如:编辑android:onClick值
// from:
android:onClick("action(1)");
// to:
android:onClick("action(2)");
非常感谢:)
PS:对不起任何错误,我是意大利:(
你不能做到这一点。添加一个监听器。 – Nfear