bsp;
}
}
progress.dismiss();
}
}).start();
}
5 popuWindow对话框
- Button btn_popu;
-
- public void showPopuWindow(View v){
-
- btn_popu = (Button) v;
-
- View view = LayoutInflater.from(this).inflate(R.layout.pop_window, null);
-
- PopupWindow window = new PopupWindow(this);
- window.setContentView(view);
- window.setWidth(360);
- window.setHeight(200);
-
- int[] location = new int[2];
-
- btn_popu.getLocationInWindow(location);
- window.setFocusable(true);
- window.setBackgroundDrawable(getResources().getDrawable(R.drawable.back_null));
- window.showAtLocation(btn_popu, Gravity.LEFT |Gravity.TOP , location[0]+ btn_popu.getWidth(), location[1] + 0 );
-
-
|