Newer
Older
Detector / app / src / main / res / layout / popup_menu_sample.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <View
        android:layout_width="@dimen/dp_20"
        android:layout_height="@dimen/dp_20"
        android:layout_alignParentEnd="true"
        android:layout_marginEnd="13dp"
        android:background="@drawable/border_triangle" />

    <androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="17dp"
        android:backgroundTint="#CC000000"
        app:cardCornerRadius="@dimen/lib_dp_5">

        <ListView
            android:id="@+id/popupListView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:divider="@drawable/popup_list_divider"
            android:dividerHeight="@dimen/lib_px_1"
            android:scrollbars="none" />
    </androidx.cardview.widget.CardView>
</RelativeLayout>