Skip to content

Latest commit

 

History

History
80 lines (62 loc) · 2.08 KB

ThirdPartSupport.md

File metadata and controls

80 lines (62 loc) · 2.08 KB

第三方控件库

hdodenhof/CircleImageView

项目原地址

v2.1.0.2

implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'skin.support:circleimageview:2.1.0.4'

使用方法一

  • application onCreate中初始化
SkinCompatManager.init(this)
        .addInflater(new SkinCircleImageViewInflater()) // hdodenhof/CircleImageView
        .loadSkin();

或者

SkinCircleImageViewManager.init(this);

布局文件中引用

<de.hdodenhof.circleimageview.CircleImageView
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/profile_image"
    android:layout_width="96dp"
    android:layout_height="96dp"
    android:src="@drawable/profile"
    app:civ_border_width="2dp"
    app:civ_border_color="@color/border_color"/>

使用方法二

直接在布局文件中引用

<skin.support.circleimageview.widget.SkinCompatCircleImageView
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/profile_image"
    android:layout_width="96dp"
    android:layout_height="96dp"
    android:src="@drawable/profile"
    app:civ_border_width="2dp"
    app:civ_border_color="@color/border_color"/>

H07000223/FlycoTabLayout

项目原地址

v2.1.2

implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
implementation 'skin.support:flycotablayout:2.1.2.2'

使用方法

  • application onCreate中初始化
SkinCompatManager.init(this)
        .addInflater(new SkinFlycoTabLayoutInflater()) // H07000223/FlycoTabLayout
        .loadSkin();

或者

SkinFlycoTabLayoutManager.init(this);