从类访问TextView. [英] Access TextView from a class.
本文介绍了从类访问TextView.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
如何在主Activty中访问和设置TextView的文本?
问候.
Hello,
How can I access and set for example the text of a TextView in my main Activty?
Greetings.
推荐答案
将TextView设置为公共属性
set the TextView as a public property
public TextView textView { get; set; }
这篇关于从类访问TextView.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文