Do not want a margin, rounded corners and shadow
See original GitHub issueCan you please allow us to remove rounded corners, margin and shadow of search view? I mean this rect around of “Search”
This is an Android is 5.1, and below is the xml
<?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">
<RelativeLayout 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/parent_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".main">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/placeSnackBar"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/appbar"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_height="?attr/actionBarSize"
android:layout_width="match_parent"
app:layout_collapseMode="pin"/>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main" />
</android.support.design.widget.CoordinatorLayout>
<com.arlib.floatingsearchview.FloatingSearchView
android:id="@+id/floating_search_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
app:floatingSearch_backgroundColor="#69b366"
app:floatingSearch_leftActionColor="#ffffff"
app:floatingSearch_hintTextColor="#f0f0f0"
app:floatingSearch_viewTextColor="#ffffff"
app:theme="@style/AppTheme.AppBarOverlay"
app:floatingSearch_close_search_on_keyboard_dismiss="true"
app:floatingSearch_dimBackground="true"
app:floatingSearch_dismissOnOutsideTouch="true"
app:floatingSearch_leftActionMode="showHome"
app:floatingSearch_searchHint="Search..."
app:floatingSearch_showSearchKey="true"
app:floatingSearch_suggestionsListAnimDuration="250"/>
</RelativeLayout>
<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>
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Apply border-radius to box-shadow but not to the div itself
The problem with this CSS is that the border-radius is applied to the box-shadow as well as the div on the left side....
Read more >border-radius - CSS: Cascading Style Sheets - MDN Web Docs
The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners,...
Read more >border-radius - CSS-Tricks
You can give any element “rounded corners” by applying a border-radius through CSS. You'll only notice if there is a color change involved....
Read more >CSS Rounded Corners - W3Schools
The CSS border-radius property defines the radius of an element's corners. Tip: This property allows you to add rounded corners to elements! Here...
Read more >[css-backgrounds] The shape of box-shadow should be a ...
Maybe something like border-radius of .25px or less is treated the same as border-radius: 0. That way, this edge case of extremely small...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Zoarg not work, I’ve tried. There is no bottom option, so bottom line always on screen. Also it became upper because of fixed height of searchbar.
I fixed my problem by using margins. Here is example code which I put inside “<com.arlib.floatingsearchview.FloatingSearchView”:
This removes borders and corners, in my case. Hope it works for you too.