<resources>
|
|
<!-- require boolean value to decide whether requestFocus for view. -->
|
<attr name="requestFocus" format="boolean" />
|
<!-- require ItemView {@link me.tatarka.bindingcollectionadapter.ItemView} or ItemViewSelector {{@link me.tatarka.bindingcollectionadapter.ItemViewSelector}.} -->
|
<attr name="itemView" format="reference" />
|
<!-- require List<ViewModel> bind to ItemView to presentation.-->
|
<attr name="items" format="reference" />
|
<!-- require a adapter which type of BindingRecyclerViewAdapter<T> to AdapterView-->
|
<attr name="adapter" format="reference" />
|
|
<attr name="onScrollChangeCommand" format="reference" />
|
<attr name="onScrollStateChangedCommand" format="reference" />
|
<attr name="onTouchCommand" format="reference" />
|
|
<!-- require BindingCommand {@link com.kelin.mvvmlight.command.BindingCommand } to deal with view click event. -->
|
<attr name="onClickCommand" format="reference" />
|
<attr name="onLongClickCommand" format="reference" />
|
<!-- require BindingCommand<Boolean> {@link com.kelin.mvvmlight.command.BindingCommand } to deal with view focus change event.
|
BindingCommand would has params which means if view hasFocus.-->
|
<attr name="onFocusChangeCommand" format="reference" />
|
<attr name="isThrottleFirst" format="boolean" />
|
<attr name="currentView" format="reference" />
|
<attr name="isVisible" format="boolean" />
|
<attr name="commandType" format="integer" />
|
<!-- require boolean value to decide whether requestFocus for view. -->
|
<declare-styleable name="View">
|
<!-- require BindingCommand {@link com.kelin.mvvmlight.command.BindingCommand } to deal with view click event. -->
|
<attr name="onClickCommand" />
|
<attr name="onLongClickCommand" />
|
<!-- require BindingCommand<Boolean> {@link com.kelin.mvvmlight.command.BindingCommand } to deal with view focus change event.
|
BindingCommand would has params which means if view hasFocus.-->
|
<attr name="onFocusChangeCommand" />
|
<!-- require BindingCommand<MotionEvent> -->
|
<attr name="onTouchCommand" />
|
<attr name="isThrottleFirst" />
|
<attr name="currentView" />
|
<attr name="commandType"/>
|
</declare-styleable>
|
|
|
<declare-styleable name="AdapterView">
|
<!-- require ItemView {@link me.tatarka.bindingcollectionadapter.ItemView} or ItemViewSelector {{@link me.tatarka.bindingcollectionadapter.ItemViewSelector}.} -->
|
<attr name="itemView" />
|
<!-- require List<ViewModel> bind to ItemView to presentation.-->
|
<attr name="items" />
|
<!-- require a adapter which type of BindingRecyclerViewAdapter<T> to AdapterView-->
|
<attr name="adapter" />
|
<attr name="dropDownItemView" format="reference" />
|
<attr name="itemIds" format="reference" />
|
<attr name="itemIsEnabled" format="reference" />
|
<!-- require BindingCommand<Integer> -->
|
<attr name="onScrollStateChangedCommand" />
|
<!-- require BindingCommand<ListViewScrollDataWrapper> -->
|
<attr name="onScrollChangeCommand" />
|
<!-- require BindingCommand<Integer> count of list items-->
|
<attr name="onLoadMoreCommand" format="reference" />
|
</declare-styleable>
|
|
<declare-styleable name="TextView">
|
<!--require BindingCommand<TextChangeDataWrapper> -->
|
<attr name="beforeTextChangedCommand" format="reference" />
|
<!--require BindingCommand<TextChangeDataWrapper> -->
|
<attr name="onTextChangedCommand" format="reference" />
|
<!--require BindingCommand<String> -->
|
<attr name="afterTextChangedCommand" format="reference" />
|
<attr name="textChanged" format="reference" />
|
<attr name="textColorSelect" format="color"/>
|
<attr name="textColorHintSelect" format="color"/>
|
<attr name="textStyleSelect" format="boolean"/>
|
</declare-styleable>
|
|
<declare-styleable name="PhoneCode">
|
<attr name="textColorNormal" format="reference|color"/>
|
<attr name="textColor" format="reference|color"/>
|
<attr name="lineColorNormal" format="reference|color"/>
|
<attr name="lineColor" format="reference|color"/>
|
</declare-styleable>
|
|
<declare-styleable name="ImageView">
|
<!-- load bitmap from uri(string type) -->
|
<!--width for ResizeOptions (use Fresco to load bitmap). -->
|
<attr name="request_width" format="integer" />
|
<!--height for ResizeOptions (use Fresco to load bitmap). -->
|
<attr name="request_height" format="integer" />
|
<attr name="placeholderRes" format="reference|color" />
|
<!-- require BindingCommand<Bitmap> See {@link @link com.kelin.mvvmlight.command.BindingCommand} -->
|
<attr name="onSuccessCommand" format="reference" />
|
<!--require BindingCommand<CloseableReference<CloseableImage>> See {@link com.kelin.mvvmlight.command.BindingCommand} -->
|
<attr name="onFailureCommand" format="reference" />
|
<attr name="localPicChange" format="reference"/>
|
|
</declare-styleable>
|
|
|
<declare-styleable name="ViewGroup">
|
<!-- require ItemView {@link me.tatarka.bindingcollectionadapter.ItemView} or ItemViewSelector {{@link me.tatarka.bindingcollectionadapter.ItemViewSelector}.} -->
|
<attr name="itemView" />
|
<!-- require List<ViewModel> bind to ItemView to presentation.-->
|
<attr name="observableList" format="reference" />
|
|
</declare-styleable>
|
|
<declare-styleable name="RecyclerView" parent="AdapterView">
|
<attr name="lineManager" format="reference" />
|
<attr name="itemBinding" format="reference" />
|
<attr name="layoutManager" format="reference" />
|
<attr name="itemAnimator" format="reference" />
|
</declare-styleable>
|
<declare-styleable name="RadioGroup">
|
<attr name="onCheckedChangedCommand" format="reference" />
|
</declare-styleable>
|
|
<declare-styleable name="Spinner">
|
<attr name="itemDatas" format="reference" />
|
<attr name="valueReply" format="string" />
|
<attr name="resource" format="integer" />
|
<attr name="dropDownResource" format="integer" />
|
<attr name="onItemSelectedCommand" format="reference" />
|
</declare-styleable>
|
|
<declare-styleable name="Switch">
|
<attr name="onCheckedChangeCommand" format="reference" />
|
<attr name="switchState" format="boolean" />
|
</declare-styleable>
|
|
<declare-styleable name="ListView" parent="AdapterView">
|
<!--require BindingCommand<Integer> integer mean to position where is clicked! -->
|
<attr name="onItemClickCommand" format="reference" />
|
</declare-styleable>
|
|
<declare-styleable name="ViewPager">
|
<!-- require ItemView {@link me.tatarka.bindingcollectionadapter.ItemView} or ItemViewSelector {{@link me.tatarka.bindingcollectionadapter.ItemViewSelector}.} -->
|
<attr name="itemView" />
|
<!-- require List<ViewModel> bind to ItemView to presentation.-->
|
<attr name="items" />
|
<!-- require a adapter which type of BindingRecyclerViewAdapter<T> to AdapterView-->
|
<attr name="adapter" />
|
<!-- require PageTitles<T>-->
|
<attr name="pageTitles" format="reference" />
|
<!--require BindingCommand<ViewPagerDataWrapper> -->
|
<attr name="onPageScrolledCommand" format="reference" />
|
<!--require BindingCommand<Integer> -->
|
<attr name="onPageSelectedCommand" format="reference" />
|
<!--require BindingCommand<Integer> -->
|
<attr name="onPageScrollStateChangedCommand" format="reference" />
|
|
</declare-styleable>
|
|
<declare-styleable name="NestedScrollView">
|
<!-- require BindingCommand<NestScrollDataWrapper> -->
|
<attr name="onScrollChangeCommand" />
|
</declare-styleable>
|
|
<declare-styleable name="SimpleDraweeView">
|
<!-- require String to load Image"-->
|
<attr name="url" format="string"/>
|
<attr name="nomalPic" format="string" />
|
<attr name="nomalHeadPicId" format="string" />
|
<attr name="pic" format="string" />
|
<attr name="errPic" format="reference|color" />
|
</declare-styleable>
|
|
<declare-styleable name="ScrollView">
|
<!-- require BindingCommand<ScrollDataWrapper> -->
|
<attr name="onScrollChangeCommand" />
|
</declare-styleable>
|
|
<declare-styleable name="SwipeRefreshLayout">
|
<!-- require BindingCommand -->
|
<attr name="onRefreshCommand" format="reference" />
|
<attr name="refreshing" format="boolean" />
|
</declare-styleable>
|
|
<declare-styleable name="WebView">
|
<!-- require String render to html show in webview-->
|
<attr name="render" format="string" />
|
</declare-styleable>
|
<!-- 自定义控制事件分发的LinearLayout -->
|
<declare-styleable name="ControlDistributeLinearLayout">
|
<attr name="distribute_event" format="boolean" />
|
</declare-styleable>
|
<!-- indicator -->
|
<!-- 设置显示器颜色 -->
|
<attr name="tl_indicator_color" format="color"/>
|
<!-- 设置显示器高度 -->
|
<attr name="tl_indicator_height" format="dimension"/>
|
<!-- 设置显示器固定宽度 -->
|
<attr name="tl_indicator_width" format="dimension"/>
|
<!-- 设置显示器margin,当indicator_width大于0,无效 -->
|
<attr name="tl_indicator_margin_left" format="dimension"/>
|
<attr name="tl_indicator_margin_top" format="dimension"/>
|
<attr name="tl_indicator_margin_right" format="dimension"/>
|
<attr name="tl_indicator_margin_bottom" format="dimension"/>
|
<!-- 设置显示器圆角弧度-->
|
<attr name="tl_indicator_corner_radius" format="dimension"/>
|
<!-- 设置显示器上方还是下方,只对圆角矩形有用-->
|
<attr name="tl_indicator_gravity" format="enum">
|
<enum name="TOP" value="48"/>
|
<enum name="BOTTOM" value="80"/>
|
</attr>
|
<!-- 设置显示器为常规|三角形|背景色块|-->
|
<attr name="tl_indicator_style" format="enum">
|
<enum name="NORMAL" value="0"/>
|
<enum name="TRIANGLE" value="1"/>
|
<enum name="BLOCK" value="2"/>
|
</attr>
|
<!-- 设置显示器长度与title一样长,只有在STYLE_NORMAL并且indicatorWidth小于零有效-->
|
<attr name="tl_indicator_width_equal_title" format="boolean"/>
|
<!-- 设置显示器支持动画-->
|
<attr name="tl_indicator_anim_enable" format="boolean"/>
|
<!-- 设置显示器动画时间-->
|
<attr name="tl_indicator_anim_duration" format="integer"/>
|
<!-- 设置显示器支持动画回弹效果-->
|
<attr name="tl_indicator_bounce_enable" format="boolean"/>
|
|
<!-- underline -->
|
<!-- 设置下划线颜色 -->
|
<attr name="tl_underline_color" format="color"/>
|
<!-- 设置下划线高度 -->
|
<attr name="tl_underline_height" format="dimension"/>
|
<!-- 设置下划线上方还是下方-->
|
<attr name="tl_underline_gravity" format="enum">
|
<enum name="TOP" value="48"/>
|
<enum name="BOTTOM" value="80"/>
|
</attr>
|
|
<!-- divider -->
|
<!-- 设置分割线颜色 -->
|
<attr name="tl_divider_color" format="color"/>
|
<!-- 设置分割线宽度 -->
|
<attr name="tl_divider_width" format="dimension"/>
|
<!-- 设置分割线的paddingTop和paddingBottom -->
|
<attr name="tl_divider_padding" format="dimension"/>
|
|
<!-- tab -->
|
<!-- 设置tab的paddingLeft和paddingRight -->
|
<attr name="tl_tab_padding" format="dimension"/>
|
<!-- 设置tab大小等分 -->
|
<attr name="tl_tab_space_equal" format="boolean"/>
|
<!-- 设置tab固定大小 -->
|
<attr name="tl_tab_width" format="dimension"/>
|
|
<!-- title -->
|
<!-- 设置字体大小 -->
|
<attr name="tl_textsize" format="dimension"/>
|
<!-- 设置字体选中颜色 -->
|
<attr name="tl_textSelectColor" format="color"/>
|
<!-- 设置字体未选中颜色 -->
|
<attr name="tl_textUnselectColor" format="color"/>
|
<!-- 设置字体加粗 -->
|
<attr name="tl_textBold" format="enum">
|
<enum name="NONE" value="0"/>
|
<enum name="SELECT" value="1"/>
|
<enum name="BOTH" value="2"/>
|
</attr>
|
<!-- 设置字体全大写 -->
|
<attr name="tl_textAllCaps" format="boolean"/>
|
|
<declare-styleable name="SlidingTabLayout">
|
<!-- indicator -->
|
<attr name="tl_indicator_color"/>
|
<attr name="tl_indicator_height"/>
|
<attr name="tl_indicator_width"/>
|
<attr name="tl_indicator_margin_left"/>
|
<attr name="tl_indicator_margin_top"/>
|
<attr name="tl_indicator_margin_right"/>
|
<attr name="tl_indicator_margin_bottom"/>
|
<attr name="tl_indicator_corner_radius"/>
|
<attr name="tl_indicator_gravity"/>
|
<attr name="tl_indicator_style"/>
|
<attr name="tl_indicator_width_equal_title"/>
|
|
<!-- underline -->
|
<attr name="tl_underline_color"/>
|
<attr name="tl_underline_height"/>
|
<attr name="tl_underline_gravity"/>
|
|
<!-- divider -->
|
<attr name="tl_divider_color"/>
|
<attr name="tl_divider_width"/>
|
<attr name="tl_divider_padding"/>
|
|
<!-- tab -->
|
<attr name="tl_tab_padding"/>
|
<attr name="tl_tab_space_equal"/>
|
<attr name="tl_tab_width"/>
|
|
<!-- title -->
|
<attr name="tl_textsize"/>
|
<attr name="tl_textSelectColor"/>
|
<attr name="tl_textUnselectColor"/>
|
<attr name="tl_textBold"/>
|
<attr name="tl_textAllCaps"/>
|
|
</declare-styleable>
|
|
<declare-styleable name="CommonTabLayout">
|
<!-- indicator -->
|
<attr name="tl_indicator_color"/>
|
<attr name="tl_indicator_height"/>
|
<attr name="tl_indicator_width"/>
|
<attr name="tl_indicator_margin_left"/>
|
<attr name="tl_indicator_margin_top"/>
|
<attr name="tl_indicator_margin_right"/>
|
<attr name="tl_indicator_margin_bottom"/>
|
<attr name="tl_indicator_corner_radius"/>
|
<attr name="tl_indicator_gravity"/>
|
<attr name="tl_indicator_style"/>
|
<attr name="tl_indicator_anim_enable"/>
|
<attr name="tl_indicator_anim_duration"/>
|
<attr name="tl_indicator_bounce_enable"/>
|
|
<!-- underline -->
|
<attr name="tl_underline_color"/>
|
<attr name="tl_underline_height"/>
|
<attr name="tl_underline_gravity"/>
|
|
<!-- divider -->
|
<attr name="tl_divider_color"/>
|
<attr name="tl_divider_width"/>
|
<attr name="tl_divider_padding"/>
|
|
<!-- tab -->
|
<attr name="tl_tab_padding"/>
|
<attr name="tl_tab_space_equal"/>
|
<attr name="tl_tab_width"/>
|
|
<!-- title -->
|
<attr name="tl_textsize"/>
|
<attr name="tl_textSelectColor"/>
|
<attr name="tl_textUnselectColor"/>
|
<attr name="tl_textBold"/>
|
<attr name="tl_textAllCaps"/>
|
|
<!-- icon -->
|
<!-- 设置icon宽度 -->
|
<attr name="tl_iconWidth" format="dimension"/>
|
<!-- 设置icon高度 -->
|
<attr name="tl_iconHeight" format="dimension"/>
|
<!-- 设置icon是否可见 -->
|
<attr name="tl_iconVisible" format="boolean"/>
|
<!-- 设置icon显示位置,对应Gravity中常量值 -->
|
<attr name="tl_iconGravity" format="enum">
|
<enum name="LEFT" value="3"/>
|
<enum name="TOP" value="48"/>
|
<enum name="RIGHT" value="5"/>
|
<enum name="BOTTOM" value="80"/>
|
</attr>
|
<!-- 设置icon与文字间距 -->
|
<attr name="tl_iconMargin" format="dimension"/>
|
|
</declare-styleable>
|
|
<declare-styleable name="SegmentTabLayout">
|
<!-- indicator -->
|
<attr name="tl_indicator_color"/>
|
<attr name="tl_indicator_height"/>
|
<attr name="tl_indicator_margin_left"/>
|
<attr name="tl_indicator_margin_top"/>
|
<attr name="tl_indicator_margin_right"/>
|
<attr name="tl_indicator_margin_bottom"/>
|
<attr name="tl_indicator_corner_radius"/>
|
<attr name="tl_indicator_anim_enable"/>
|
<attr name="tl_indicator_anim_duration"/>
|
<attr name="tl_indicator_bounce_enable"/>
|
|
<!-- divider -->
|
<attr name="tl_divider_color"/>
|
<attr name="tl_divider_width"/>
|
<attr name="tl_divider_padding"/>
|
|
<!-- tab -->
|
<attr name="tl_tab_padding"/>
|
<attr name="tl_tab_space_equal"/>
|
<attr name="tl_tab_width"/>
|
|
<!-- title -->
|
<attr name="tl_textsize"/>
|
<attr name="tl_textSelectColor"/>
|
<attr name="tl_textUnselectColor"/>
|
<attr name="tl_textBold"/>
|
<attr name="tl_textAllCaps"/>
|
|
<attr name="tl_bar_color" format="color"/>
|
<attr name="tl_bar_stroke_color" format="color"/>
|
<attr name="tl_bar_stroke_width" format="dimension"/>
|
|
</declare-styleable>
|
|
<declare-styleable name="MsgView">
|
<!-- 圆角矩形背景色 -->
|
<attr name="mv_backgroundColor" format="color"/>
|
<!-- 圆角弧度,单位dp-->
|
<attr name="mv_cornerRadius" format="dimension"/>
|
<!-- 圆角弧度,单位dp-->
|
<attr name="mv_strokeWidth" format="dimension"/>
|
<!-- 圆角边框颜色-->
|
<attr name="mv_strokeColor" format="color"/>
|
<!-- 圆角弧度是高度一半-->
|
<attr name="mv_isRadiusHalfHeight" format="boolean"/>
|
<!-- 圆角矩形宽高相等,取较宽高中大值-->
|
<attr name="mv_isWidthHeightEqual" format="boolean"/>
|
</declare-styleable>
|
<declare-styleable name="TagFlowLayout">
|
<attr name="auto_select_effect" format="boolean"></attr>
|
<attr name="max_select" format="integer"></attr>
|
<attr name="gravity">
|
<enum name="left" value="-1" />
|
<enum name="center" value="0" />
|
<enum name="right" value="1" />
|
</attr>
|
</declare-styleable>
|
</resources>
|