我正在开发expandablelistview,但我无法获得可扩展的listView,请提前帮助我在代码中出错
CodeMainActicity.java
public class CodeMainActicity extends Activity {
private ExpandListAdapter ExpAdapter;
private ArrayList<ExpandListGroup> ExpListItems;
private ExpandableListView ExpandList;
public String[] groups = null;
public String[][] headers = null;
DisplayMetrics metrics;
int width;
public int GetDipsFromPixel(float paramFloat) {
return (int) (0.5F + paramFloat
* getResources().getDisplayMetrics().density);
}
public ArrayList<ExpandListGroup> SetStandardGroups() {
ArrayList<ExpandListGroup> localArrayList1 = new ArrayList<ExpandListGroup>();
int i = 0;
if (i >= groups.length) {
return localArrayList1;
}
ExpandListGroup localExpandListGroup = new ExpandListGroup();
localExpandListGroup.setName(groups[i]);
ArrayList<ExpandListChild> localArrayList2 = new ArrayList<ExpandListChild>();
for (int j = …Run Code Online (Sandbox Code Playgroud)