i’ve created one searchEditBox and a button.Initially when the page loads.,the searchEditBox will be focussed with orange color mark automatically.when i use searchValue.setFocusable(false);.,its unfocussed but i couldnt able to type anything on that box(Box will be disabled).How could i recover this probs.?
java:
setContentView(R.layout.main);
edit=(EditText)findViewById(R.id.edit);
but=(Button)findViewById(R.id.but);
edit.setFocusable(false);
xml:
Hopefully this will solve your problem. Add the android:focusableInTouchMode=”true” to your linearLayout that holds your EditText in your mail.xml file.
ie:
This worked for me. Very simple solution.