skydoves / ColorPickerView

🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
Apache License 2.0
1.6k stars 211 forks source link

Brightness slider bar not working properly #29

Closed AntonisKl closed 5 years ago

AntonisKl commented 5 years ago

The brightness slider bar wheel cannot be dragged. Xml code (which is inside a LinearLayout): <com.skydoves.colorpickerview.sliders.BrightnessSlideBar android:id="@+id/brightnessSlide" android:layout_width="wrap_content" android:layout_height="280dp" android:layout_gravity="center" android:layout_marginLeft="15dp" android:layout_marginRight="10dp" app:borderColor_BrightnessSlider="@android:color/darker_gray" app:borderSize_BrightnessSlider="0" app:selector_BrightnessSlider="@drawable/wheel" />

skydoves commented 5 years ago

Hi! It seems you want to implement the slider bar vertically. In that case, you should use the below attribute than sizing height.

android:rotation="90"
AntonisKl commented 5 years ago

Hi It seems that android:rotation="90" is not working correctly. image

Update: I got it partially working but now to make its height bigger I have to adjust the view's width which I cannot because of the other view of the parent layout. image

Update 2: I finally got it working with the following code: image

Thank you for your help and well done for making this useful library!

skydoves commented 5 years ago

@AntonisKl Thank you for trying! I really hope your project being well! Thank you.