arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 667 forks source link

make background color customizable #146

Closed whollacsek closed 8 years ago

whollacsek commented 8 years ago

It'd be nice to be able to customize the background color through an attr. For example set the background to a solid color mimicking the behavior of Google Maps.

arimorty commented 8 years ago

Hi @whollacsek , There is an option for that floatingSearch_backgroundColor please look at the README at the bottom of the page.

Regards, Ari

whollacsek commented 8 years ago

hi @arimorty what your are suggesting is changing the background color of the search bar and the suggestion section. What I'm proposing is to be able to change the color of the entire background, instead of dimming the background as right now.

arimorty commented 8 years ago

In that case, you can just set the floatingSearch_dimBackground attribute to false and then implement a background on your own. My opinion is that making the background white is considered a client-side feature from the library's perspective.

whollacsek commented 8 years ago

Ok I understand, what I did is wrapping the FloatingSearchView in a FrameLayout.