use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class WXListComponent method setRightGap.
@WXComponentProp(name = Constants.Name.RIGHT_GAP)
public void setRightGap(float rightGap) {
if (mRecyclerDom != null && mRecyclerDom.getRightGap() != mRightGap) {
markComponentUsable();
mRecyclerDom.preCalculateCellWidth();
updateRecyclerAttr();
WXRecyclerView wxRecyclerView = getHostView().getInnerView();
wxRecyclerView.initView(getContext(), mLayoutType, mColumnCount, mColumnGap, getOrientation());
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class WXListComponent method setColumnCount.
@WXComponentProp(name = Constants.Name.COLUMN_COUNT)
public void setColumnCount(int columnCount) {
if (mRecyclerDom != null && mRecyclerDom.getColumnCount() != mColumnCount) {
markComponentUsable();
updateRecyclerAttr();
WXRecyclerView wxRecyclerView = getHostView().getInnerView();
wxRecyclerView.initView(getContext(), mLayoutType, mColumnCount, mColumnGap, getOrientation());
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class WXListComponent method setLeftGap.
@WXComponentProp(name = Constants.Name.LEFT_GAP)
public void setLeftGap(float leftGap) {
if (mRecyclerDom != null && mRecyclerDom.getLeftGap() != mLeftGap) {
markComponentUsable();
mRecyclerDom.preCalculateCellWidth();
updateRecyclerAttr();
WXRecyclerView wxRecyclerView = getHostView().getInnerView();
wxRecyclerView.initView(getContext(), mLayoutType, mColumnCount, mColumnGap, getOrientation());
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project WeexErosFramework by bmfe.
the class HookWxScroller method setLoad.
// iCoastline 下拉加载更多
@WXComponentProp(name = HookConstants.NAME.SHOW_LOADMORE)
public void setLoad(String showLoadMore) {
boolean customerLoad = WXUtils.getBoolean(showLoadMore, false);
if (customerLoad && mLoadMore == null) {
mLoadMore = new LoadingLoadMore(getContext(), this);
((HookBounceScrollerView) this.getHostView()).setOnLoadingListener(mLoadMore);
Runnable runnable = WXThread.secure(new Runnable() {
public void run() {
((HookBounceScrollerView) getHostView()).setCustomFootView(mLoadMore);
}
});
this.handler.postDelayed(runnable, 100L);
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project WeexErosFramework by bmfe.
the class HookWxScroller method setPagingEnable.
@WXComponentProp(name = HookConstants.NAME.PAGINGENABLED)
public void setPagingEnable(boolean pagingEnable) {
this.mPagingEnable = pagingEnable;
ViewGroup innerView = getInnerView();
if (innerView instanceof WXHorizontalScrollView) {
((HookWXHorizontalScrollView) innerView).setPageEnable(this.mPagingEnable);
}
}
Aggregations