cortinico / slidetoact

A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄
MIT License
1.2k stars 164 forks source link

Border Color and Width #296

Open heihitesh opened 1 year ago

heihitesh commented 1 year ago

What kind of issue is this?

Details

cortinico commented 1 year ago

Are you referring to the slider bubble (the circular icon that the user can grab and slide)?

heihitesh commented 1 year ago

I am requesting for a border with parameters

border_color border_width

On Wed, 30 Aug 2023, 8:48 pm Nicola Corti, @.***> wrote:

Are you referring to the slider bubble (the circular icon that the user can grab and slide)?

— Reply to this email directly, view it on GitHub https://github.com/cortinico/slidetoact/issues/296#issuecomment-1699379099, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDV4DM6GXDGEKMRKGOCEGLXX5KSXANCNFSM6AAAAAA37LWLL4 . You are receiving this because you modified the open/close state.Message ID: @.***>

heihitesh commented 1 year ago

Any Updates ? Is it possible

Thank You

xurshidt90 commented 6 months ago

border_color and border_width are missing. it would be nice to join

image

akkie2106 commented 2 months ago
    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dp_5"
        android:layout_marginBottom="@dimen/dp_16"
        android:background="@drawable/rounded_border_button"
        android:elevation="@dimen/dp_4"
        android:padding="@dimen/dp_1"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent">

        <com.ncorti.slidetoact.SlideToActView
            android:id="@+id/slider"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/rounded_border_button"
            android:elevation="@dimen/dp_2"
            app:animation_duration="250"
            app:area_margin="@dimen/dp_4"
            app:border_radius="@dimen/dp_150"
            app:inner_color="@color/white"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:outer_color="@color/colorprimary"
            app:slider_icon="@drawable/sv_ic_chevron_double_right"
            app:slider_locked="false"
            app:slider_reversed="false"
            app:text="You’re Online"
            app:text_appearance="@font/sofiasans"
            app:text_size="@dimen/dp_22"
            tools:layout_editor_absoluteX="3dp" />

    </androidx.constraintlayout.widget.ConstraintLayout>

<?xml version="1.0" encoding="utf-8"?>

image