【Android】ListView與Button的共存問題解決 - gyflyx的專欄 - 博客頻道 - CSDN.NET

【Android】ListView與Button的共存問題解決 - gyflyx的專欄 - 博客頻道 - CSDN.NET

瀏覽:705
日期:2024-05-26
因為繼承了ListActivity,所以ListView 的id設置為 "@id/android:list"是必須的 res/layout/lvitem.xml 註意: 在 < RelativeLayout>中 android:descendantFocusability = "blocksDescendants" 和 < ImageButton>中 android:focusable = "false" 這兩項的設置很關鍵,如果不 ......看更多