claudiodegio / msvsearch Goto Github PK
View Code? Open in Web Editor NEWMaterial Search View
Material Search View
A small issue that makes the library unusable with some other libraries. The res/values declares a textColor attribute that should be renamed.
Although there is no X button (right side) to remove text from the search bar.
msvSearchBackgroud instead of msvSearchBackground
The usage notes in the project README suggests that you use 1.0.0
. However 1.2.0
seems to be the latest (jitpack knows of a 1.3.0
, but it's in an error state). Ideally, the docs show users the version that you want them using, and I assume that right now we should be using 1.2.0
.
After adding a filter, the list of filters doesn't show up anymore.
I have this issue when trying to add FilterMaterialSearchView in my xml
I'm using custom drawable that aren't defined in my ressources.
Hi,
I think application
node should be only in sample module, not in the library. It can cause some issues (eg android:allowBackup="true"
is up to the "application" module)
05-10 13:31:17.449 20384-20384/pl.krisdev.android.apps.hermes.school E/Parcel: Class not found when unmarshalling: com.claudiodegio.msv.BaseMaterialSearchView$BaseMSVSavedState
java.lang.ClassNotFoundException: com.claudiodegio.msv.BaseMaterialSearchView$BaseMSVSavedState
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at android.os.Parcel.readParcelableCreator(Parcel.java:2383)
at android.os.Parcel.readParcelable(Parcel.java:2337)
at android.view.AbsSavedState.<init>(AbsSavedState.java:57)
at android.view.View$BaseSavedState.<init>(View.java:21614)
at android.view.View$BaseSavedState$1.createFromParcel(View.java:21636)
at android.view.View$BaseSavedState$1.createFromParcel(View.java:21634)
at android.os.Parcel.readParcelable(Parcel.java:2346)
at android.os.Parcel.readValue(Parcel.java:2243)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2653)
at android.os.Parcel.readSparseArray(Parcel.java:1946)
at android.os.Parcel.readValue(Parcel.java:2300)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2592)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:856)
at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2051)
at android.app.Activity.onRestoreInstanceState(Activity.java:1009)
at android.app.Activity.performRestoreInstanceState(Activity.java:964)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1164)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2407)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: java.lang.ClassNotFoundException: com.claudiodegio.msv.BaseMaterialSearchView$BaseMSVSavedState
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:324)
at android.os.Parcel.readParcelableCreator(Parcel.java:2383)
at android.os.Parcel.readParcelable(Parcel.java:2337)
at android.view.AbsSavedState.<init>(AbsSavedState.java:57)
at android.view.View$BaseSavedState.<init>(View.java:21614)
at android.view.View$BaseSavedState$1.createFromParcel(View.java:21636)
at android.view.View$BaseSavedState$1.createFromParcel(View.java:21634)
at android.os.Parcel.readParcelable(Parcel.java:2346)
at android.os.Parcel.readValue(Parcel.java:2243)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2653)
at android.os.Parcel.readSparseArray(Parcel.java:1946)
at android.os.Parcel.readValue(Parcel.java:2300)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2592)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:856)
at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2051)
at android.app.Activity.onRestoreInstanceState(Activity.java:1009)
at android.app.Activity.performRestoreInstanceState(Activity.java:964)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1164)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2407)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
05-10 13:31:17.452 20384-20384/pl.krisdev.android.apps.hermes.school D/AndroidRuntime: Shutting down VM
05-10 13:31:17.453 20384-20384/pl.krisdev.android.apps.hermes.school E/AndroidRuntime: FATAL EXCEPTION: main
Process: pl.krisdev.android.apps.hermes.school, PID: 20384
java.lang.RuntimeException: Unable to start activity ComponentInfo{pl.krisdev.android.apps.hermes.school/pl.krisdev.android.apps.hermes.school.activities.MainActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.claudiodegio.msv.BaseMaterialSearchView$BaseMSVSavedState
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.claudiodegio.msv.BaseMaterialSearchView$BaseMSVSavedState
at android.os.Parcel.readParcelableCreator(Parcel.java:2411)
at android.os.Parcel.readParcelable(Parcel.java:2337)
at android.view.AbsSavedState.<init>(AbsSavedState.java:57)
at android.view.View$BaseSavedState.<init>(View.java:21614)
at android.view.View$BaseSavedState$1.createFromParcel(View.java:21636)
at android.view.View$BaseSavedState$1.createFromParcel(View.java:21634)
at android.os.Parcel.readParcelable(Parcel.java:2346)
at android.os.Parcel.readValue(Parcel.java:2243)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2653)
at android.os.Parcel.readSparseArray(Parcel.java:1946)
at android.os.Parcel.readValue(Parcel.java:2300)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2592)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:856)
at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2051)
at android.app.Activity.onRestoreInstanceState(Activity.java:1009)
at android.app.Activity.performRestoreInstanceState(Activity.java:964)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1164)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2407)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
I want the searchview to save the recent search query and when the searchview opens I want it to be already shown. the problem is there's no access to the search EditText. any suggestions?
I believe 'usage' section of readme is incomplete. Can you write everything that is needed to launch full MsvSearch?
Hi! I'm trying to set the SearchView with some custom settings, so in my layout it is configured with "app:msvHint", "app:msvSearchBackground" and "app:msvTextColor".
The problem is that I can't compile because it generate "No resource identifier found for attribute [...] in package [...]".
How can I fix this?
(Also, there is a way to set an animation for the search bar closing?)
Thank you!
I have initialized SuggestionMaterialSearchView but I can't seem to find an event handler for items when clicked like : "onItemClickListener" or something like that. What can I do?
Sarebbe abbastanza utile poter avere la possibilità di selezionare molteplici filtri della stessa sezione, se ad esempio io avessi una sezione, che mi dice la specie animale, e io volessi vedere solo elefanti e leoni, ora non si può fare.
Good evening !
First of all... great library ! We wanted to use it in our current project... but we failed at implementing the FilteredMaterialSearchview... We added Sections & Filters the proper way... like in your example... but once we click on the searchview they just dont show up... no errors...
Any ideas ? We could really need some help !
I see on the Jitpack site that version 1.3.0 failed to build therefore 1.2.0 is the most recent one on there.
Hi,
I'm using the SuggestionMaterialSearchView
with a custom adapter (FastAdapter.
When cliking on item, the method public void onItemClick(RecyclerView rv, View view, int position)
is invoked and produce a crash (because of casting adapter to SearchSuggestRvAdapter
).
Right now, I don't find an "easy solution"; I need to create a custom View like SuggestionMaterialSearchView
.
I might be able to do a PR to fix that, but I would like to have your advice / thoughts about the problem.
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.