Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. private void showPopupWindow(ViewHolder holder) {
  2.  
  3. View convertView = LayoutInflater.from(_context).inflate(R.layout.demo_layout, null);
  4. convertView.setTag(holder.view);
  5. TextView textView = (TextView) convertView.findViewById(R.id.textOnly);
  6. textView.setText("short message to be shown");
  7. popupWindow = new PopupWindow(convertView, LinearLayout.LayoutParams.WRAP_CONTENT,
  8. LinearLayout.LayoutParams.WRAP_CONTENT);
  9.  
  10. popupWindow.showAsDropDown(holder.view, 0, 0);
  11.  
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement