Coder Social home page Coder Social logo

Disabled state about slidetoact HOT 3 CLOSED

zeroDivider avatar zeroDivider commented on June 17, 2024
Disabled state

from slidetoact.

Comments (3)

cortinico avatar cortinico commented on June 17, 2024

You can lock the slider (https://github.com/cortinico/slidetoact#slider_locked) as you also suggested to achieve this. I'm not sure what you're asking for also.
Plus can you share a screenshot of your UI bug?

from slidetoact.

zeroDivider avatar zeroDivider commented on June 17, 2024

I would like to have something like this:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false" android:color="@color/disabled_gray" />
    <item android:state_enabled="true" android:color="@color/enabled_red" />
</selector>

then:

<com.ncorti.slidetoact.SlideToActView
     ....
     app:outer_color="@drawable/my_selector_bg_swipe"
     app:innte_color="@drawable/my_selector_bg_swipe_button"
    ....
    />

Then I'd like to disable the view like this:

binding.swipeButton.isEnabled = false

and then the component does some magic (what my request is about :D) and color itself, so I don't have to do it manually.

I thought it may already have something like this as numerous other components... I hope it is not something subnormal I am asking for.

As for UI bug, I'll open new ticket.

from slidetoact.

cortinico avatar cortinico commented on June 17, 2024

Thanks for the clarification. That's a bug on the widget.
It's fixed here:

from slidetoact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.