So I got this button and this ColorView on my .xml layout as you see in the left snapshoot, I want to fill the background of the ColorView square with the color chosen by the user in the dialog that you see on the right snapshoot.
My .xml code:
<Button android:id="@+id/color_button" style="@style/buttonStyle" android:layout_width="280sp" android:layout_height="wrap_content" android:layout_alignBottom="@+id/color_view" android:layout_alignParentStart="true" android:layout_marginStart="13dp" android:onClick="showColorPickerDialog" android:text="Color" /> <es.lost2found.lost2foundUI.pickerUI.ColorView android:id="@+id/color_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginEnd="18dp" android:background="@color/otherUserMsgColor"> </es.lost2found.lost2foundUI.pickerUI.ColorView> The onClick method called on the button is this one:
public void showColorPickerDialog(View v) { ColorPickerUI colorpicker = new ColorPickerUI(); colorpicker.build() .title(R.string.color_dialog_title) .colorPreset(Color.BLACK) .allowCustom(true) .show(this, "dialog"); } I'm using the QuadFlask ColorPicker, I don't know if there's a method to do what I want, I've been searching on the repository and I didn't find it.
If there's any way to get what I want with other colorPicker let me know please, any help will be apreciated!

