h&v scroll view enhancement
This commit is contained in:
parent
455d7c5402
commit
713947e721
@ -21,7 +21,7 @@ import com.github.pengfeizhou.jscore.JSValue;
|
||||
|
||||
import pub.doric.DoricContext;
|
||||
import pub.doric.extension.bridge.DoricPlugin;
|
||||
import pub.doric.widget.HVScrollView;
|
||||
import pub.doric.widget.HVScrollView2;
|
||||
|
||||
/**
|
||||
* @Description: pub.doric.shader
|
||||
@ -29,7 +29,7 @@ import pub.doric.widget.HVScrollView;
|
||||
* @CreateDate: 2019-11-18
|
||||
*/
|
||||
@DoricPlugin(name = "Scroller")
|
||||
public class ScrollerNode extends SuperNode<HVScrollView> {
|
||||
public class ScrollerNode extends SuperNode<HVScrollView2> {
|
||||
private String mChildViewId;
|
||||
private ViewNode mChildNode;
|
||||
|
||||
@ -50,12 +50,12 @@ public class ScrollerNode extends SuperNode<HVScrollView> {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected HVScrollView build() {
|
||||
return new HVScrollView(getContext());
|
||||
protected HVScrollView2 build() {
|
||||
return new HVScrollView2(getContext());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void blend(HVScrollView view, String name, JSValue prop) {
|
||||
protected void blend(HVScrollView2 view, String name, JSValue prop) {
|
||||
if ("content".equals(name)) {
|
||||
mChildViewId = prop.asString().value();
|
||||
} else {
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user