eltos / SimpleDialogFragments

An Android library to create dialogs with ease and handle user interaction reliably, using fragments and material design.
Apache License 2.0
119 stars 17 forks source link

Hide the HEX EditView in SimpleColorWheelDialog #15

Closed XanaRaquel closed 6 years ago

XanaRaquel commented 7 years ago

When selecting to customize the color from the SimpleColorDialog, the SimpleColorWheelDialog show up and also the soft keyboard pops-up because the focus is in the EditView of the hex value and it's really annoying.

Either an way to disable it or don't give focus to it at the start would be great.

eltos commented 7 years ago

I did not manage to reproduce this. For me the Keyboard never shows up, when I open the ColorWheelDialog. I remember having worked on this quite a while ago, but I don't recall it exactly. I was using the Demo APK on an Android 7.0 to verify this.

What Android version are you using?

As an idea, could you try whether adding the <requestFocus/> node to, lets say, the SeekBar here and here prevents the EditText from receiving focus on your device?

EDIT: Maybee adding the following to the main RelativeLayout will do the trick too:

android:focusable="true"
android:focusableInTouchMode="true"
XanaRaquel commented 7 years ago

Using a device with Android 5.0.2 with a landscape only app.

I didn't know you could edit projects imported with gradle. Using your EDIT suggestion, it worked! But since I can edit the code I removed the hex EditText altogether. For this app it's not needed.

Thanks for the help!

eltos commented 7 years ago

I'm glad I could help