我有一个自定义对话框
customDialog = new CustomizeDialog(this);
customDialog.setContentView(R.layout.student_register_form);这里有一个弹出窗口声明如下
ListViewPopupWindow countryPopupWindow = new
ListViewPopupWindow(this,R.layout.grade_popup_layout, values, Ids, "country");这里是实现
public ListViewPopupWindow(Context ctx,int popup_layout,ArrayList<String> values,
ArrayList<String> ids,String tag){我的问题是我找不到上下文
发布于 2014-03-05 11:44:48
// Inflate popupview
LayoutInflater layoutInflater = (LayoutInflater) getBaseContext().getSystemService(
LAYOUT_INFLATER_SERVICE);
View popupView = layoutInflater.inflate(R.layout.grade_popup_layout,
null);使用此popupView作为上下文。
https://stackoverflow.com/questions/22196600
复制相似问题