Ich möchte auf Popupwindow die linken und rechten Ränder einstellen. Ich versuche, Layoutparameter auf Layout < /code> festzulegen und dann den Rand festzulegen, aber nicht funktionieren.LayoutInflater inflater = (LayoutInflater) QuestionsActiviy.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.popup, (ViewGroup) findViewById(R.id.popup_element));
ratePw = new PopupWindow(layout);
ratePw.setWidth(WindowManager.LayoutParams.FILL_PARENT);
ratePw.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
ratePw.setFocusable(true);
ratePw.showAtLocation(layout, Gravity.CENTER, 0, 0);
< /code>
Thanks.
Android: Stellen Sie den Rand auf PopupWindow per Code ein ⇐ Android
-
- Similar Topics
- Replies
- Views
- Last post