2
如何獲取之前設置的textswitcher中的文本。就像textview.getText()一樣。我試過下面的代碼,但沒有工作。從TextSwitcher獲取文本
TextSwitcher textSwitcher = (TextSwitcher)findViewById(...);
TextView currentlyShownTextView = (TextView) textSwitcher.getCurrentView();
String currentlyShownText = textSwitcher.getText().toString();