Java源码示例:com.taobao.weex.ui.view.refresh.wrapper.BaseBounceView
示例1
@Override
public void remove(WXComponent child,boolean destory) {
super.remove(child,destory);
if(child instanceof WXLoading){
((BaseBounceView)getHostView()).removeFooterView(child);
}else if(child instanceof WXRefresh){
((BaseBounceView)getHostView()).removeHeaderView(child);
}
}
示例2
@WXComponentProp(name = Constants.Name.DISPLAY)
public void setDisplay(String display) {
if (!TextUtils.isEmpty(display)) {
if (display.equals(HIDE)) {
if (getParent() instanceof WXListComponent || getParent() instanceof WXScroller) {
if (((BaseBounceView)getParent().getHostView()).getSwipeLayout().isRefreshing()) {
((BaseBounceView) getParent().getHostView()).finishPullRefresh();
((BaseBounceView) getParent().getHostView()).onRefreshingComplete();
}
}
}
}
}
示例3
@WXComponentProp(name = Constants.Name.DISPLAY)
public void setDisplay(String display) {
if (!TextUtils.isEmpty(display)) {
if (display.equals(HIDE)) {
if (getParent() instanceof WXListComponent || getParent() instanceof WXScroller) {
if (((BaseBounceView)getParent().getHostView()).getSwipeLayout().isRefreshing()) {
((BaseBounceView) getParent().getHostView()).finishPullLoad();
((BaseBounceView) getParent().getHostView()).onLoadmoreComplete();
}
}
}
}
}
示例4
@Override
public void remove(WXComponent child,boolean destory) {
super.remove(child,destory);
if(child instanceof WXLoading){
((BaseBounceView)getHostView()).removeFooterView(child);
}else if(child instanceof WXRefresh){
((BaseBounceView)getHostView()).removeHeaderView(child);
}
}
示例5
@WXComponentProp(name = Constants.Name.DISPLAY)
public void setDisplay(String display) {
if (!TextUtils.isEmpty(display)) {
if (display.equals(HIDE)) {
if (getParent() instanceof WXListComponent || getParent() instanceof WXScroller) {
if (((BaseBounceView)getParent().getHostView()).getSwipeLayout().isRefreshing()) {
((BaseBounceView) getParent().getHostView()).finishPullRefresh();
((BaseBounceView) getParent().getHostView()).onRefreshingComplete();
}
}
}
}
}
示例6
@WXComponentProp(name = Constants.Name.DISPLAY)
public void setDisplay(String display) {
if (!TextUtils.isEmpty(display)) {
if (display.equals(HIDE)) {
if (getParent() instanceof WXListComponent || getParent() instanceof WXScroller) {
if (((BaseBounceView)getParent().getHostView()).getSwipeLayout().isRefreshing()) {
((BaseBounceView) getParent().getHostView()).finishPullLoad();
((BaseBounceView) getParent().getHostView()).onLoadmoreComplete();
}
}
}
}
}
示例7
@WXComponentProp(name = "display")
public void setDisplay(String display) {
if (!TextUtils.isEmpty(display)) {
if (display.equals("hide")) {
if (getParent() instanceof WXListComponent || getParent() instanceof WXScroller) {
if (((BaseBounceView)getParent().getView()).getSwipeLayout().isRefreshing()) {
((BaseBounceView) getParent().getView()).finishPullRefresh();
((BaseBounceView) getParent().getView()).onRefreshingComplete();
}
}
}
}
}
示例8
@WXComponentProp(name = "display")
public void setDisplay(String display) {
if (!TextUtils.isEmpty(display)) {
if (display.equals("hide")) {
if (getParent() instanceof WXListComponent || getParent() instanceof WXScroller) {
if (((BaseBounceView)getParent().getView()).getSwipeLayout().isRefreshing()) {
((BaseBounceView) getParent().getView()).finishPullLoad();
((BaseBounceView) getParent().getView()).onLoadmoreComplete();
}
}
}
}
}