Home | History | Annotate | Download | only in widget

Lines Matching defs:TextView

161  * Displays text to the user and optionally allows them to edit it.  A TextView
167 * To allow users to copy some or all of the TextView's value and paste it somewhere else, set the
171 * allows users to make selection gestures in the TextView, which in turn triggers the system's
176 * See {@link android.R.styleable#TextView TextView Attributes},
252 public class TextView extends View implements ViewTreeObserver.OnPreDrawListener {
253 static final String LOG_TAG = "TextView";
298 // New state used to change background based on whether this TextView is multiline.
467 public void setErrorDrawable(Drawable dr, TextView tv) {
633 // they are defined by the TextView's style and are theme-dependent.
692 boolean onEditorAction(TextView v, int actionId, KeyEvent event);
695 public TextView(Context context) {
699 public TextView(Context context, @Nullable AttributeSet attrs) {
703 public TextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
708 public TextView(
750 * almost every TextView has one and it greatly simplifies the logic
862 attrs, com.android.internal.R.styleable.TextView, defStyleAttr, defStyleRes);
1602 // Hide the soft input if the currently active TextView is disabled
1673 * Return the text the TextView is displaying. If setText() was called with
1688 * Returns the length, in characters, of the text managed by this TextView
1695 * Return the text the TextView is displaying as an Editable object. If
1732 * with this TextView. By default there is no associated UndoManager, so null
1733 * is returned. One can be associated with the TextView through
1753 * Associate an {@link android.content.UndoManager} with this TextView. Once
1754 * done, all edit operations on the TextView will result in appropriate
1759 * this TextView, or null to clear any existing association.
1760 * @param tag String tag identifying this particular TextView owner in the
1776 * @return the current key listener for this TextView.
1791 * Sets the key listener to be used with this TextView. This can be null
1799 * Be warned that if you want a TextView with a key listener or movement
1800 * method not to be focusable, or if you want a TextView without a
1849 * @return the movement method being used for this TextView.
1858 * this TextView. This can be null to disallow using the arrow keys
1861 * Be warned that if you want a TextView with a key listener or movement
1862 * method not to be focusable, or if you want a TextView without a
1896 * @return the current transformation method for this TextView.
1909 * TextView is displaying.
2868 * Get the default primary {@link Locale} of the text in this TextView. This will always be
2870 * @return the default primary {@link Locale} of the text in this TextView.
2878 * Get the default {@link LocaleList} of the text in this TextView.
2879 * @return the default {@link LocaleList} of the text in this TextView.
2887 * Set the default {@link LocaleList} of the text in this TextView to a one-member list
2905 * Set the default {@link LocaleList} of the text in this TextView to the given value.
2939 * @return the size (in pixels) of the default text size in this TextView.
2947 * @return the size (in scaled pixels) of thee default text size in this TextView.
3082 * Set the TextView's elegant height metrics flag. This setting selects font
3152 * TextView is {@link Layout#BREAK_STRATEGY_HIGH_QUALITY}, and the default value for
3180 * Sets the hyphenation frequency. The default value for both TextView and EditText, which is set
3273 * Gets the text colors for the different states (normal, selected, focused) of the TextView.
3321 * TextView gets focused. The default is true.
3331 * TextView gets focused. The default is true.
3479 * TextView.
3509 * @return the color of the hint text, for the different states of this TextView.
3563 * this TextView
3577 * in the TextView beyond what is required for the text itself.
3615 * Returns the horizontal and vertical alignment of this TextView.
3680 * Makes the TextView at least this many lines tall.
3682 * Setting this value overrides any other (minimum) height setting. A single line TextView will
3699 * @return the minimum number of lines displayed in this TextView, or -1 if the minimum
3711 * Makes the TextView at least this many pixels tall.
3727 * @return the minimum height of this TextView expressed in pixels, or -1 if the minimum
3739 * Makes the TextView at most this many lines tall.
3755 * @return the maximum number of lines displayed in this TextView, or -1 if the maximum
3767 * Makes the TextView at most this many pixels tall. This option is mutually exclusive with the
3784 * @return the maximum height of this TextView expressed in pixels, or -1 if the maximum
3796 * Makes the TextView exactly this many lines tall.
3799 * height setting. A single line TextView will set this value to 1.
3813 * Makes the TextView exactly this many pixels tall.
3832 * Makes the TextView at least this many ems wide
3846 * @return the minimum width of the TextView, expressed in ems or -1 if the minimum width
3859 * Makes the TextView at least this many pixels wide
3873 * @return the minimum width of the TextView, in pixels or -1 if the minimum width
3886 * Makes the TextView at most this many ems wide
3900 * @return the maximum width of the TextView, expressed in ems or -1 if the maximum width
3913 * Makes the TextView at most this many pixels wide
3927 * @return the maximum width of the TextView, in pixels or -1 if the maximum width
3940 * Makes the TextView exactly this many ems wide
3959 * Makes the TextView exactly this many pixels wide.
3980 * Sets line spacing for this TextView. Each line will have its height
4016 * @return the extra space that is added to the height of each lines of this TextView.
4028 * Convenience method: Append the specified text to the TextView's
4037 * Convenience method: Append the specified text slice to the TextView's
4300 * Sets the string value of the TextView. TextView <em>does not</em> accept
4329 * Sets the text that this TextView is to display (see
4497 * Sets the TextView to display the specified slice of the specified
4500 * since the TextView has no way to know that the text
4532 * Like {@link #setText(CharSequence, android.widget.TextView.BufferType)},
4535 * @see #setText(CharSequence, android.widget.TextView.BufferType)
4563 * Sets the text to be displayed when the text of the TextView is empty.
4588 * Sets the text to be displayed when the text of the TextView is empty,
4599 * Returns the hint that is displayed when the text of the TextView
5069 * Sets the right-hand compound drawable of the TextView to the "error"
5071 * the TextView has focus. The icon and error message will be reset to
5072 * null when any key events cause changes to the TextView's text. If the
5090 * Sets the right-hand compound drawable of the TextView to the specified
5092 * the TextView has focus. The icon and error message will be reset to
5093 * null when any key events cause changes to the TextView's text. The
5511 final TextView.Drawables drawables = mDrawables;
5571 * to allow users to select and copy text in a non-editable TextView, the content of an
5575 * @return True if the text displayed in this TextView can be selected by the user.
5587 * When you use a TextView to display a useful piece of information to the user (such as a
5605 * @param selectable Whether the content of this TextView should be selectable.
5640 // Disable pressed state, which was introduced when TextView was made clickable.
6511 * If this TextView contains editable content, extract a portion of it
6542 setText(text.text, TextView.BufferType.EDITABLE);
7011 * Set whether the TextView includes extra top and bottom padding to make
7032 * Gets whether the TextView includes extra top and bottom padding to make
7653 * TextView contains spannable text; otherwise it will do nothing.
7926 * TextView has marquee enabled. Set to -1 to repeat indefinitely.
7938 * TextView has marquee enabled.
7961 * Set the TextView so that when it takes focus, all the text is
7978 * makes sense for editable TextView.
8000 * @return whether or not the cursor is visible (assuming this TextView is editable)
8079 * @param text The text the TextView is displaying
8102 * whenever this TextView's text changes.
8120 * whenever this TextView's text changes.
8564 * @return True iff this TextView contains a text that can be edited, or if this is
8565 * a selectable TextView.
8711 // must have been obtained using the TextView filter array which is not
8714 final TypedArray a = context.obtainStyledAttributes(R.styleable.TextView);
8797 * TextView. {@link #textCanBeSelected()} has to be true (this is one of the conditions to have
8806 * Test based on the <i>intrinsic</i> charateristics of the TextView.
8835 * in this TextView, based on the current spell checker settings,
8837 * Please note that a word iterator in this TextView is different from another word iterator
8838 * used by SpellChecker.java of TextView. This method should be used for the former.
8849 * @return true if this TextView is specialized for showing and interacting with the extracted
8862 * @return The locale that should be used for a spell checker in this TextView,
8936 return TextView.class.getName();
9019 // Extract style information that applies to the TextView as a whole.
9029 // Global styles can also be set via TextView.setPaintFlags().
9041 // TextView does not have its own text background color. A background is either part
9441 * Return whether or not suggestions are enabled on this TextView. The suggestions are generated
9447 * TextView.
9499 * <p>Note that text selection mode is not started when a TextView receives focus and the
9537 * <p>Note that text insertion mode is not started when a TextView receives focus and the
9748 TextView.this.requestFocus();
9916 * A standard TextView (as well as buttons, checkboxes...) should not qualify and hence will
10036 * User interface state that is stored by TextView for implementing
10076 String str = "TextView.SavedState{"
10208 private final WeakReference<TextView> mView;
10223 Marquee(TextView v) {
10226 mView = new WeakReference<TextView>(v);
10265 final TextView textView = mView.get();
10266 if (textView != null && (textView.isFocused() || textView.isSelected())) {
10278 textView.invalidate();
10292 final TextView textView = mView.get();
10293 if (textView != null) textView.invalidate();
10302 final TextView textView = mView.get();
10303 if (textView != null && textView.mLayout != null) {
10306 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() -
10307 textView.getCompoundPaddingRight();
10308 final float lineWidth = textView.mLayout.getLineWidth(0);
10316 textView.invalidate();
10365 TextView.this.sendBeforeTextChanged(buffer, start, before, after);
10371 TextView.this.handleTextChanged(buffer, start, before, after);
10382 TextView.this.sendAfterTextChanged(buffer);
10385 MetaKeyKeyListener.stopSelecting(TextView.this, buffer);
10392 TextView.this.spanChange(buf, what, s, st, e, en);
10398 TextView.this.spanChange(buf, what, -1, s, -1, e);
10404 TextView.this.spanChange(buf, what, s, -1, e, -1);