I am creating a PopupWindow
message on onClick
event of a ImageButton
, I can see the PopupWindow
message on Emulator but can't see it on mobile, I have tried many mobiles from API 17 to 23.
I am not able to find the issue
@OnClick(R.id.infoRatingDetail)
public void ratingInfo(View view){
TextView message;
PopupWindow popup=new PopupWindow(getContext());
View view_pop=inflater.inflate(R.layout.pop_up_detail,null);
message=(TextView)view_pop.findViewById(R.id.pop_up_textView);
message.setText(R.string.rating_info);
popup.setContentView(view_pop);
popup.setOutsideTouchable(true);
popup.setFocusable(true);
popup.showAsDropDown(view);
}