yalantis / searchfilter Goto Github PK
View Code? Open in Web Editor NEWImplementing Search Filter Animation in Kotlin for Quora Meets LinkedIn, Our App Design Concept
Home Page: https://yalantis.com
Implementing Search Filter Animation in Kotlin for Quora Meets LinkedIn, Our App Design Concept
Home Page: https://yalantis.com
There is a way to change the cancel icon? I am using "setCancelIcon", but it is not working.
There is no way to change FilterItem corner radius outside of the library. I think it would be nice to have a property to change the radius value.
is possible to place the filter at bottom of the page, now its taking long space
I need to update text to show number of search results for each FilterItem
.
I can see only one way to do this with current API: recreate Filter
view each time I need to update any FilterItem
.
This method is ineffective and cause blinking on update (because of collapsing panel each time Filter
is built).
Is there any better solution?
kotlin.KotlinNullPointerException: null
at com.yalantis.filter.widget.Filter.onSaveInstanceState(Filter.kt:349)
at android.view.View.dispatchSaveInstanceState(View.java:20183)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:4014)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:4020)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:4020)
at android.view.View.saveHierarchyState(View.java:20166)
at androidx.fragment.app.FragmentManagerImpl.saveFragmentViewState(FragmentManagerImpl.java:2273)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:951)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:434)
at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2076)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1866)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1821)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727)
at androidx.fragment.app.FragmentManagerImpl$2.run(FragmentManagerImpl.java:150)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7050)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Hi,
im using new androidx libary and i keep get this exception -
kotlin.KotlinNullPointerException
at com.yalantis.filter.widget.Filter.onSaveInstanceState(Filter.kt:349)
i am unable to find the solution ,i want to select only one filter at a time i request . if i try to select multiple filters only the last will be selected
I'm with recyclerview-v7:26.1.0.
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper;
at com.yalantis.filter.animator.FiltersListItemAnimator.resetAnimation(FiltersListItemAnimator.kt:427)
at com.yalantis.filter.animator.FiltersListItemAnimator.animateRemove(FiltersListItemAnimator.kt:136)
at android.support.v7.widget.SimpleItemAnimator.animateDisappearance(SimpleItemAnimator.java:109)
at android.support.v7.widget.RecyclerView.animateDisappearance(RecyclerView.java:3931)
at android.support.v7.widget.RecyclerView$4.processDisappeared(RecyclerView.java:523)
at android.support.v7.widget.ViewInfoStore.process(ViewInfoStore.java:242)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3763)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3421)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3962)
at android.view.View.layout(View.java:19586)
at android.view.ViewGroup.layout(ViewGroup.java:6053)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:19586)
at android.view.ViewGroup.layout(ViewGroup.java:6053)
Hello!
I'm implemented SearchFilter like the example. When I load my fragment in first time, filter is expanded. I click in collapse button and the filter list collapse and expand quickly . In this moment, I can select a tag or click in collapse button and work correctly. It's a error?
mFilter = (Filter<Tag>) view.findViewById(R.id.filter); mFilter.setAdapter(new Adapter(getTags())); mFilter.setListener(this); mFilter.setNoSelectedItemText("Filtros de búsqueda"); mFilter.build();
Can it be collapse by default when loading the first time? Thanks
Is it possible to add a text in cancel buttons?
Thanks
when i convert my app to arabic it doesn't work it just create bad view.. and show no title in it..
Hi,
When i add SearchFilter
library and try to run app i get this error:
Program type already present: org.jetbrains.annotations.NotNull
Message{kind=ERROR, text=Program type already present: org.jetbrains.annotations.NotNull, sources=[Unknown source file], tool name=Optional.of(D8)}
I want to remember my last selection. And for that, I have to select som items programmatically. How do I do that?
Filter.onItemSelected(FilterItem) doesn't work properly.
@igalata Is it available on iOS?
Is there anyway to stop items being deselected? whilst in expandable or collapsed mode?
kotlin.KotlinNullPointerException
at com.yalantis.filter.widget.Filter.onSaveInstanceState(Filter.kt:349)
at android.view.View.dispatchSaveInstanceState(View.java:20650)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3961)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3967)
at android.view.View.saveHierarchyState(View.java:20633)
at androidx.fragment.app.FragmentStateManager.saveViewState(FragmentStateManager.java:721)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:330)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2106)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
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.