1,使用方式:
<com.fxchat.view.ChatImageView
android:scaleType="fitXY"
app:bg="@drawable/msgbakground_to"
android:layout_width="150dp"
android:layout_height="70dp" />
2,添加属性文件attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="ChatImageView">
<