本文整理汇总了Java中com.taobao.weex.ui.view.WXFrameLayout类的典型用法代码示例。如果您正苦于以下问题:Java WXFrameLayout类的具体用法?Java WXFrameLayout怎么用?Java WXFrameLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WXFrameLayout类属于com.taobao.weex.ui.view包,在下文中一共展示了WXFrameLayout类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onHostViewInitialized
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected void onHostViewInitialized(WXFrameLayout host) {
super.onHostViewInitialized(host);
addClickListener(new OnClickListener() {
@Override
public void onHostViewClick() {
if ( getDomObject().getAttrs().get("href") != null) {
JSONArray array = new JSONArray();
array.add(getDomObject().getAttrs().get("href"));
WXSDKManager.getInstance().getWXBridgeManager().callModuleMethod(getInstanceId(), "event", "openURL", array);
} else {
WXLogUtils.d("WXA", "Property href is empty.");
}
}
});
}
示例2: onHostViewInitialized
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected void onHostViewInitialized(WXFrameLayout host) {
super.onHostViewInitialized(host);
addClickListener(new OnClickListener() {
@Override
public void onHostViewClick() {
String href;
ImmutableDomObject domObject = getDomObject();
if (domObject != null) {
WXAttr attr = domObject.getAttrs();
if (attr !=null && (href = (String)attr.get("href")) != null) {
ATagUtil.onClick(null, getInstanceId(), href);
}
} else {
WXLogUtils.d("WXA", "Property href is empty.");
}
}
});
}
示例3: setHostLayoutParams
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected void setHostLayoutParams(WXFrameLayout host, int width, int height, int left, int right, int top, int bottom) {
if (getParent() instanceof Scrollable) {
//do nothing
return;
}else{
super.setHostLayoutParams(host, width, height, left, right, top, bottom);
}
}
示例4: onHostViewInitialized
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected void onHostViewInitialized(WXFrameLayout host) {
super.onHostViewInitialized(host);
addClickListener(new OnClickListener() {
@Override
public void onHostViewClick() {
String href;
if ( (href = (String)getDomObject().getAttrs().get("href")) != null) {
ATagUtil.onClick(null, getInstanceId(), href);
} else {
WXLogUtils.d("WXA", "Property href is empty.");
}
}
});
}
示例5: initComponentHostView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected FrameLayout initComponentHostView(@NonNull Context context) {
WXFrameLayout wxFrameLayout = new WXFrameLayout(context);
wxFrameLayout.setWillNotDraw(false);
return wxFrameLayout;
}
示例6: initComponentHostView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected WXFrameLayout initComponentHostView(@NonNull Context context) {
return new WXBaseRefreshLayout(context);
}
示例7: initComponentHostView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected WXFrameLayout initComponentHostView(@NonNull Context context) {
return new WXFrameLayout(context);
}
示例8: initComponentHostView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected WXFrameLayout initComponentHostView(@NonNull Context context) {
return new WXRefreshLayout(context);
}
示例9: initComponentHostView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected WXFrameLayout initComponentHostView(@NonNull Context context) {
WXFrameLayout frameLayout =new WXFrameLayout(context);
frameLayout.holdComponent(this);
return frameLayout;
}
示例10: initComponentHostView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected WXFrameLayout initComponentHostView(@NonNull Context context) {
return new WXLoadingLayout(context);
}
示例11: initView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
protected void initView() {
if(mContext!=null) {
mHost = new WXFrameLayout(mContext);
}
}
示例12: getView
import com.taobao.weex.ui.view.WXFrameLayout; //导入依赖的package包/类
@Override
public WXFrameLayout getView() {
return (WXFrameLayout) super.getView();
}