Class DynamicInputUtils
- java.lang.Object
-
- com.pranavpandey.android.dynamic.util.DynamicInputUtils
-
public class DynamicInputUtils extends java.lang.ObjectHelper class to perform input operations.
-
-
Constructor Summary
Constructors Constructor Description DynamicInputUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidremoveFilter(android.view.View view, android.text.InputFilter filter)Remove the input filter for the supplied view.static voidsetAllCaps(android.view.View view, boolean allCaps)Set the all caps input filter for the supplied view.static voidsetFilter(android.view.View view, android.text.InputFilter filter)Set the input filter for the supplied view.static voidsetMaxLength(android.view.View view, int length)Set the maximum length input filter for the supplied view.
-
-
-
Method Detail
-
setFilter
public static void setFilter(@Nullable android.view.View view, @Nullable android.text.InputFilter filter)Set the input filter for the supplied view.- Parameters:
view- The view to be used.filter- The input filter to be set.
-
removeFilter
public static void removeFilter(@Nullable android.view.View view, @Nullable android.text.InputFilter filter)Remove the input filter for the supplied view.- Parameters:
view- The view to be used.filter- The input filter to be removed.
-
setMaxLength
public static void setMaxLength(@Nullable android.view.View view, int length)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:
setFilter(View, InputFilter)
-
setAllCaps
public static void setAllCaps(@Nullable android.view.View view, boolean allCaps)Set the all caps input filter for the supplied view.- Parameters:
view- The view to be used.allCaps-trueto set all caps.- See Also:
setFilter(View, InputFilter),removeFilter(View, InputFilter)
-
-