当前位置: 首页>>代码示例>>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;未经允许,请勿转载。