BlurButtonView
XMLレイアウトで使う
xml
<com.qmdeve.blurview.widget.BlurButtonView
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button Test"
app:buttonCornerRadius="12dp"
app:buttonIconPadding="8dp"
app:buttonIconSize="24dp"
app:buttonTextBold="true"
aap:blurRadius="12dp"
app:overlayColor="#80FFFFFF"
android:icon="?android:attr/actionModeWebSearchDrawable"
app:buttonIconTint="@color/black"/>APIメソッド
| 方法名 | 描写 |
|---|---|
setText | テキストを設定する |
setButtonCornerRadius | ボタンの角丸半径を設定する |
setTextSize | テキストサイズを設定する |
setTextColor | テキスト色を設定する |
setTextBold | テキストを太字にする |
setIcon setIconResource | アイコンを設定する |
setIconSize | アイコンサイズを設定する |
setIconPadding | アイコン内边距を設定する |
setIconTint | アイコンの着色を設定する |
属性説明
| 属性名 | タイプ | 描写 |
|---|---|---|
app:buttonCornerRadius | dimension | ボタンの角丸半径を設定する |
app:buttonIconPadding | dimension | アイコン内边距を設定する |
app:buttonIconSize | dimension | アイコンサイズを設定する |
app:buttonTextBold | boolean | テキストを太字にする |
app:blurRadius | dimension | 模糊半径を設定する |
app:overlayColor | color | 覆蓋色を設定 |
app:buttonIconTint | color | アイコンの着色を設定 |
android:icon | - | アイコンを設定 |
android:text | - | テキストを設定 |
android:textSize | - | テキストサイズを設定 |
