本文整理汇总了Java中com.taobao.weex.ui.view.WXTextView类的典型用法代码示例。如果您正苦于以下问题:Java WXTextView类的具体用法?Java WXTextView怎么用?Java WXTextView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WXTextView类属于com.taobao.weex.ui.view包,在下文中一共展示了WXTextView类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTestCaseListViewByText
import com.taobao.weex.ui.view.WXTextView; //导入依赖的package包/类
/**
* get tc list by text
* @param byText
* @return
* @throws InterruptedException
*/
public ArrayList<View> getTestCaseListViewByText(String byText) throws InterruptedException {
Log.e("TestScript_Guide", "byText ==" + byText);
if(TextUtils.isEmpty(byText)){
return null;
}
ArrayList<View> outViews = new ArrayList<View>();
mViewGroup.findViewsWithText(outViews, byText, View.FIND_VIEWS_WITH_TEXT);
for (View view : outViews){
String viewText = ((WXTextView)view).getText().toString();
Log.e(TAG, "viewText ==" + viewText);
}
return outViews;
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:24,代码来源:WeexUiTestCaseTcDowngradeDevMTrue.java
示例2: getTestCaseListViewByText
import com.taobao.weex.ui.view.WXTextView; //导入依赖的package包/类
/**
* get tc list by text
* @param byText
* @return
* @throws InterruptedException
*/
public ArrayList<View> getTestCaseListViewByText(String byText) throws InterruptedException {
Log.e("TestScript_Guide", "byText ==" + byText);
if(TextUtils.isEmpty(byText)){
return null;
}
ArrayList<View> outViews = new ArrayList<View>();
mViewGroup.findViewsWithText(outViews, byText, View.FIND_VIEWS_WITH_TEXT);
for (View view : outViews){
String viewText = ((WXTextView)view).getText().toString();
Log.e(TAG, "viewText ==" + viewText);
}
return outViews;
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:25,代码来源:WeexUiTestCaseTcTextStyleOwn.java
示例3: getTestCaseListViewByText
import com.taobao.weex.ui.view.WXTextView; //导入依赖的package包/类
/**
* get tc list by text
* @param byText
* @return
* @throws InterruptedException
*/
public ArrayList<View> getTestCaseListViewByText(String byText) throws InterruptedException {
Log.e("TestScript_Guide", "byText ==" + byText);
if(TextUtils.isEmpty(byText)){
return null;
}
ArrayList<View> outViews = new ArrayList<View>();
mViewGroup.findViewsWithText(outViews, byText, View.FIND_VIEWS_WITH_TEXT);
sleep(2000);
for (View view : outViews){
String viewText = ((WXTextView)view).getText().toString();
Log.e(TAG, "viewText ==" + viewText);
}
return outViews;
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:26,代码来源:WeexUiTestCaseTcColorType.java
示例4: getTestCaseListViewByText
import com.taobao.weex.ui.view.WXTextView; //导入依赖的package包/类
/**
* get tc list by text
* @param byText
* @return
* @throws InterruptedException
*/
public ArrayList<View> getTestCaseListViewByText(String byText) throws InterruptedException {
Log.e("TestScript_Guide", "byText ==" + byText);
if(TextUtils.isEmpty(byText)){
return null;
}
ArrayList<View> outViews = new ArrayList<View>();
mViewGroup.findViewsWithText(outViews, byText, View.FIND_VIEWS_WITH_TEXT);
for (View view : outViews){
String viewText = ((WXTextView)view).getText().toString();
Log.e(TAG, "viewText ==" + viewText);
}
return outViews;
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:23,代码来源:WeexUiTestCaseTcElementOpt.java
示例5: findViewWithText
import com.taobao.weex.ui.view.WXTextView; //导入依赖的package包/类
public static ArrayList<View> findViewWithText(ViewGroup vg, String text){
ArrayList<View> out = new ArrayList<View>();
if(null != vg){
vg.findViewsWithText(out, text, View.FIND_VIEWS_WITH_TEXT);
}
if(out.size() == 0){
ArrayList<View> wxTextViewList = new ArrayList<View>();
wxTextViewList = getAllChildViews((View)vg);
for (View wxText:wxTextViewList) {
if(wxText instanceof WXTextView){
String value = ((WXTextView) wxText).getText().toString();
if(value.contains(text)){
Log.e("TestFlow", "find target:" + text + "|" + "actualVale=" + value);
out.add(wxText);
}
}
}
}
return out;
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:23,代码来源:ViewUtil.java
注:本文中的com.taobao.weex.ui.view.WXTextView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论