android:Spinner組件代碼

前言:實現的功能爲界面顯示兩個spinner組件,點擊下拉框內的選項之後,彈出toast提示選中了哪個選項。界面如下: 1、先在xml文件中定義spinner組件。因爲用到了兩種實現方式,所以定義兩個spinner。 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.androi
相關文章
相關標籤/搜索