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#getLayout()
The following examples show how to use
android.widget.EditText#getLayout() .
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: LineUtils.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public static int getStartIndexAtLine(EditText editable, int line) { Layout layout = editable.getLayout(); if (layout != null) { return layout.getLineStart(line); } return 0; }
Example 2
Source File: LineUtils.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public static int getStartIndexAtLine(EditText editable, int line) { Layout layout = editable.getLayout(); if (layout != null) { return layout.getLineStart(line); } return 0; }
Example 3
Source File: ViewUtils.java From FirefoxReality with Mozilla Public License 2.0 | 5 votes |
public static int getCursorOffset(@NonNull EditText aView, float aX) { Layout layout = aView.getLayout(); if (layout != null) { float x = aX + aView.getScrollX() - aView.getPaddingLeft(); return layout.getOffsetForHorizontal(0, x); } return -1; }
Example 4
Source File: LineUtils.java From javaide with GNU General Public License v3.0 | 5 votes |
public static int getStartIndexAtLine(EditText editable, int line) { Layout layout = editable.getLayout(); if (layout != null) { return layout.getLineStart(line); } return 0; }