iammert / multisearchview Goto Github PK
View Code? Open in Web Editor NEWYet another built-in animated search view for Android.
Yet another built-in animated search view for Android.
Setting a style via xml doesn't really help in an app where the gui dynamically changes based on colors. I would enjoy the ability to tint the search icon and text via code.
Change Cursor color and the drawable color isn't working in style either in XML, is there any other workaround please let me know asap.
When using Android 12 tapping the search field no longer shows the virtual keyboard.
When clicking on the search icon (copen, close, open, close, ...), I randomly get the following error:
2020-03-22 21:18:39.640 7533-7533/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.levionsoftware.instagram_map, PID: 7533
java.lang.IllegalArgumentException: parameter must be a descendant of this view
at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:6414)
at android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:6336)
at android.widget.HorizontalScrollView.isWithinDeltaOfScreen(HorizontalScrollView.java:1724)
at android.widget.HorizontalScrollView.onSizeChanged(HorizontalScrollView.java:2125)
at android.view.View.sizeChange(View.java:23911)
at android.view.View.setBottom(View.java:17998)
at android.animation.PropertyValuesHolder.nCallIntMethod(Native Method)
at android.animation.PropertyValuesHolder.access$200(PropertyValuesHolder.java:38)
at android.animation.PropertyValuesHolder$IntPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1240)
at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:990)
at android.animation.ValueAnimator.animateBasedOnTime(ValueAnimator.java:1349)
at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1481)
at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:994)
at android.view.Choreographer.doCallbacks(Choreographer.java:794)
at android.view.Choreographer.doFrame(Choreographer.java:725)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:981)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7777)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1047)
i got this error after implementing this.
E/AndroidRuntime: FATAL EXCEPTION: main Process: pk.com.informatica.tkonnect, PID: 23427 java.lang.RuntimeException: Unable to start activity ComponentInfo{pk.com.informatica.tkonnect/pk.com.informatica.tkonnect.ui.home.MainActivity}: android.view.InflateException: Binary XML file line #15 in pk.com.informatica.tkonnect:layout/activity_main: Binary XML file line #166 in pk.com.informatica.tkonnect:layout/content_main: Error inflating class com.iammert.library.ui.multisearchviewlib.MultiSearchView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3304) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7520) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) Caused by: android.view.InflateException: Binary XML file line #15 in pk.com.informatica.tkonnect:layout/activity_main: Binary XML file line #166 in pk.com.informatica.tkonnect:layout/content_main: Error inflating class com.iammert.library.ui.multisearchviewlib.MultiSearchView Caused by: android.view.InflateException: Binary XML file line #166 in pk.com.informatica.tkonnect:layout/content_main: Error inflating class com.iammert.library.ui.multisearchviewlib.MultiSearchView Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:343) at android.view.LayoutInflater.createView(LayoutInflater.java:858) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1010) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1127) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1130) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1267) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1267) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1130) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.inflate(LayoutInflater.java:686) at android.view.LayoutInflater.inflate(LayoutInflater.java:538) at android.view.LayoutInflater.inflate(LayoutInflater.java:481) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170) at pk.com.informatica.tkonnect.ui.home.MainActivity.onCreate(MainActivity.kt:72) at android.app.Activity.performCreate(Activity.java:7893) at android.app.Activity.performCreate(Activity.java:7880) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) E/AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7520) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/databinding/DataBinderMapperImpl; at androidx.databinding.DataBindingUtil.<clinit>(DataBindingUtil.java:32) at androidx.databinding.DataBindingUtil.inflate(DataBindingUtil.java:95) at com.iammert.library.ui.multisearchviewlib.extensions.DataBindingExtensionsKt.inflate(DataBindingExtensions.kt:17) at com.iammert.library.ui.multisearchviewlib.extensions.DataBindingExtensionsKt.inflate$default(DataBindingExtensions.kt:16) at com.iammert.library.ui.multisearchviewlib.MultiSearchView.<init>(MultiSearchView.kt:23) at com.iammert.library.ui.multisearchviewlib.MultiSearchView.<init>(MultiSearchView.kt:9) at com.iammert.library.ui.multisearchviewlib.MultiSearchView.<init>(Unknown Source:6) ... 38 more Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.databinding.DataBinderMapperImpl" on path: DexPathList[[zip file "/data/app/pk.com.informatica.tkonnect-97ae8aK8Zl_QasSvSudVhw==/base.apk"],nativeLibraryDirectories=[/data/app/pk.com.informatica.tkonnect-97ae8aK8Zl_QasSvSudVhw==/lib/arm64, /system/lib64, /product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 45 more
I tried implementing this library in my project and it compiled correctly but crashed when the app started and said something about not finding a databinding class.
ClassNotFoundException: Didn't find class "androidx.databinding.DataBinderMapperImpl"
This would help trigger onscreen keyboards or other options to tie in with the view visibility
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.databinding.DataBinderMapperImpl" on path: DexPathList[
Request to add some reference or function to edit the search icon and its color
It would be great to have a getter method (getEditText) for the MultiSearchView container so we can have more control and display of the EditText. I need to have dynamic control to programmatically modify it outside of XML in res.
how to set "search text" prorgrammatically in searchbar ?
Hi,
How can I add programatically existing search results like on the video demo Popular, Newest etc?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.