IT. Expert System.

Android Reference

InputFilter


android.text

Interface InputFilter

    • Nested Class Summary

      Nested Classes
      Modifier and Type Interface and Description
      static class InputFilter.AllCaps
      This filter will capitalize all the lower case letters that are added through edits.
      static class InputFilter.LengthFilter
      This filter will constrain edits not to make the length of the text greater than the specified length.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend)
      This method is called when the buffer is going to replace the range dstart … dend of dest with the new text from the range start … end of source.
    • Method Detail

      • filter

        CharSequence filter(CharSequence source,
                          int start,
                          int end,
                          Spanned dest,
                          int dstart,
                          int dend)
        This method is called when the buffer is going to replace the range dstart … dend of dest with the new text from the range start … end of source. Return the CharSequence that you would like to have placed there instead, including an empty string if appropriate, or null to accept the original replacement. Be careful to not to reject 0-length replacements, as this is what happens when you delete text. Also beware that you should not attempt to make any changes to dest from this method; you may only examine it for context. Note: If source is an instance of Spanned or Spannable, the span objects in the source should be copied into the filtered result (i.e. the non-null return value). TextUtils.copySpansFrom(android.text.Spanned, int, int, java.lang.Class, android.text.Spannable, int) can be used for convenience.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2287 / . Delta: 0.07621 с