【发布时间】:2016-11-21 06:29:43
【问题描述】:
如何获取之前设置的 textswitcher 中的文本。就像 textview.getText() 一样。我已经尝试了以下代码,但没有奏效。
TextSwitcher textSwitcher = (TextSwitcher)findViewById(...);
TextView currentlyShownTextView = (TextView) textSwitcher.getCurrentView();
String currentlyShownText = textSwitcher.getText().toString();
【问题讨论】:
标签: android textview textswitcher