h&v scroll view enhancement

This commit is contained in:
王劲鹏 2020-01-14 19:06:08 +08:00 committed by osborn
parent 455d7c5402
commit 713947e721
2 changed files with 1570 additions and 5 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.HVScrollView; import pub.doric.widget.HVScrollView2;
/** /**
* @Description: pub.doric.shader * @Description: pub.doric.shader
@ -29,7 +29,7 @@ import pub.doric.widget.HVScrollView;
* @CreateDate: 2019-11-18 * @CreateDate: 2019-11-18
*/ */
@DoricPlugin(name = "Scroller") @DoricPlugin(name = "Scroller")
public class ScrollerNode extends SuperNode<HVScrollView> { public class ScrollerNode extends SuperNode<HVScrollView2> {
private String mChildViewId; private String mChildViewId;
private ViewNode mChildNode; private ViewNode mChildNode;
@ -50,12 +50,12 @@ public class ScrollerNode extends SuperNode<HVScrollView> {
} }
@Override @Override
protected HVScrollView build() { protected HVScrollView2 build() {
return new HVScrollView(getContext()); return new HVScrollView2(getContext());
} }
@Override @Override
protected void blend(HVScrollView view, String name, JSValue prop) { protected void blend(HVScrollView2 view, String name, JSValue prop) {
if ("content".equals(name)) { if ("content".equals(name)) {
mChildViewId = prop.asString().value(); mChildViewId = prop.asString().value();
} else { } else {

File diff suppressed because it is too large Load Diff