IT. Expert System.

Android Reference

InputFilter.LengthFilter


android.text

Class InputFilter.LengthFilter

  • All Implemented Interfaces:
    InputFilter
    Enclosing interface:
    InputFilter


    public static class InputFilter.LengthFilter
    extends Object
    implements InputFilter
    This filter will constrain edits not to make the length of the text greater than the specified length.
    • Constructor Detail

      • InputFilter.LengthFilter

        public InputFilter.LengthFilter(int max)
    • Method Detail

      • filter

        public CharSequence filter(CharSequence source,
                          int start,
                          int end,
                          Spanned dest,
                          int dstart,
                          int dend)
        Description copied from interface: InputFilter
        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.
        Specified by:
        filter in interface InputFilter


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: 654 / . Delta: 0.00884 с