自訂按鈕 Custom Button
自訂按鈕(custom button)
在res/drawable 目錄下,新增 btn.xml檔案。此檔由 <selector> 選擇器組成,加入item子節點即可。按鈕需有二個 item ,
第一個是state_pressed=”false”>,在一般模式的狀態。
另一個是 state_pressed=”true”>,是在按下按鈕時的狀態。
todo
自訂按鈕(custom button)
在res/drawable 目錄下,新增 btn.xml檔案。此檔由 <selector> 選擇器組成,加入item子節點即可。按鈕需有二個 item ,
第一個是state_pressed=”false”>,在一般模式的狀態。
另一個是 state_pressed=”true”>,是在按下按鈕時的狀態。
todo
