Home | History | Annotate | Download | only in widget

Lines Matching defs:TextView

144  * Displays text to the user and optionally allows them to edit it.  A TextView
150 * To allow users to copy some or all of the TextView's value and paste it somewhere else, set the
154 * allows users to make selection gestures in the TextView, which in turn triggers the system's
159 * See {@link android.R.styleable#TextView TextView Attributes},
231 public class TextView extends View implements ViewTreeObserver.OnPreDrawListener {
232 static final String LOG_TAG = "TextView";
277 // New state used to change background based on whether this TextView is multiline.
410 public void setErrorDrawable(Drawable dr, TextView tv) {
571 // they are defined by the TextView's style and are theme-dependent.
617 boolean onEditorAction(TextView v, int actionId, KeyEvent event);
620 public TextView(Context context) {
624 public TextView(Context context, AttributeSet attrs) {
628 public TextView(Context context, AttributeSet attrs, int defStyleAttr) {
633 public TextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
671 * almost every TextView has one and it greatly simplifies the logic
781 attrs, com.android.internal.R.styleable.TextView, defStyleAttr, defStyleRes);
1431 // Hide the soft input if the currently active TextView is disabled
1502 * Return the text the TextView is displaying. If setText() was called with
1517 * Returns the length, in characters, of the text managed by this TextView
1524 * Return the text the TextView is displaying as an Editable object. If
1561 * with this TextView. By default there is no associated UndoManager, so null
1562 * is returned. One can be associated with the TextView through
1572 * Associate an {@link android.content.UndoManager} with this TextView. Once
1573 * done, all edit operations on the TextView will result in appropriate
1578 * this TextView, or null to clear any existing association.
1579 * @param tag String tag identifying this particular TextView owner in the
1605 * @return the current key listener for this TextView.
1620 * Sets the key listener to be used with this TextView. This can be null
1628 * Be warned that if you want a TextView with a key listener or movement
1629 * method not to be focusable, or if you want a TextView without a
1678 * @return the movement method being used for this TextView.
1687 * this TextView. This can be null to disallow using the arrow keys
1690 * Be warned that if you want a TextView with a key listener or movement
1691 * method not to be focusable, or if you want a TextView without a
1725 * @return the current transformation method for this TextView.
1738 * TextView is displaying.
2571 * Get the default {@link Locale} of the text in this TextView.
2572 * @return the default {@link Locale} of the text in this TextView.
2579 * Set the default {@link Locale} of the text in this TextView to the given value. This value
2592 * @return the size (in pixels) of the default text size in this TextView.
2600 * @return the size (in scaled pixels) of thee default text size in this TextView.
2734 * Set the TextView's elegant height metrics flag. This setting selects font
2850 * Gets the text colors for the different states (normal, selected, focused) of the TextView.
2896 * TextView gets focused. The default is true.
2906 * TextView gets focused. The default is true.
3050 * TextView.
3080 * @return the color of the hint text, for the different states of this TextView.
3133 * this TextView
3147 * in the TextView beyond what is required for the text itself.
3185 * Returns the horizontal and vertical alignment of this TextView.
3250 * Makes the TextView at least this many lines tall.
3252 * Setting this value overrides any other (minimum) height setting. A single line TextView will
3269 * @return the minimum number of lines displayed in this TextView, or -1 if the minimum
3281 * Makes the TextView at least this many pixels tall.
3297 * @return the minimum height of this TextView expressed in pixels, or -1 if the minimum
3309 * Makes the TextView at most this many lines tall.
3325 * @return the maximum number of lines displayed in this TextView, or -1 if the maximum
3337 * Makes the TextView at most this many pixels tall. This option is mutually exclusive with the
3354 * @return the maximum height of this TextView expressed in pixels, or -1 if the maximum
3366 * Makes the TextView exactly this many lines tall.
3369 * height setting. A single line TextView will set this value to 1.
3383 * Makes the TextView exactly this many pixels tall.
3402 * Makes the TextView at least this many ems wide
3416 * @return the minimum width of the TextView, expressed in ems or -1 if the minimum width
3429 * Makes the TextView at least this many pixels wide
3443 * @return the minimum width of the TextView, in pixels or -1 if the minimum width
3456 * Makes the TextView at most this many ems wide
3470 * @return the maximum width of the TextView, expressed in ems or -1 if the maximum width
3483 * Makes the TextView at most this many pixels wide
3497 * @return the maximum width of the TextView, in pixels or -1 if the maximum width
3510 * Makes the TextView exactly this many ems wide
3529 * Makes the TextView exactly this many pixels wide.
3550 * Sets line spacing for this TextView. Each line will have its height
3586 * @return the extra space that is added to the height of each lines of this TextView.
3598 * Convenience method: Append the specified text to the TextView's
3607 * Convenience method: Append the specified text slice to the TextView's
3868 * Sets the string value of the TextView. TextView <em>does not</em> accept
3897 * Sets the text that this TextView is to display (see
4064 * Sets the TextView to display the specified slice of the specified
4067 * since the TextView has no way to know that the text
4099 * Like {@link #setText(CharSequence, android.widget.TextView.BufferType)},
4102 * @see #setText(CharSequence, android.widget.TextView.BufferType)
4130 * Sets the text to be displayed when the text of the TextView is empty.
4155 * Sets the text to be displayed when the text of the TextView is empty,
4166 * Returns the hint that is displayed when the text of the TextView
4607 * Sets the right-hand compound drawable of the TextView to the "error"
4609 * the TextView has focus. The icon and error message will be reset to
4610 * null when any key events cause changes to the TextView's text. If the
4628 * Sets the right-hand compound drawable of the TextView to the specified
4630 * the TextView has focus. The icon and error message will be reset to
4631 * null when any key events cause changes to the TextView's text. The
5069 final TextView.Drawables drawables = mDrawables;
5129 * to allow users to select and copy text in a non-editable TextView, the content of an
5133 * @return True if the text displayed in this TextView can be selected by the user.
5145 * When you use a TextView to display a useful piece of information to the user (such as a
5163 * @param selectable Whether the content of this TextView should be selectable.
5198 // Disable pressed state, which was introduced when TextView was made clickable.
6010 * If this TextView contains editable content, extract a portion of it
6041 setText(text.text, TextView.BufferType.EDITABLE);
6498 * Set whether the TextView includes extra top and bottom padding to make
6519 * Gets whether the TextView includes extra top and bottom padding to make
7140 * TextView contains spannable text; otherwise it will do nothing.
7402 * TextView has marquee enabled. Set to -1 to repeat indefinitely.
7414 * TextView has marquee enabled.
7437 * Set the TextView so that when it takes focus, all the text is
7454 * makes sense for editable TextView.
7476 * @return whether or not the cursor is visible (assuming this TextView is editable)
7555 * @param text The text the TextView is displaying
7578 * whenever this TextView's text changes.
7596 * whenever this TextView's text changes.
8025 * @return True iff this TextView contains a text that can be edited, or if this is
8026 * a selectable TextView.
8191 // must have been obtained using the TextView filter array which is not
8194 final TypedArray a = context.obtainStyledAttributes(R.styleable.TextView);
8259 * TextView. {@link #textCanBeSelected()} has to be true (this is one of the conditions to have
8268 * Test based on the <i>intrinsic</i> charateristics of the TextView.
8297 * in this TextView, based on the current spell checker settings,
8299 * Please note that a word iterator in this TextView is different from another word iterator
8300 * used by SpellChecker.java of TextView. This method should be used for the former.
8315 * @return The locale that should be used for a spell checker in this TextView,
8393 event.setClassName(TextView.class.getName());
8408 info.setClassName(TextView.class.getName());
8484 // Simulate TextView.onTouchEvent for an ACTION_UP event.
8680 * Return whether or not suggestions are enabled on this TextView. The suggestions are generated
8686 * TextView.
8736 * Note that text selection mode is not started when a TextView receives focus and the
8881 TextView.this.requestFocus();
9017 * A standard TextView (as well as buttons, checkboxes...) should not qualify and hence will
9116 * User interface state that is stored by TextView for implementing
9148 String str = "TextView.SavedState{"
9277 private final WeakReference<TextView> mView;
9292 Marquee(TextView v) {
9295 mView = new WeakReference<TextView>(v);
9334 final TextView textView = mView.get();
9335 if (textView != null && (textView.isFocused() || textView.isSelected())) {
9347 textView.invalidate();
9361 final TextView textView = mView.get();
9362 if (textView != null) textView.invalidate();
9371 final TextView textView = mView.get();
9372 if (textView != null && textView.mLayout != null) {
9375 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() -
9376 textView.getCompoundPaddingRight();
9377 final float lineWidth = textView.mLayout.getLineWidth(0);
9385 textView.invalidate();
9434 TextView.this.sendBeforeTextChanged(buffer, start, before, after);
9440 TextView.this.handleTextChanged(buffer, start, before, after);
9451 TextView.this.sendAfterTextChanged(buffer);
9454 MetaKeyKeyListener.stopSelecting(TextView.this, buffer);
9461 TextView.this.spanChange(buf, what, s, st, e, en);
9467 TextView.this.spanChange(buf, what, -1, s, -1, e);
9473 TextView.this.spanChange(buf, what, s, -1, e, -1);