I'm developing an Calculator App. I wanna achieve the UI as like as Android default Calculator App. Please check my App's screenshot.
I want to hide the underline of EditText
and show the cursor in white
color. I used transparent background at EditText (from here) also used background as @null
. It hides EditText's underline and also hide the cursor. BUT... for calculator App cursor should not be hidden.
Please give me a way to hide underline of EditText
and show the EditText's cursor of white color.
Set the background drawable as transparent and set the Text Cursor drawable of your choice. For Example:
<EditText
android:id="@+id/remarkEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:textCursorDrawable="@drawable/white"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With