public boolean waitForActivity(Class<? extends android.app.Activity> activityClass, int timeout)Waits for an Activity matching the specified class。Parameters:activityClass - the class of the Activity to wait for。 Example is: MyActivity。classtimeout - the amount of time in milliseconds to waitReturns:true if Activity appears before the timeout and false if it does notwaitForEmptyActivityStack
public boolean waitForEmptyActivityStack(int timeout)Wait for the activity stack to be empty。Parameters:timeout - the amount of time in milliseconds to waitReturns:true if activity stack is empty before the timeout and false if it is notwaitForFragmentByTag
public boolean waitForFragmentByTag(String tag)Waits for a Fragment matching the specified tag。
Default timeout is 20 seconds。Parameters:tag - the name of the tagReturns:true if fragment appears and false if it does not appear before the timeoutwaitForFragmentByTag
public boolean waitForFragmentByTag(String tag, int timeout)Waits for a Fragment matching the specified tag。Parameters:tag - the name of the tagtimeout - the amount of time in milliseconds to waitReturns:true if fragment appears and false if it does not appear before the timeoutwaitForFragmentById
public boolean waitForFragmentById(int id)Waits for a Fragment matching the specified resource id。 Default timeout is 20 seconds。
Parameters:id - the R。id of the fragmentReturns:true if fragment appears and false if it does not appear before the timeoutwaitForFragmentById
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-37.html
说别人幼稚的你真幼稚
OMG~~rocker
跟我有什么关系吗