private void showAddTextPopup()
{ PopupWindow window1 = new PopupWindow(this);
window1.setWidth(500);
window1.setHeight(300);
window1.setTouchable(true);
window1.setFocusable(true);
LayoutInflater inflater = (LayoutInflater) NotesActivity.this .getLayoutInflater();// .getSystemService // (Context.LAYOUT_INFLATER_SERVICE);
View bottomView = inflater.inflate(R.layout.addtext, null);
window1.setContentView(bottomView);
window1.showAtLocation(bottomView, Gravity.CENTER_VERTICAL, 50, 50); }
{ PopupWindow window1 = new PopupWindow(this);
window1.setWidth(500);
window1.setHeight(300);
window1.setTouchable(true);
window1.setFocusable(true);
LayoutInflater inflater = (LayoutInflater) NotesActivity.this .getLayoutInflater();// .getSystemService // (Context.LAYOUT_INFLATER_SERVICE);
View bottomView = inflater.inflate(R.layout.addtext, null);
window1.setContentView(bottomView);
window1.showAtLocation(bottomView, Gravity.CENTER_VERTICAL, 50, 50); }
what does the R.layout.addtext look like in this situation?
ReplyDeleteR.layout.addText is your own custom layout which you want to show in popup.
DeleteR.layout.addText is your own custom layout which you want to show in popup.
ReplyDelete