I need to show the information about the field in an activity. For this i
have created a buton and placed next to the field.
Now when wants to know abt this field, he can click on that button and get
the info.
I am trying for PopupWindow. i have placed my code on the onClick event of
the button

// Start of code for PopupWindow
PopupWindow popupWindow = new PopupWindow(context);
TextView textView = new TextView(context);
popupWindow.setContentView(textView);
LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
textView.setLayoutParams(layoutParams);
textView.setText("My text goes here");
popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
// End of code for PopupWindow

But the above doent help in showing the PopupWindow.

-- 
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

Reply via email to