version:5.8
fix: update:优化拨打电话页面
This commit is contained in:
38
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_scale_tab.xml
Normal file
38
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_scale_tab.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:includeFontPadding="false"
|
||||
tools:text="111"
|
||||
android:singleLine="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/tv_tab_title_dmg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</RelativeLayout>
|
||||
31
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab.xml
Normal file
31
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tap"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_tab_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/ll_tap"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
44
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab_left.xml
Normal file
44
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab_left.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tap"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_tab_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView
|
||||
android:layout_toRightOf="@+id/ll_tap"
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
45
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab_right.xml
Normal file
45
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab_right.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tap"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_tab_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/ll_tap"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tap"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView
|
||||
android:layout_toRightOf="@+id/ll_tap"
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
44
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab_top.xml
Normal file
44
FlycoTabLayoutZ_Lib/src/main/res/layout/layout_tab_top.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tap"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_tab_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tab_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<com.flyco.tablayout.widget.MsgView
|
||||
android:id="@+id/rtv_msg_tip"
|
||||
xmlns:mv="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/ll_tap"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="11.5sp"
|
||||
android:visibility="gone"
|
||||
mv:mv_backgroundColor="#FD481F"
|
||||
mv:mv_isRadiusHalfHeight="true"
|
||||
mv:mv_strokeColor="#ffffff"
|
||||
mv:mv_strokeWidth="1dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
319
FlycoTabLayoutZ_Lib/src/main/res/values/attrs.xml
Normal file
319
FlycoTabLayoutZ_Lib/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,319 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- 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" />
|
||||
|
||||
<!-- 设置tab的上下间距 -->
|
||||
<attr name="tl_tab_marginTop" format="dimension" />
|
||||
<attr name="tl_tab_marginBottom" format="dimension" />
|
||||
|
||||
<attr name="tl_tab_msg_marginTop" format="dimension" />
|
||||
<attr name="tl_tab_msg_marginRight" format="dimension" />
|
||||
|
||||
<attr name="tl_tab_dot_marginTop" format="dimension" />
|
||||
<attr name="tl_tab_dot_marginRight" format="dimension" />
|
||||
|
||||
<attr name="tl_tab_background" format="reference" />
|
||||
|
||||
<!-- tab的位置 -->
|
||||
<attr name="tl_tab_gravity" format="enum">
|
||||
<enum name="Top" value="0" />
|
||||
<enum name="Bottom" value="1" />
|
||||
<enum name="Center" value="2" />
|
||||
</attr>
|
||||
|
||||
<!-- tab的竖直位置 -->
|
||||
<attr name="tl_tab_vertical_gravity" format="enum">
|
||||
<enum name="Top" value="0" />
|
||||
<enum name="Bottom" value="1" />
|
||||
<enum name="Center" value="2" />
|
||||
</attr>
|
||||
|
||||
<!-- tab的水平位置 -->
|
||||
<attr name="tl_tab_horizontal_gravity" format="enum">
|
||||
<enum name="Left" value="0" />
|
||||
<enum name="Right" value="1" />
|
||||
<enum name="Center" value="2" />
|
||||
</attr>
|
||||
|
||||
<!-- title -->
|
||||
<!-- 设置字体大小 -->
|
||||
<attr name="tl_textSize" format="dimension" />
|
||||
<attr name="tl_textSelectSize" format="dimension" />
|
||||
<attr name="tl_textUnSelectSize" 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" />
|
||||
<attr name="tl_tab_marginTop" />
|
||||
<attr name="tl_tab_marginBottom" />
|
||||
<attr name="tl_tab_gravity" />
|
||||
|
||||
<!-- title -->
|
||||
<attr name="tl_textSelectSize" />
|
||||
<attr name="tl_textUnSelectSize" />
|
||||
<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="SlidingScaleTabLayout">
|
||||
<!-- 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" />
|
||||
<attr name="tl_tab_marginTop" />
|
||||
<attr name="tl_tab_marginBottom" />
|
||||
<attr name="tl_tab_horizontal_gravity" />
|
||||
<attr name="tl_tab_vertical_gravity" />
|
||||
<attr name="tl_tab_background" />
|
||||
|
||||
<!-- title -->
|
||||
<attr name="tl_textSelectSize" />
|
||||
<attr name="tl_textUnSelectSize" />
|
||||
<attr name="tl_textSelectColor" />
|
||||
<attr name="tl_textUnSelectColor" />
|
||||
<attr name="tl_textBold" />
|
||||
<attr name="tl_textAllCaps" />
|
||||
|
||||
<!-- 是否开启文字的图片镜像 -->
|
||||
<attr name="tl_openTextDmg" format="boolean" />
|
||||
|
||||
<!-- 未读消息的位置 -->
|
||||
<attr name="tl_tab_msg_marginTop" />
|
||||
<attr name="tl_tab_msg_marginRight" />
|
||||
|
||||
<!-- 红点的位置 -->
|
||||
<attr name="tl_tab_dot_marginTop" />
|
||||
<attr name="tl_tab_dot_marginRight" />
|
||||
|
||||
</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>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user