彈出列表框,響應選擇的資料

2021-05-25 06:47:57 字數 560 閱讀 7535

list list = new arraylist();

for (int i = 0; i < size; i++)

int size1 = list.size();

string sarray = new string[size1];

for (int i = 0; i < list.size(); i++)

alertdialog.builder builder = new alertdialog.builder(

getmachinenum.this);

builder.settitle("請選擇機型:");

builder.setitems(sarray,

new android.content.dialoginte***ce.onclicklistener()

public void onnothingselected(adapterview<?> parent)

public void onclick(dialoginte***ce arg0, int arg1)

});builder.show();

C 列表框 複選列表框 組合框的使用

功能實現效果 實現 1 宣告相關變數儲存專業 課程設定及相關資訊 csharp string gr,msg,xy string spec,cour1,cour2,cour3,cour4,cour5 2 在form1類中自定義函式bool checkgr 檢查學生資訊 csharp private b...

MFC 組合框,列表框

組合框 ccombobox 列表框 clistbox 組合框 combo box 列表框 list box 屬性中 sort 支援自動排序 1.新增如圖空間,並聲稱對應的組合框和列表框 編輯框的控制項。2.新增 新增 刪除 函式 void clb007dlg onbnclickedbtnadd vo...

下拉列表框指令碼

目錄 一 概述 二 select標籤 三 option標籤 四 新增移除選項 下拉列表框是通過select和option標籤建立的,為了方便與這個控制項互動,除了所有表單字段共有的屬性和方法外,js還提供了一些屬性和方法。select標籤用來定義下拉列表,包含任意數量的option和optgroup...