remove old h&v scrollview

This commit is contained in:
王劲鹏 2020-01-14 19:11:37 +08:00 committed by osborn
parent 713947e721
commit 6664d8d988
3 changed files with 623 additions and 2882 deletions

View File

@ -21,7 +21,7 @@ import com.github.pengfeizhou.jscore.JSValue;
import pub.doric.DoricContext; import pub.doric.DoricContext;
import pub.doric.extension.bridge.DoricPlugin; import pub.doric.extension.bridge.DoricPlugin;
import pub.doric.widget.HVScrollView2; import pub.doric.widget.HVScrollView;
/** /**
* @Description: pub.doric.shader * @Description: pub.doric.shader
@ -29,7 +29,7 @@ import pub.doric.widget.HVScrollView2;
* @CreateDate: 2019-11-18 * @CreateDate: 2019-11-18
*/ */
@DoricPlugin(name = "Scroller") @DoricPlugin(name = "Scroller")
public class ScrollerNode extends SuperNode<HVScrollView2> { public class ScrollerNode extends SuperNode<HVScrollView> {
private String mChildViewId; private String mChildViewId;
private ViewNode mChildNode; private ViewNode mChildNode;
@ -50,12 +50,12 @@ public class ScrollerNode extends SuperNode<HVScrollView2> {
} }
@Override @Override
protected HVScrollView2 build() { protected HVScrollView build() {
return new HVScrollView2(getContext()); return new HVScrollView(getContext());
} }
@Override @Override
protected void blend(HVScrollView2 view, String name, JSValue prop) { protected void blend(HVScrollView view, String name, JSValue prop) {
if ("content".equals(name)) { if ("content".equals(name)) {
mChildViewId = prop.asString().value(); mChildViewId = prop.asString().value();
} else { } else {