1.Androidä¸PopupwindowåDialogçåºå«
Androidä¸PopupwindowåDialogçåºå«
PopupWindowåDialogå¯ä»¥å®ç°åæ ·çææï¼é»è®¤æ åµä¸Dialogå¯ä»¥å¿«éå建对åºçdialog对è¯çªå£ï¼åªéè¦ç®åçå å¥è¯ï¼å建Dialog
AlertDialog mDialog = null;mDialog = new AlertDialog.Builder(this).create();;
mDialog.setIcon(R.drawable.ic_launcher);
mDialog.setTitle("ç³»ç»æ示");
mDialog.setMessage("ä½ ç¡®å®è¦éåºåï¼");
mDialog.setButton(DialogInterface.BUTTON_POSITIVE,源码超级账本 源码分析"ç¡®å®",null);
mDialog.setButton(DialogInterface.BUTTON_NEGATIVE,"åæ¶", null);
mDialog.show();PopupWindowå建ï¼éè¦è·å对åºçViewView popupWindow_view = getLayoutInflater().inflate(R.layout.activity_popupwindow_left, null, false);
popupWindow = new PopupWindow(popupWindow_view, , LayoutParams.MATCH_PARENT, true);PopupWindowå建è¿ç¨æ²¡æDialogé£ä¹æ¹ä¾¿ï¼Dialogå建对象åï¼è®¾ç½®å¯¹åºçTitleãMessageãButtonå³å¯ï¼PopupWindowå¯ä»¥å建çå¼¹çªä»å½åè§å¾çä¸ä¸å·¦å³æ¹åå¼¹åºï¼ææåDialogå± ä¸æ¾ç¤ºææåºå«
2024-11-29 02:52
2024-11-29 02:38
2024-11-29 02:25
2024-11-29 02:16
2024-11-29 02:10
2024-11-29 00:55