📜  android java 更改文本值 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:28.707000             🧑  作者: Mango

代码示例1
A text:
TextView myText= (TextView) findViewById(R.id.textview);
       myText.setText("Example of Text");
An image:
ImageView image = (ImageView)  findViewById(R.id.imageid);
       image.setImageResource(R.drawable.imageid2);