1

In my application we have a scroll view in that we added CheckBox, ComboBox and SingleLineText elements. Each has separate class which extends CheckBox,ComboBox and EditText correspondingly.

In the SingleLineText we implemented OnFocusChangeListener() and override onFocusChange() method. If focus is in first SingleLineText and touch on the second SingleLineText then focus has changed. But if focus is in SingleLineText and touch on any check box or comboBox still focus(cursor) is in SingleLineText only. Because of that onFocusChange() method has not been called.

Can anybody has any idea about this problem?

1
  • 1
    Please add some code where you are trying to implement described functionality. Apr 24, 2015 at 11:37

3 Answers 3

0

call yourEditText.clearFocus(); on other components like CheckBox, ComboBox click event method this will force to call your onFocusChange() method

0

Use this for your activity in manifest file

android:windowSoftInputMode="adjustPan"

0

Make sure you remove focus from EditText by calling the following lines of code.

editText.clearFocus();

and call

checkBox.requestFocus();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.