use of com.taobao.weex.ui.component.WXComponentProp in project weex-example by KalicyZhou.
the class RichText method setTelLink.
@WXComponentProp(name = "tel")
public void setTelLink(String tel) {
SpannableString spannable = new SpannableString(tel);
spannable.setSpan(new URLSpan("tel:" + tel), 0, tel.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
((TextView) getHostView()).setText(spannable);
}
use of com.taobao.weex.ui.component.WXComponentProp in project weex-example by KalicyZhou.
the class BasicListComponent method setScrollable.
@WXComponentProp(name = Constants.Name.SCROLLABLE)
public void setScrollable(boolean scrollable) {
this.isScrollable = scrollable;
WXRecyclerView inner = getHostView().getInnerView();
if (inner != null) {
inner.setScrollable(scrollable);
}
}
use of com.taobao.weex.ui.component.WXComponentProp in project incubator-weex by apache.
the class WXRecyclerTemplateList method setColumnWidth.
@WXComponentProp(name = Constants.Name.COLUMN_WIDTH)
public void setColumnWidth(int columnCount) {
if (mDomObject.getColumnWidth() != mColumnWidth) {
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 WXRecyclerTemplateList method setColumnCount.
@WXComponentProp(name = Constants.Name.COLUMN_COUNT)
public void setColumnCount(int columnCount) {
if (mDomObject.getColumnCount() != mColumnCount) {
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 WXRecyclerTemplateList method setScrollDirection.
@WXComponentProp(name = Constants.Name.SCROLL_DIRECTION)
public void setScrollDirection(String direction) {
if (orientation != mDomObject.getOrientation()) {
orientation = mDomObject.getOrientation();
updateRecyclerAttr();
WXRecyclerView wxRecyclerView = getHostView().getInnerView();
wxRecyclerView.initView(getContext(), mLayoutType, mColumnCount, mColumnGap, getOrientation());
}
}
Aggregations