Comments (6)
Sorry, I do not quite understand the issue, what the expected layout?
from colorpicker.
ColorPickerView .onMeasure override does not account for ColorPickerView being constrained by height rather than by width. In my use-case I am constraining the ColorPickerView by height and have it wrap_content for width, being placed in a constraint layout with other views above and below it.
android:layout_width="wrap_content" android:layout_height="0dp"
In which case onMeasure fails to compute the desired width and height correctly and the ColorPickerView does not appear on the screen at all.
from colorpicker.
Hi, I added a layout for landscape to the sample app using:
android:layout_width="wrap_content"
android:layout_height="0dp"
And the measure seems work properly:
from colorpicker.
You don't have anything on top or below the ColorPickerView. What happens if you place a view with height of 96dp to the top of the color view and another view 120dp of height below the ColorPickerView?
I fail to see how this will work considering there is no code in ColorPickerView.onMeasure to handle being constrained by height.
from colorpicker.
Tested to layout with top and bottom views and didn't see the issue:
from colorpicker.
Looks fine in the designer. Using it in an alert dialog with custom view is not working for me as the alert dialog by default uses wrap content for height (causing the color picker not to show up at all), but that's apparently a different issue.
from colorpicker.
Related Issues (20)
- Dismiss the picker on back pressed HOT 1
- Allow to use custom layout for ColorPickerPopup / ColorPickerView HOT 1
- OOM allocating Bitmap with dimensions 16776943 x 63
- OK/Cancel text disappears in Night mode HOT 1
- How do I get the hexadecimal equivalent of the color in onColorPicked? HOT 3
- Migration to AndroidX HOT 1
- Use DialogFragment instead of Popupwindow would be better.
- May I know what is the idea behind ThrottledTouchEventHandler?
- Custom shape selector
- Add ability to change color of black arrow on color slider view HOT 4
- method does not override or implement a method from a supertype HOT 1
- Suggest changing the arrow indicator to a black dot.
- i want to use onColor method but it is final
- 能将圆形选择盘设置为方形选择盘吗?
- 我导入了依赖但是不能用
- Failed to resolve: com.github.duanhong169:colorpicker:1.1.6 HOT 1
- Bad documentation HOT 1
- ClassDefException HOT 5
- Cursor release trigger HOT 2
- Popup Buttons HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colorpicker.