4
A
回答
20
嘗試加入這一行:
mPopup.setBackgroundDrawable(new BitmapDrawable());
0
您需要創建一個自定義佈局和家長的佈局設置邊界,
我會爲您做這個邏輯的想法。
你這樣的佈局。 dialog_layout.xml
<RelativeLayout>
<LinerLayout> <!-- You can **Set/Remove** all background properties of this LinearLayout-->
<!-- Here are all child element like EditText/ Or TedxView-->
</LinerLayout>
</RelativeLayout>
這裏是鏈接邊界:
+1
嗨iam使用listpopupwindow使用列表adapter.please建議如何從彈出窗口中刪除邊框。 – RAHULRSANNIDHI
+1
dialog.setBackgroundDrawable(null);請試試這個。 –
1
您可以創建一個自定義樣式,並把該邊框的背景相同的顏色,你可以試試:
新| Android XML文件。
myborder.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dip"
android:color="@android:color/darker_gray" />
<solid
android:color="@android:color/background_dark" />
<padding
android:left="7dip"
android:top="7dip"
android:right="7dip"
android:bottom="7dip" />
<corners
android:radius="6dip" />
</shape>
在佈局
使用Android的繪製XML文件Layout.xml
<LinearLayout
android:orientation="vertical"
android:background="@drawable/myborder"
android:layout_width="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Text"
/>
<!-- ..................... -->
相關問題
- 1. Popupwindow停用邊框
- 2. PopupWindow不顯示
- 3. PopupWindow沒有顯示
- 4. 顯示PopupWindow集中
- 5. 不顯示邊欄邊框
- 6. 邊框不顯示
- 7. 在NativeActivity上顯示Android PopupWindow
- 8. CSS顯示:表中未顯示邊框
- 9. 雙邊框線不顯示
- 10. 點擊顯示NSButton邊框
- 11. HTML Div邊框不顯示
- 12. 邊框線不顯示 - FPDF
- 13. SVG圖像顯示邊框
- 14. 矩形邊框不顯示
- 15. BorderLayout顯示邊框線
- 16. 頂部不顯示邊框
- 17. 表格不顯示邊框
- 18. Ext.Panel顯示錯誤邊框
- 19. CSS邊框沒有顯示
- 20. 是否可以在另一個PopupWindow中顯示PopupWindow?
- 21. 如何在另一個PopupWindow中顯示PopupWindow?
- 22. 文本框邊框不顯示 - WPF
- 23. 不顯示顏色框邊框正確
- 24. 顯示邊框如果圖像可用,否則不顯示邊框
- 25. 單擊按鈕時顯示PopupWindow?
- 26. PopupWindow無法在InnerClass的onClick()中顯示
- 27. 如何在TextView下方顯示popupWindow
- 28. 從其他類顯示PopUpWindow - Android電子
- 29. PHP一次表單保存顯示popupwindow
- 30. 如何在iPhone的popupwindow中顯示DatePicker?
發佈您的代碼,以便它可以幫助給你正確的答案。 – Dig