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"/>
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);