• 3

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

How to use box cursor in EditText?

I have developed console like application on Android 9.0.
I want to use box shape cursor in EditText. Is there way to change cursor shape?

I want to be change cursor shape like following:

enter image description here

How I can change cursor shape?

You can use android:textCursorDrawable="@drawable/mycursor" in your edittext and create shape like this :


   <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
        <size android:width="2dp" />
        <solid android:color="@android:color/holo_blue_light"/> 
  • 1
Reply Report