renaudcerrato / floatingsearchview Goto Github PK
View Code? Open in Web Editor NEWYet another floating search view implementation, also known as persistent search.
License: Apache License 2.0
Yet another floating search view implementation, also known as persistent search.
License: Apache License 2.0
Hello,
is it possible to hide FSV when scrolling down the .
I would like to achieve similar effect as Google Play with the searchview on its main page. But as this widget is not like a toolbar and it should be above the content I cannot place it inside AppBarLayout.
If I do so, the AppBarLayout takes height of entire display.
My layout looks like this:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start" >
<android.support.design.widget.CoordinatorLayout
android:id="@+id/coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lorem_ipsum"
/>
</LinearLayout>
</ScrollView>
<com.mypopsy.widget.FloatingSearchView
android:id="@+id/fsv_search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="@dimen/search_view_inset_top"
android:paddingRight="@dimen/search_view_inset"
android:paddingLeft="@dimen/search_view_inset"
app:logo="@drawable/logo"
android:theme="@style/CustomFloatingSearchViewTheme"
app:fsv_contentBackgroundColor="@color/searchbox_background"
app:layout_scrollFlags="scroll|enterAlways"
/>
</android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
Thank you.
Importing the library in android studio creates a class could not be instantiated error while rendering. any solutions?
I need to show search results from my own server not from google.I am getting values from my server and storing it in hashmap array.how can i add this to search adapter and showing as search results.
Cant get this lib with gradle in android studio. Link is probably down.
Is it possible to put it like a persistent search bar? above the toolbar.
I can't figure it out how to do it.
Is it possible to change the height of the search edit text?
Can you add a XML property or a way to change it programmatically?
Thanks
Hello
public void onSearchAction(CharSequence text) is being called twice when the search of the keyboard is clicked
how can we stop that ?
Thank you
How can we put the search view in the bottom? is it possible?
Would you mind posting a sample code for adding suggestion functionality to the search
It should first, by default, collapse the search menu on back key. I want to exit the search but it exits the activity or fragment. I am facing the problem in a fragment. The fragment is poped and I can't override setOnKeyListener
on the FloatingSearchView.
Its a good useful library. Your demo app works perfectly .But following the steps for adding it in Android studio doesn't work. Do I need to use library to build on my own system!? Many layout errors I get. What minimum to do to use it with sqlite database but not online search!? Any example link will also be helpful.
... please migrate to the Google Custom Search API.
This exception occurs when you type anything in the searchText
FSV is the centerpiece of my application, mostly due to the way it handles icons beautifully. However, once I moved FSV into a fragment, instead of an activity, the icons stopped showing up as in the demo, and started showing up like regular android menus.
This is what it looks like with the menu from the sample:
Here's the widget as defined in my Fragment's XML:
<com.mypopsy.widget.FloatingSearchView
android:id="@+id/uiSearch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="35dp"
android:layout_marginRight="35dp"
android:layout_marginTop="150dp"
android:background="#90000000"
android:hint="@string/search"
android:translationZ="12dp"
app:fsv_contentBackgroundColor="@color/white"
app:fsv_cornerRadius="5dp"
app:fsv_menu="@menu/search"
tools:context=".MainActivity"/>
The menu items work when clicked on. The MenuProgressBar class doesn't show at all.
This may be a theming issue or unrelated to fragments. I'm not exactly sure.
I don't think it's relevant info, but I'm using Kotlin and Android Studio 3.
Is it possible to set the state to query mode without user clicking on the view to enable the search bar?
In FloatingSearchView how to avoid 'takes up the full height ' or any way to display results when the screen is initialized ? I just want avoid the empty blank screen below the FloatingSearchView screen!
Without using the suggestions, I want to use the searchview with a recyclerview under it. Anyone know how to position the recyclerview under the searchview?
to import.
if I called setRadius(50.0f),
the left will show a rect from actionMenu,
the rect covered the background(radius)
I tried using the sample app of this FloatingSearchView and it was working fine. What I want is to use this FloatingSearchView with ArrayList How can I do it ? Is it possible or not ? Please provide a sample code if possible. Thank You.
very interesting how do you handle the search requests using RxJava v1.x on sample project
can you upgrade it using RxJava2?, there are some variants between versions
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
Regards.
Hi,
I spent all the day try resolve it without any success..
I'm developing on Windows 8 machine with Android Studio, try to use your library in my application.
Adding the following lines:
root gradle file:
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
app gradle file:
dependencies {
...
compile 'com.github.renaudcerrato:FloatingSearchView:1.0.0'
}
Cause the following error:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not resolve com.github.renaudcerrato:FloatingSearchView:1.0.0.
Required by:
CashBackApp:app:unspecified
Could not resolve com.github.renaudcerrato:FloatingSearchView:1.0.0.
> Could not get resource 'https://jitpack.io/com/github/renaudcerrato/FloatingSearchView/1.0.0/FloatingSearchView-1.0.0.pom'.
> Could not GET 'https://jitpack.io/com/github/renaudcerrato/FloatingSearchView/1.0.0/FloatingSearchView-1.0.0.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
No matter what I tried - nothing fix it:
Did you face this problem? Can you help with that?
I will be very thankful!
Thanks
Great widget! but is it possible to use this library adding a small portion of code in the Activity? and creating a simple adapter?? In the readme you are saying that you could set the adapter and it should work, but this is not true, according to the sample you have to create multiple helper classes and do a lot by yourself.
can you please provide a simpler example?
Thanks a lot!
DrawableWrapper crashes after updating to support lib 27.1.0
Fatal Exception: java.lang.NoClassDefFoundErrorFailed resolution of: Landroid/support/v4/graphics/drawable/DrawableWrapper; Raw Text
--
| com.mypopsy.widget.FloatingSearchView.unwrap (SourceFile:621)
| com.mypopsy.widget.FloatingSearchView.fadeIn (SourceFile:452)
| com.mypopsy.widget.FloatingSearchView.setActivated (SourceFile:356)
| com.mypopsy.widget.FloatingSearchView$4.onFocusChange (SourceFile:261)
Caused by java.lang.ClassNotFoundException
Didn't find class "android.support.v4.graphics.drawable.DrawableWrapper" on path: DexPathList[[zip file "/data/app/se.aftonbladet.viktklubb.loggbok-1/base.apk"],nativeLibraryDirectories=[/data/app/se.aftonbladet.viktklubb.loggbok-1/lib/arm64, /system/lib64, /vendor/lib64]]
Error:(18) No resource identifier found for attribute 'layoutManager' in package 'com.appiconhider'
On Samsung S6 (SM-G920F) if you set "imeOptions" as "actionSearch" onKey doesn't triggered when no text in search view. However it triggered when there is any text or "imeOptions" not set.
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.