當前位置: 首頁>>代碼示例>>Java>>正文


Java TouchUtils.dragQuarterScreenUp方法代碼示例

本文整理匯總了Java中android.test.TouchUtils.dragQuarterScreenUp方法的典型用法代碼示例。如果您正苦於以下問題:Java TouchUtils.dragQuarterScreenUp方法的具體用法?Java TouchUtils.dragQuarterScreenUp怎麽用?Java TouchUtils.dragQuarterScreenUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.test.TouchUtils的用法示例。


在下文中一共展示了TouchUtils.dragQuarterScreenUp方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setUpToFindComponet

import android.test.TouchUtils; //導入方法依賴的package包/類
/**
 *
 */
public void setUpToFindComponet(String target, InstrumentationTestCase test){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
            count ++;
        }
        else{
            targetComponetNotFound = true;
        }

    }
}
 
開發者ID:amap-demo,項目名稱:weex-3d-map,代碼行數:21,代碼來源:WeexUiTestCaseTCAHrefUpdate.java

示例2: setUpToFindComponet

import android.test.TouchUtils; //導入方法依賴的package包/類
/**
 *
 */
public void setUpToFindComponet(String target, InstrumentationTestCase test){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
            count ++;
        }
        else{
            break;
        }

    }
}
 
開發者ID:amap-demo,項目名稱:weex-3d-map,代碼行數:21,代碼來源:WeexUiTestCaseTCAHrefEvent.java

示例3: findTargetComponetIfNotFound

import android.test.TouchUtils; //導入方法依賴的package包/類
/**
 *
 */
public void findTargetComponetIfNotFound(String target, InstrumentationTestCase test){
    
    if(mCaseListIndexView.size() ==1 || targetComponetNotFound){
        if(((WXTextView)mCaseListIndexView.get(0))
                .getText()
                .toString()
                .equals("TC__Home")){

            TouchUtils.dragQuarterScreenUp(test,WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        }

        TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
        mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
    }
}
 
開發者ID:HJ-StevenSun,項目名稱:Weex-TestDemo,代碼行數:22,代碼來源:WeexUiTestCaseTCAHrefStyle.java

示例4: setUpToFindComponet

import android.test.TouchUtils; //導入方法依賴的package包/類
/**
 *
 */
public void setUpToFindComponet(String targert){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(this, this.getActivity());
            mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, targert);
            count ++;
        }
        else{
            break;
        }

    }
}
 
開發者ID:amap-demo,項目名稱:weex-3d-map,代碼行數:21,代碼來源:TestFlow.java

示例5: findTargetComponetIfNotFound

import android.test.TouchUtils; //導入方法依賴的package包/類
/**
 *
 */
public void findTargetComponetIfNotFound(String target, InstrumentationTestCase test){
    if(mCaseListIndexView.size() ==1 || targetComponetNotFound){
        if(((WXTextView)mCaseListIndexView.get(0))
                .getText()
                .toString()
                .equals("TC__Home")){

            TouchUtils.dragQuarterScreenUp(test,WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        }

        TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
        mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
    }
}
 
開發者ID:HJ-StevenSun,項目名稱:Weex-TestDemo,代碼行數:21,代碼來源:WeexUiTestCaseTCAHrefEvent.java

示例6: addAllTargetView

import android.test.TouchUtils; //導入方法依賴的package包/類
public void addAllTargetView(String target){
    int max = 6;
    int count =0 ;
    while (count < max){
        TouchUtils.dragQuarterScreenUp(this, this.getActivity());
        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        mCaseListIndexView.addAll(mCaseListIndexView);
        count ++;
    }
}
 
開發者ID:amap-demo,項目名稱:weex-3d-map,代碼行數:12,代碼來源:WeexUiTestCaseTcDowngradeDevMTrue.java

示例7: dragQuarterScreenUp

import android.test.TouchUtils; //導入方法依賴的package包/類
public static void dragQuarterScreenUp(InstrumentationTestCase test, Activity activity) {

        TouchUtils.dragQuarterScreenUp(test, activity);
    }
 
開發者ID:amap-demo,項目名稱:weex-3d-map,代碼行數:5,代碼來源:ViewUtil.java


注:本文中的android.test.TouchUtils.dragQuarterScreenUp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。