Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- metrics concept with popwindow android
- public void displayDropDownPopup() {
- dashview = new DashboardItem((Activity) context);
- popUp3 = new PopupWindow(dashview, 120, 65, true);
- popUp3.setBackgroundDrawable(new BitmapDrawable());
- popUp3.setOutsideTouchable(true);
- popUp3.setTouchInterceptor(new OnTouchListener() {
- public boolean onTouch(View v, MotionEvent event) {
- if (event.getAction() == MotionEvent.ACTION_OUTSIDE) {
- popUp3.dismiss();
- return true;
- }
- return false;
- }
- });
- if (appObj.width <= 320 && appObj.height <= 427) {
- //y_Value = DataMemebers.SMALL_Y;
- popUp3.showAtLocation(dashview, Gravity.TOP | Gravity.RIGHT, 0,66);
- } else if (appObj.width > 320 && appObj.height <= 800) {
- y_Value = DataMemebers.NORMAL_Y;
- } else {
- //y_Value = DataMemebers.SMALL_Y;
- popUp3.showAtLocation(dashview, Gravity.TOP | Gravity.RIGHT, 0,66);
- }
Add Comment
Please, Sign In to add comment