Giter Club home page Giter Club logo

Comments (4)

martin-stone avatar martin-stone commented on July 30, 2024

I'm not sure what you mean by "thump". What exactly are you trying to do?

from hsv-alpha-color-picker-android.

badeesindi avatar badeesindi commented on July 30, 2024

I'm talking about the circle shaped object that changes ValueView and AlphaView when scrolled right or left. By default, I get 100% transparent AlphaView color unless I slide it to the other side for example. I'm trying to get 0% transparent color when I start the activity, then I get the option to increase the transparency.

in XML I tried to set the progress to 100 and 50 but nothing happened, I still get full transparency:
The mover doesn't change its position.

<com.rarepebble.colorpicker.AlphaView
        android:progress="50"
        android:id="@+id/alphaView"
        android:layout_width="match_parent"
        android:layout_height="@dimen/sliderWidth"
        android:layout_marginBottom="@dimen/margin"
        />

from hsv-alpha-color-picker-android.

martin-stone avatar martin-stone commented on July 30, 2024

The positions of the circles are determined by the color that you set. If you want to start with a particular transparency, then set the color with that transparency with ColorPickerView.setColor:

https://github.com/martin-stone/hsv-alpha-color-picker-android/blob/master/demo_app/src/main/java/com/rarepebble/colorpickerdemo/ViewDemoActivity.java#L18

Or in the preferences.xml with defaultValue:

https://github.com/martin-stone/hsv-alpha-color-picker-android/blob/master/demo_app/src/main/res/xml/preferences.xml#L9

The alpha view does not understand any XML configuration on its own. Only the ColorPickerView and the ColorPreference do anything with XML.

from hsv-alpha-color-picker-android.

badeesindi avatar badeesindi commented on July 30, 2024

That worked just great. I had to make a few changes in my code. I appreciate your hardworking.
Keep it up :)

from hsv-alpha-color-picker-android.

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.