Orchestra
Jetpack Compose compatible libraries using Balloon, ColorPickerView, PowerSpinner.
Balloon
And add a dependency code to your module's build.gradle
file.
Usage
BalloonAnchor
composable can be used in ConstraintLayout
and it receives a constraint reference. In the below, BalloonAnchor
references image
composable. When clicked the image
composable, balloon popup will be shown.
Or we can create a BalloonAnchor
composable using Balloon.Factory.
ColorPicker
And add a dependency code to your module's build.gradle
file.
Usage
ColorPicker
composable implements a color picker with AlphaSlideBar
and BrightnessSlideBar
. We can create an alpha sidebar and brightness sidebar for changing saturation and lightness by tapping on the desired color. They should be used in children
inner composable in ColorPicker
, and they receive a colorPickerView
as a parameter.
AlphaTileBox
In a normal View, it can not represent ARGB colors accurately. Because a color will be mixed with the parent's background-color. For resolving it we can use AlphaTileBox
composable. AlphaTileBox
composable reflects ARGB colors.
Spinner
And add a dependency code to your module's build.gradle
file.
Usage
Spinner
composable implements a lightweight dropdown popup spinner. Here is an example for creating a spinner using a sting array resource. We should use the String generic type for creating a spinner when we us a string array resource.
Here is an another example using a List for creating a spinner. In this case, we don't need to decide a generic type of Spinner.