public boolean isToggleButtonChecked(int index)Checks if a ToggleButton matching the specified index is checked。
Parameters:index - of the ToggleButton to check。 0 if only one is availableReturns:true if ToggleButton is checked and false if it is not checkedisCheckBoxChecked
public boolean isCheckBoxChecked(String text)Checks if a CheckBox displaying the specified text is checked。Parameters:text - the text that the CheckBox displays, specified as a regular expressionReturns:true if a CheckBox displaying the specified text is checked and false if it is not checkedisTextChecked
public boolean isTextChecked(String text)Checks if the specified text is checked。Parameters:text - the text that the CheckedTextView or CompoundButton objects display, specified as a regular expressionReturns:true if the specified text is checked and false if it is not checkedisSpinnerTextSelected
public boolean isSpinnerTextSelected(String text)Checks if the specified text is selected in any Spinner located in the current screen。
Parameters:text - the text that is expected to be selected, specified as a regular expressionReturns:true if the specified text is selected in any Spinner and false if it is notisSpinnerTextSelected
public boolean isSpinnerTextSelected(int index, String text)Checks if the specified text is selected in a Spinner matching the specified index。Parameters:index - the index of the spinner to check。 0 if only one spinner is availabletext - the text that is expected to be selected, specified as a regular expressionReturns:true if the specified text is selected in the specified Spinner and false if it is nothideSoftKeyboard
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-35.html
豆子都是找大口塑料瓶子装着
美舰吓破胆跑了
中国小心了