如题所述
1ï¼æå¤å´çæ¯ä¸ä¸ªActivityï¼é¡¶é¨å
å«äºä¸ä¸ªViewç容å¨ï¼è¿ä¸ªå®¹å¨ä¸»è¦æ¯è£
è½½ToggleButtonæ¥å®ç°è¯¸å¦ç¾å¢éé¢çâç¾é£ï¼å
¨åï¼çææè¿ï¼å·éâè¿ä¸è¡ãè¿ä¸è¡ä¸ç¹å°±ä¼å¼¹åºå¯¹åºçä¸æ¥èåã
2ï¼ä¸æèåæ¯å¦ä½å®ç°çå¢ï¼ï¼è¿éæ们å©ç¨äºPopupWindowæ¥å®ç°è¿ä¸å¼¹åºå¼çªå£ãç¶åæ们å¨å¼¹åºå¼çªå£éé¢åå®ä¹æ们çä¸æ¥å表项ï¼æ¯ååè¿æ¯äºçº§èåï¼é½æ¯ç±éé¢æ¥å®ã
3ï¼ä¸åçèåï¼éè¦ä¸çº§æè éè¦äºçº§ï¼å¨è¿éæ ¹æ®æçéæ±èåå¨ãæ们å¨PopupWindowä¸é¢å ä¸ä¸ªèªå®ä¹çLeftViewï¼æè æ¯MiddleViewï¼RightViewã主è¦æ¯ä¸ä¸ªToggleButtonï¼ä½ å¼¹åºä¸ä¸ªçªå£ï¼ä½ å°±å®å¶ä¸ä¸ªçªå£ã
3ï¼è§å¾éé¢åµå ¥ListViewï¼å°±å½¢æäºå表项ã追é®
2ï¼ä¸æèåæ¯å¦ä½å®ç°çå¢ï¼ï¼è¿éæ们å©ç¨äºPopupWindowæ¥å®ç°è¿ä¸å¼¹åºå¼çªå£ãç¶åæ们å¨å¼¹åºå¼çªå£éé¢åå®ä¹æ们çä¸æ¥å表项ï¼æ¯ååè¿æ¯äºçº§èåï¼é½æ¯ç±éé¢æ¥å®ã
3ï¼ä¸åçèåï¼éè¦ä¸çº§æè éè¦äºçº§ï¼å¨è¿éæ ¹æ®æçéæ±èåå¨ãæ们å¨PopupWindowä¸é¢å ä¸ä¸ªèªå®ä¹çLeftViewï¼æè æ¯MiddleViewï¼RightViewã主è¦æ¯ä¸ä¸ªToggleButtonï¼ä½ å¼¹åºä¸ä¸ªçªå£ï¼ä½ å°±å®å¶ä¸ä¸ªçªå£ã
3ï¼è§å¾éé¢åµå ¥ListViewï¼å°±å½¢æäºå表项ã追é®
ææ³é®çæ¯æéé¢é£ä¸ªï¼å·¦è¾¹æ¯èåå表ï¼å³è¾¹æ¯è¯¦æ ï¼å¹¶ä¸å³è¾¹æ»å¨å·¦è¾¹ä¼éçå®ä½ç
温馨提示:答案为网友推荐,仅供参考