Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.nyakokishi:ChatImageView:1.0.2'
}
<io.github.leibnik.chatimageview.ChatImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
app:ninePNG="@drawable/ppp"
android:layout_width="200dp"
android:layout_height="150dp"/>
<io.github.leibnik.chatimageview.ChatImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
app:direction="left"
app:arrow_height="15dp"
app:arrow_width="15dp"
app:arrow_top="15dp"
app:offset="7dp"
app:radius="7dp"
android:layout_width="200dp"
android:layout_height="150dp"/>
app:direction
:箭头朝向,默认朝向左app:arrow_height
:箭头高度app:arrow_width
:箭头宽度app:arrow_top
:箭头距view顶边距离app:offset
:箭头偏移量app:radius
:圆角半径