Skip to content

BlurFloatingButtonView

استخدام في تخطيط XML

xml
<com.qmdeve.blurview.widget.BlurFloatingButtonView
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_margin="16dp"
    app:blurRadius="12dp"
    app:overlayColor="#80FFFFFF"
    app:fabSize="normal"
    app:fabIcon="?android:attr/actionModeWebSearchDrawable"
    app:fabIconTint="@color/black"
    app:fabBackgroundTint="@color/white"
    app:fabElevation="8dp"
    app:fabRippleColor="@color/gray"/>

مرجع API

الطريقةالوصف
setIconتعيين الأيقونة
setIconTintتعيين لون الأيقونة
setBackgroundTintتعيين لون الخلفية
setRippleColorتعيين لون الريبل
setElevationتعيين الارتفاع
setOnClickListenerتعيين слушатель النقر
setEnabledتعيين تمكين/تعطيل الزر

وصف السمات

اسم السمةالنوعالوصف
app:fabSizeenumتعيين حجم FAB (normal, mini, auto)
app:fabIconreferenceتعيين الأيقونة
app:fabIconTintcolorتعيين لون الأيقونة
app:fabBackgroundTintcolorتعيين لون الخلفية
app:fabElevationdimensionتعيين الارتفاع
app:fabRippleColorcolorتعيين لون الريبل
app:blurRadiusdimensionتعيين نصف قطر التمويه
app:overlayColorcolorتعيين لون التغطية