我创建的onClick
事件ImageButton
的PopupWindow
消息PopupWindow消息,我可以看到模拟器的PopupWindow
消息,但无法看到它在移动,我已经尝试了许多手机从API 17日至23 。
我无法找到问题无法显示在手机上
@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);
}
它确实解决了我的问题,谢谢 – rookieDeveloper
快乐帮助你:) – buzzingsilently