EditText

  1. Home
  2. chevron_right
  3. EditText

Android Custom Edit Text Cursor Not Visible

Solutions
Story I created a new simple project with a custom edit text without any logic (it just extends EditText). The code is the following: CustomEditText.java package com.example.customedittextcursor; import android.content.Context; import android.util.AttributeSet;…

Android: How To Change Hint’s Size

Snippets, Solutions
If you need to set a smaller hint for your edit text, you can set the hint this way: myEditText.setHint(Html.fromHtml( "<small><small><small>" + getString(R.string.hint) + "</small></small></small>")); Also, you can set the…