@Test public void testAddChild() throws Exception{ WXDiv div = WXDivTest.create(component); component.addChild(div); ComponentTest.create(div); }
@Override public void addChild(WXComponent child, int index) { mChildrenLayoutOffset += child.getLayoutTopOffsetForSibling(); if (child instanceof WXBaseRefresh) { if (!checkRefreshOrLoading(child)) { mRefreshs.add(child); } } super.addChild(child,index); }
WXScroller extends WXVContainer<ViewGroup> implements WXScrollViewListener,Scrollable { @Override public void addChild(WXComponent child, int index) { mChildrenLayoutOffset += child.getLayoutTopOffsetForSibling(); if (child instanceof WXBaseRefresh) { if (!checkRefreshOrLoading(child)) { mRefreshs.add(child); } } super.addChild(child,index); } }
WXScroller extends WXVContainer<ViewGroup> implements WXScrollViewListener,Scrollable { @Override public void addChild(WXComponent child, int index) { mChildrenLayoutOffset += child.getLayoutTopOffsetForSibling(); if (child instanceof WXBaseRefresh) { if (!checkRefreshOrLoading(child)) { mRefreshs.add(child); } } super.addChild(child,index); } @Deprecated  WXScroller(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXScroller(WXSDKInstance instance, WXDomObject node,
                    WXVContainer parent); }
WXScroller extends WXVContainer<ViewGroup> implements WXScrollViewListener,Scrollable { @Override public void addChild(WXComponent child, int index) { mChildrenLayoutOffset += child.getLayoutTopOffsetForSibling(); if (child instanceof WXBaseRefresh) { if (!checkRefreshOrLoading(child)) { mRefreshs.add(child); } } super.addChild(child,index); } @Deprecated  WXScroller(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXScroller(WXSDKInstance instance, WXDomObject node,
                    WXVContainer parent); @Override ViewGroup getRealView(); @Override void createViewImpl(); ViewGroup getInnerView(); @Override void addChild(WXComponent child, int index); @Override void remove(WXComponent child,boolean destory); @Override void destroy(); @Override int getScrollY(); @Override int getScrollX(); Map<String, HashMap<String, WXComponent>> getStickMap(); @WXComponentProp(name = Constants.Name.SHOW_SCROLLBAR) void setShowScrollbar(boolean show); @WXComponentProp(name = Constants.Name.SCROLLABLE) void setScrollable(boolean scrollable); @Override void bindStickStyle(WXComponent component); @Override void unbindStickStyle(WXComponent component); @Override void bindAppearEvent(WXComponent component); @Override void bindDisappearEvent(WXComponent component); @Override void unbindAppearEvent(WXComponent component); @Override void unbindDisappearEvent(WXComponent component); @Override void scrollTo(WXComponent component,int offset); void scrollBy(final int x, final int y); @Override void onScrollChanged(WXScrollView scrollView, int x, int y,
                              int oldx, int oldy); @Override void onScrollToBottom(WXScrollView scrollView, int x, int y); @Override void onScrollStopped(WXScrollView scrollView, int x, int y); @Override void onScroll(WXScrollView scrollView, int x, int y); @JSMethod void resetLoadmore(); }
WXScroller extends WXVContainer<ViewGroup> implements WXScrollViewListener,Scrollable { @Override public void addChild(WXComponent child, int index) { mChildrenLayoutOffset += child.getLayoutTopOffsetForSibling(); if (child instanceof WXBaseRefresh) { if (!checkRefreshOrLoading(child)) { mRefreshs.add(child); } } super.addChild(child,index); } @Deprecated  WXScroller(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXScroller(WXSDKInstance instance, WXDomObject node,
                    WXVContainer parent); @Override ViewGroup getRealView(); @Override void createViewImpl(); ViewGroup getInnerView(); @Override void addChild(WXComponent child, int index); @Override void remove(WXComponent child,boolean destory); @Override void destroy(); @Override int getScrollY(); @Override int getScrollX(); Map<String, HashMap<String, WXComponent>> getStickMap(); @WXComponentProp(name = Constants.Name.SHOW_SCROLLBAR) void setShowScrollbar(boolean show); @WXComponentProp(name = Constants.Name.SCROLLABLE) void setScrollable(boolean scrollable); @Override void bindStickStyle(WXComponent component); @Override void unbindStickStyle(WXComponent component); @Override void bindAppearEvent(WXComponent component); @Override void bindDisappearEvent(WXComponent component); @Override void unbindAppearEvent(WXComponent component); @Override void unbindDisappearEvent(WXComponent component); @Override void scrollTo(WXComponent component,int offset); void scrollBy(final int x, final int y); @Override void onScrollChanged(WXScrollView scrollView, int x, int y,
                              int oldx, int oldy); @Override void onScrollToBottom(WXScrollView scrollView, int x, int y); @Override void onScrollStopped(WXScrollView scrollView, int x, int y); @Override void onScroll(WXScrollView scrollView, int x, int y); @JSMethod void resetLoadmore(); static final String DIRECTION; }