Why SimpleExpandableListAdapter error argument seems to be this is ah
SimpleExpandableListAdapter expand = new SimpleExpandableListAdapter (
this, group, R.layout.images, new String [] {"images", "names"}, new int [] {R.id.image1, R.id.txt1}, child, R.layout.txtitem, new String [] {"tengxun", "baidu", "alibaba"}, new int [] {R.id.txt1, R.id.txt1, R.id.txt1});
The following is not an error, but running the program hung up
SimpleExpandableListAdapter expand = new SimpleExpandableListAdapter (
this, group, R.layout.images, new String [] {"images", "names"}, new int [] {R.id.image1, R.id.txt1}, (List >>) child,
R.layout.txtitem, new String [] {"tengxun", "baidu", "alibaba"}, new int [] {R.id.txt1, R.id.txt1, R.id.txt1}); < br />The official document child parameter is List > is this ah
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
SimpleExpandableListAdapter (Context context, List > groupData, int groupLayout, String [] groupFrom, int [] groupTo, List > > childData, int childLayout, String [] childFrom, int [] childTo)
Constructor
SimpleExpandableListAdapter (Context context, List > groupData, int expandedGroupLayout, int collapsedGroupLayout, String [] groupFrom, int [] groupTo, List ; >> childData, int childLayout, String [] childFrom, int [] childTo)
Constructor
SimpleExpandableListAdapter (Context context, List > groupData, int expandedGroupLayout, int collapsedGroupLayout, String [] groupFrom, int [] groupTo, List ; >> childData, int childLayout, int lastChildLayout, String [] childFrom, int [] childTo)
Constructor
No comments:
Post a Comment