MaterialSearchView icon indicating copy to clipboard operation
MaterialSearchView copied to clipboard

Line below the search view

Open AkshayChordiya opened this issue 9 years ago • 9 comments

I guess this issue is quite similar to #14 but in case I'm setting a coloured background to the SearchView yet seeing a line below it. I tried setting elevation="0dp" which didn't seem to work

Check the screenshot below.

device-2015-12-11-201121

AkshayChordiya avatar Dec 11 '15 14:12 AkshayChordiya

It is not related, but I didn't consider this scenario. Will fix asap.

MiguelCatalan avatar Dec 12 '15 08:12 MiguelCatalan

@MiguelCatalan Thanks! I'll wait for the fix and BTW they look more weird on KitKat.

AkshayChordiya avatar Dec 12 '15 09:12 AkshayChordiya

@MiguelCatalan When is the fix coming?

AkshayChordiya avatar Dec 20 '15 08:12 AkshayChordiya

@AkshayChordiya Are you using AppBarLayout?

MiguelCatalan avatar Dec 20 '15 17:12 MiguelCatalan

Nope it's just simple TabLayout

​Regards , ​Akshay Chordiya

On Sun, Dec 20, 2015 at 10:34 PM, Miguel Catalan Bañuls < [email protected]> wrote:

Are you using AppBarLayout?

— Reply to this email directly or view it on GitHub https://github.com/MiguelCatalan/MaterialSearchView/issues/34#issuecomment-166135425 .

AkshayChordiya avatar Dec 21 '15 04:12 AkshayChordiya

The elevation line is still there.

adam-hurwitz avatar Apr 26 '17 01:04 adam-hurwitz

NOT FIXED YET.

wmgylc avatar Nov 09 '17 08:11 wmgylc

There's an option to fix/hide the line below the searchview. If you read the layout MaterialSearchView/library/src/main/res/layout/search_view.xml, inside of "search_top_bar" relativeLayout, at the bottom there's a view with a background and a height of 1dp. The key it's just hide that view.

To achive that we must get the view from our activity. But the problem comes when you realize that this view doesn't have any associated id. However, there's a tricky. Just copy the following code inside of your onCreate:

"ID_OF_YOUR_MATERIAL_SEARCH_VIEW".findViewById<RelativeLayout>(com.miguelcatalan.materialsearchview.R.id.search_top_bar).getChildAt(4).visibility = View.GONE

MGareta avatar Jul 04 '18 19:07 MGareta

@MGareta thanks for the trick

yzzzd avatar Oct 19 '18 04:10 yzzzd