floatingsearchview
floatingsearchview copied to clipboard
change imput type in edit text
i want to set the type text search just number i have search to solved this problem but the edit text view in the class FloatingSearchView is private
You need to edit SearchInputView.java
file. You can locate it here <library-path>/src/main/java/com/arlib/floatingsearchview/util/view/SearchInputView.java
. Override the setInputType
of base class and call it inside init()
method.
add the following function:
@Override
public void setInputType(int t){
super.setInputType(t);
}
and append function call in init()
like this:
private void init() {
setOnKeyListener(mOnKeyListener);
setInputType(InputType.TYPE_CLASS_NUMBER);
}
jbhv12, where i found this file and how put back this changes in my project?. I can't edit this file on Android Studio, i found the floatingsearchview-x.x.x-sources.jar in the Gradle directory but cann't edit this. tks