1. Home
  2. chevron_right
  3. EditText

Android Custom Edit Text Cursor Not Visible

turned_in_not, , , ,
commentNo Comments
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; import android.widget.EditText; /** * @author Diana Prața * Date: 5/29/2015.…

Android: How To Change Hint’s Size

turned_in_not, , ,
comment1 Comment
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 size in the string resource file where is the string…