Available Methods
- setText ( )
- addTextChangedListener ( )
- setHint ( )
- setSelection ( )
- setInputType ( )
- requestFocus ( )
- setError ( )
- setOnEditorActionListener ( )
- getText ( )
- setOnFocusChangeListener ( )
- getSelectionStart ( )
- setTextColor ( )
- setFocusable ( )
- setEnabled ( )
- setTextSize ( )
- setLayoutParams ( )
- setFilters ( )
- setFocusableInTouchMode ( )
- setSingleLine ( )
- getSelectionEnd ( )
- setHintTextColor ( )
- setPadding ( )
- setVisibility ( )
- setGravity ( )
- append ( )
- setBackgroundDrawable ( )
- setOnKeyListener ( )
- selectAll ( )
- setOnClickListener ( )
- setImeOptions ( )
- getInputType ( )
- setTransformationMethod ( )
- post ( )
- setOnTouchListener ( )
- startAnimation ( )
- clearFocus ( )
- length ( )
- setLines ( )
- dispatchKeyEvent ( )
- getParent ( )
- getEditableText ( )
- setBackgroundColor ( )
- setKeyListener ( )
- setTypeface ( )
- getId ( )
- setImeActionLabel ( )
- setTag ( )
- setMaxLines ( )
- setEllipsize ( )
- setClickable ( )
- setRawInputType ( )
- getTag ( )
- setSelectAllOnFocus ( )
- setId ( )
- setBackground ( )
- setLongClickable ( )
- getLayout ( )
- getHint ( )
- focusSearch ( )
- hasFocus ( )
- setHighlightColor ( )
- setAutofillHints ( )
- setCompoundDrawablesWithIntrinsicBounds ( )
- setCursorVisible ( )
- setMinWidth ( )
- requestFocusFromTouch ( )
- setBreakStrategy ( )
- setLineSpacing ( )
- postDelayed ( )
- setHorizontallyScrolling ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.net.Uri
- android.widget.Button
- android.text.TextUtils
- android.view.MotionEvent
- android.widget.LinearLayout
- android.support.annotation.Nullable
- android.content.SharedPreferences
- android.support.annotation.NonNull
- android.annotation.SuppressLint
- android.content.DialogInterface
- android.view.WindowManager
Java Code Examples for android.widget.EditText#setHighlightColor()
The following examples show how to use
android.widget.EditText#setHighlightColor() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java From IdeaTrackerPlus with MIT License | 5 votes |
private void newProjectDialog() { mProjectDialog = new LovelyCustomDialog(this, mDarkTheme ? R.style.EditTextTintThemeDark : R.style.EditTextTintTheme) .setView(R.layout.project_form) .setTopColor(mPrimaryColor) .setIcon(R.drawable.ic_notepad) .setListener(R.id.projectDoneButton, new View.OnClickListener() { @Override public void onClick(View v) { createProjectFromDialog(); } }) .show(); //get the views mProjectError = (TextView) mProjectDialog.findViewById(R.id.project_error_message); mProjectField = (EditText) mProjectDialog.findViewById(R.id.editProjectName); //hide error when text change mProjectField.addTextChangedListener(this); mProjectField.setHighlightColor(Color.LTGRAY); mProjectField.setOnFocusChangeListener(this); //request focus on the edit text if (mProjectField.requestFocus()) { mProjectDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); } }