Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState); //gemmer sidste tilstand
- // Create Expandable List and set it's properties
- ExpandableListView expandableList = getExpandableListView();
- expandableList.setDividerHeight(2);
- expandableList.setGroupIndicator(null);
- expandableList.setClickable(true);
- // Set the Items of Parent and child
- prepareListData();
- // Create the Adapter
- adapter = new MyExpandableAdapter(parentParam, childItems);
- //setListAdapter(adapter);
- //ExpandableListView listView = (ExpandableListView) findViewById(R.id.listView);
- adapter.setInflater((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE), this);
- adapter.notifyDataSetChanged();
- // Set the Adapter to expandableList
- expandableList.setAdapter(adapter);
- expandableList.setOnChildClickListener(this);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement