I am trying to create a PopupWindow
with a anchor(an arrow) like this:
And I have an image for background popup_bg
like this:
Now I tried to set the background for the layout of the popupwindow:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/popup_bg">
<TextView
android:id="@+id/popText"
android:text="@string/map_choose_point"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>
</RelativeLayout>
But I got this:
How to fix it ?