Android PopupWindow的使用
下面是一个弹出带ListView和TextView的PopupWindow实例: import android.app.Activity; import android.content.Context; import android.util.DisplayMetrics; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android.widget.PopupWindow; import android.widget.TextView; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; /** * Created by SRain on 2015/10/15. * <p/> * 弹出框 */ public class PopupWindowUtils implements View.OnClickListener {