Android 5.0 联系人应用的一个实现:RoundedLetterView
jopen
9年前
RoundedLetterView一个类似于Android 5.0 联系人应用的实现。
Attributes to choose from:
titleText
- The text in the first row.titleSize
- The size of the first row text.titleColor
- The color of the first row text.backgroundColorValue
- the color between the circle and the stroke.
示例
<gr.vanderbox.roundedletterview.RoundedLetterView xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/rlv_name_view" android:layout_width="56dp" android:layout_height="56dp" android:layout_marginStart="15dp" app:backgroundColorValue="@color/green" app:titleColor="@android:color/white" app:titleSize="35dp" app:titleText="A" />