简述
本文将简述popupWindow的使用技巧
基础用法效果
pop_below_head.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:paddingTop="18dp"
android:paddingBottom="18dp"
android:text="标题"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:text="希望弹出该内容放置于标题头部之下"
android:layout_width="match_parent"
android:layout_height="40dp" />
<View
android:layout_margin="10dp"
android:background="@co