title: How to show static cursor on EditText when my focus is on custom keyboard keys in Android TV application
body: <p>I am trying to show a static cursor inside editText every time a user clicks on the keys of the custom keyboard.
  The static cursor must be visible when the user has focus on the key.</p>
  <p>Following is my xml code for Edit text and custom keyboard keys:</p>
  <pre><code>    &lt;LinearLayout
          android:id=&quot;@+id/nine_container&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginTop=&quot;@dimen/dp_5&quot;
          android:orientation=&quot;horizontal&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/two_container&quot;&gt;
  
          &lt;com.jio.myjiotv.custom.ui.STBButton
              android:id=&quot;@+id/nine&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;@dimen/dp_35&quot;
              android:layout_weight=&quot;1&quot;
              android:background=&quot;@drawable/locate_selector&quot;
              android:gravity=&quot;center&quot;
              android:text=&quot;9&quot; /&gt;
  
      &lt;LinearLayout
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:layout_marginStart=&quot;@dimen/dp_35&quot;
      android:layout_marginTop=&quot;@dimen/dp_20&quot;
      android:layout_marginEnd=&quot;@dimen/dp_40&quot;
      android:layout_marginBottom=&quot;@dimen/dp_30&quot;
      android:orientation=&quot;vertical&quot;&gt;
  
      &lt;com.jio.myjiotv.custom.ui.STBEditText
          android:id=&quot;@+id/input_search&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_marginEnd=&quot;@dimen/dimen_10&quot;
          android:background=&quot;@drawable/locate_selector&quot;
          android:focusable=&quot;false&quot;
          android:hint=&quot;@string/search&quot;
          android:inputType=&quot;text&quot;
          android:maxLength=&quot;100&quot;
          android:maxLines=&quot;1&quot;
          android:padding=&quot;@dimen/dp_10&quot;
          android:textSize=&quot;@dimen/sp_14&quot; /&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/cXUVr.png" rel="nofollow noreferrer">What I want is something like this:</a></p>
  <p>But in my case cursor is not visible, when I click on any key.
  I have tried setting <code>cursorvisible=true</code> , <code>requestfocus</code>, <code>backgrounddrawable=@null</code> ,etc.</p>
  <p>Help me with this, please. I am stuck over this issue for a week.</p>