Code Monkey home page Code Monkey logo

floatingsearchview's People

Contributors

nikitin-da avatar renaudcerrato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

floatingsearchview's Issues

Hide FSV when scrolling

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.

Custom search issue

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.

Change edit text height

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

search being called twice

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

Suggestions

Would you mind posting a sample code for adding suggestion functionality to the search

How to stop BackKey from exit or fragment pop when searching

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.

Not working following the steps given here

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.

MenuItems disappear when using FSV in a fragment

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:
image
image

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.

how to avoid takes up the full height while it's initialized

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?

95d8d5cc-4b84-11e6-8b2e-b070c15d2336

setRadius

if I called setRadius(50.0f),
the left will show a rect from actionMenu,
the rect covered the background(radius)

unable to find valid certification path to requested target

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.

BUILD FAILED

No matter what I tried - nothing fix it:

  1. Update Android Studio - 2.1(latest)
  2. Update gradle - 2.12(latest)
  3. Update Java 1.8.77(latest)
    4.Download jitpack certificate, generate keytool and run Android Studio with JVM params:-Djavax.net.ssl.keyStore=XXX

Did you face this problem? Can you help with that?

I will be very thankful!

Thanks

Why the sample is so complicated?

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

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]]

DIDNT COMPILED

Error:(18) No resource identifier found for attribute 'layoutManager' in package 'com.appiconhider'

Search empty query

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.

Hamburger toggle misbehaviour

The toggle does not finish animation or not doing animation at all (when i build release with minify enable). It happened when i build project on some PC but not some others.
screenshot_2016-03-08-17-30-41-260

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.