Как сделать панель поиска с закругленными верхними левыми и правыми нижними углами?
Код ниже делает все это округленным, но я хочу быть чем-то вроде
здесь на этом изображении.
Если кто-нибудь может мне помочь, я буду очень счастлив ^^
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<FrameLayout
android:id="@id/search_bar_container"
android:background="@*android:color/primary_material_dark"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:cardElevation="50.0dip">
<android.support.v7.widget.CardView
android:id="@id/search_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/search_bar_margin"
app:cardCornerRadius="24.0dip"
app:cardElevation="50.0dip"
app:cardBackgroundColor="@*android:color/primary_material_dark">
<Toolbar
android:id="@id/search_action_bar"
android:theme="?android:attr/actionBarTheme"
android:contentInsetStartWithNavigation="64dp"
android:navigationIcon="@drawable/ic_search_24dp"
android:navigationContentDescription="@string/search_menu"
android:background="@color/background_floating_material_dark"
android:layout_width="fill_parent"
android:layout_height="@dimen/search_bar_height"
android:titleTextAppearance="@style/TextAppearance.SearchBar"
android:title="@string/search_menu" />
</android.support.v7.widget.CardView>
</FrameLayout>
<FrameLayout
android:id="@id/main_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>