Android-CollapsibleSearchMenu icon indicating copy to clipboard operation
Android-CollapsibleSearchMenu copied to clipboard

EditText not working with a fragment

Open spipau opened this issue 12 years ago • 4 comments

First of all, thank you for your work and time!

Everything works great until I add a fragment to my SherlockFragmentActivity.

When I don't add a fragment and add the search function in the activity to the actionbar it works.

When I add a fragment the EditText doesn't take the input. It just uses a box (see screenshot)

This only happens Android < 3.0. In newer version everything works fine.

device-2012-12-11-110426

Do you have any idea why this happens?

Build target: Google APIs 4.0.3 (tried 4.2 also)

spipau avatar Dec 11 '12 11:12 spipau

The same is happening with me. I am working on Android 3.3 Beta version. Clicking on edittext also does not open up the keyboard. Please Help..!!

sreyans01 avatar Oct 25 '19 03:10 sreyans01

The same issue with me, I have added 4 fragments in the activity, and in one fragment then edit text is not clickable.

please provide any solution!!

vasugargofficial avatar Oct 02 '20 09:10 vasugargofficial

@sreyans01 got the solution??

vasugargofficial avatar Oct 02 '20 09:10 vasugargofficial

Yes, I got the solution. Just make the edittext focusable and set focus to "true" when fragment is created, and it will solve the problem.

sreyans01 avatar Oct 02 '20 16:10 sreyans01