I'm trying to display a pop window over the current displayed view.
For some reason the application keeps crashing on me.
Here is the code I'm using to setup the popup...
AbsoluteLayout a = new AbsoluteLayout(this);
TextView t = new TextView(this);
t.setText("works!");
a.addView(t);
PopupWindow w = new PopupWindow();
w.setHeight(100);
w.setWidth(100);
w.setContentView(a);
w.setFocusable(true);
w.showAtLocation(this.findViewById(R.layout.chat_window),
Gravity.NO_GRAVITY, 0, 0);
What is wrong with this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---