TSR TSR - 1 month ago 15
Android Question

Custom Color picker not working on focus

As you can see in the picture below, and I have a custom color picker under the tab of a view pager. It works fine, but on the next tabs, there is a focusable view (an Edittext) where the keyboard appears. Whenever I swipe back to the color picker, this weird ring appears on the top left.

enter image description here

This is my code for the view:

Answer Source

Just add this line in your manifest file for the activity host the fragment:

android:windowSoftInputMode="stateHidden|adjustPan"