use of com.taobao.luaview.view.interfaces.ILVViewGroup in project LuaViewSDK by alibaba.
the class UDViewGroup method addView.
/**
* add a subview
*
* @param subView
* @return
*/
public UDViewGroup addView(UDView subView) {
final ViewGroup viewGroup = getContainer();
if (viewGroup != null && subView != null && subView.getView() != null) {
final View view = subView.getView();
LuaViewUtil.addView(viewGroup, view, null);
// if (viewGroup instanceof ILVViewGroup) {
// LuaViewUtil.addView(viewGroup, view, null);
// } else {
// final ViewGroup.LayoutParams layoutParams = LuaViewUtil.getOrCreateLayoutParams(view);
// viewGroup.addView(view, layoutParams);
// }
}
return this;
}
Aggregations