簡體   English   中英

帶有按鈕的Android ExpandableListView

[英]Android ExpandableListView with button

我想在scroolview中使用expandablelist

我該怎么做(一個屏幕2動作)

頂部->水平滾動視圖(某些圖像從左到右)向下-> expandableListView(從上到下)

|

屏幕


水平滾動視圖(一些圖像)


expandableListView(某些組,子級)


謝謝。

而不是使用帶有scrollview的expandablelist,請使用spinner。

       Spinner sp1=(Spinner)findViewById(R.id.spinner1);
          Dbhelper db=new Dbhelper(this);
           Cursor c1=db.rawQuery("select accNo from Account4 where bankName='"+str+"'",null);
           acc=new String[c1.getCount()];
           while(c1.moveToNext()){
           acc[i]=c1.getString(c1.getColumnIndex("accNo"));
           i++;
          }

   ArrayAdapter<String> adp=new  ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item,acc);

       sp1.setAdapter(adp);

       c1.close();

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM