I'm using the popup window to show the calendar view ,while showing the popup window it collapses the whole view ,i.e it is disturbing the view next to it ,it doesn't popup like Spinner(spinner adapter view). what may be problem , here my code
private void showPopup(Context context,LinearLayout Parent,final View v) {
LayoutInflater layoutInflater = (LayoutInflater)context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
layout = layoutInflater.inflate(R.layout.popupl,Parent,true);
// Creating the PopupWindow
final PopupWindow popupWindow = new PopupWindow(
layout,700,700);
popupWindow.setFocusable(true);
popupWindow.setContentView(layout);
popupWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
popupWindow.setWidth(250);
new Runnable(){
@Override
public void run() {
popupWindow.showAsDropDown(v, -5, 0);
}
};
}