MaterialSearchView
MaterialSearchView copied to clipboard
Line below the search view
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.
It is not related, but I didn't consider this scenario. Will fix asap.
@MiguelCatalan Thanks! I'll wait for the fix and BTW they look more weird on KitKat.
@MiguelCatalan When is the fix coming?
@AkshayChordiya Are you using AppBarLayout?
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 .
The elevation line is still there.
NOT FIXED YET.
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 thanks for the trick