Hii...
I'm trying to show a popup window.. using the following code:
Using java Syntax Highlighting
private void showPopUp() {
PopupWindow Popup = new PopupWindow(this.getViewInflate()
.inflate(R.layout.main1,null,null),0,0);
Popup.setOutsideTouchable(false);
Popup.setTouchInterceptor(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
return false;
}
});
Popup.showAtLocation(this.findViewById(R.id.btnShare), Gravity.BOTTOM,
20, 20);
}
Parsed in 0.032 seconds, using
GeSHi 1.0.8.4
I'm using android sdk 1.5.
The getViewInflate() function seems to be deprecated in 1.5 sdk.
how do I go about it?
Plzzz help.. Thank you...