Class DynamicInputUtils
java.lang.Object
com.pranavpandey.android.dynamic.util.DynamicInputUtils
Helper class to perform input operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
removeFilter
(View view, InputFilter filter) Remove the input filter for the supplied view.static void
setAllCaps
(View view, boolean allCaps) Set the all caps input filter for the supplied view.static void
setFilter
(View view, InputFilter filter) Set the input filter for the supplied view.static void
setMaxLength
(View view, int length) Set the maximum length input filter for the supplied view.
-
Constructor Details
-
DynamicInputUtils
public DynamicInputUtils()
-
-
Method Details
-
setFilter
Set the input filter for the supplied view.- Parameters:
view
- The view to be used.filter
- The input filter to be set.
-
removeFilter
Remove the input filter for the supplied view.- Parameters:
view
- The view to be used.filter
- The input filter to be removed.
-
setMaxLength
Set the maximum length input filter for the supplied view.- Parameters:
view
- The view to be used.length
- The maximum length to be set.- See Also:
-
setAllCaps
Set the all caps input filter for the supplied view.- Parameters:
view
- The view to be used.allCaps
-true
to set all caps.- See Also:
-