what I am trying to do is to get a simple menu with rounded corner and stroke line like this:
but what i am getting is this:
first I made a shape whit ripple in drawable (drop_down_back_0.xml):
<ripple
xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#C54747">
<item>
<shape android:shape="rectangle" >
<solid android:color="@color/colorAccent" />
<stroke android:color="@color/colorPrimary" android:width="1dp"/>
<corners android:radius="30dp"/>
</shape>
</item>
</ripple>
then i used it in a style:
<style name="toolbarMenuStyle" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:colorBackground">@android:color/transparent</item>
<item name="android:textColor">@color/colorPrimaryDark</item>
<item name="android:background">@drawable/drop_down_back_0</item>
</style>
finaly I used the style in my activity_layout.xml:
.
.
.
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#526C98"
android:elevation="10dp"
app:titleTextColor="#fff"
app:popupTheme="@style/toolbarMenuStyle" >

For the OverflowMenu you can define in your app theme the
actionOverflowMenuStyleattribute.With:
where the background is something like: