Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes

Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes.
Cursor is randomly disappear while coding in Android Studio. Currently using version 1.5.1
Some time cursor is only visible in one file either in java or xml
Right click is working but cursor is not visible in java/ or xml file so I am not able to type the code.

Observed scenario
The text cursor is not visible or the cursor is gone when I open a different file (e.g. ApplicationTest.java instead of activity_main.xml) the cursor appears again.

  • android child view ignore parent padding
  • Offset shape within a ShapeDrawable
  • Android ACRA with handled exceptions
  • iOS/Objective-C equivalent of Android's AsyncTask
  • Android Live Wallpapers with OpenGL ES 2.0?
  • “Please specify Android SDK” in Android Studio 0.2
  • Expected scenario:
    The text cursor should be located after the insertion point.

    Action taken to solved
    I used synchronize, restart Android Studio….. but not able to get solution.
    I am using window 7 and I have cleared temp

    R&D https://code.google.com/p/android/issues/detail?id=78384

    I stuck to this problem so please help me. Appreciate, if anyone can help to troubleshoot.

  • Can I use AccountManager to let users sign in with their Google account?
  • Using GSON in Android to parse a complex JSON object
  • Action bar list navigation + tab navigation - Position of spinner is not at left most
  • Android MultiSelectListPreference, java.lang.String cannot be cast to java.util.Set
  • How to display a route between two geocoords in google maps?
  • Android: ProgressDialog.show() crashes with getApplicationContext
  • 4 Solutions collect form web for “Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes”

    When the cursor disappeared, you can press Insert key on your keyboard, then the cursor will be appeared again.

    this happens because some other text editor is open on PC……..close that text editor/other instance of android studio and this will be solved….

    Close the android studio, not just the project instead the IDE. then open it again, wait till it build and then cursor appears.

    permanent workaround:
    on the left pane in android studio, strangely, all my classes were shown as singleton while they weren’t.
    1. i pressed multiple combinations multiple times of alter / shift / ctrl / mouse clicks to to check whether any key is stuck (which seldomly happens).
    2. i put ‘android studio’ -> ‘file’ -> ‘power save mode’ and tried to work again.
    3. i corrected my system date (it was 2 days behind than current.)
    4. restarted the pc and ‘voila’.
    5. removed ‘android studio’ -> ‘file’ -> ‘power save mode’.

    temporary solution:
    no need to close project or android studio.
    click on the scroll button on the right of the editing pane or on suggestions yellow lines somewhere else on the same vertical scroll bar line.
    enter image description here
    this question has already been asked in different way.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.