For some unknown reason, I can\'t edit files in Android Studio. This include both java and xml files.
When I launch Android Studio (ver 1.2.2) , everything is fine.
This problem may be related with time of your computer. I faced this issue and realized that when i fix my computer time and restart android studio (also php storm) it fixes problem completely. Still my laptop has a time problem (cause of CMOS battery) and sometimes i forgot to change time of my computer before open the Android Studio, can not focus anywhere correctly. If i fix my time of my computer and restart editors. it fixes. As i understand there are various causes of this cant focus problem. I write this answer because non of these answers (on stackoverflow) could solve my problem.