
TextSwitcher textSwitcher = (TextSwitcher)findVIEwByID(...);TextVIEw currentlyShownTextVIEw = (TextVIEw) textSwitcher.getCurrentVIEw();String currentlyShownText = textSwitcher.getText().toString();解决方法 请参阅 this回答
TextSwitcher twTime = (TextSwitcher) findVIEwByID(R.ID.textSwotcher);twTime.setCurrentText("your text");TextVIEw tv = (TextVIEw) twTime.getCurrentVIEw();if (tv.getText().toString().length()>0) { //your action here} 总结 以上是内存溢出为你收集整理的android – 从TextSwitcher获取文本全部内容,希望文章能够帮你解决android – 从TextSwitcher获取文本所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)