ExpandableListActivity

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ExpandableListActivity

Postby haden » Thu Dec 04, 2008 2:38 pm

Hi Guys, Ive downloaded the sample android api code.

They have a demo for ExpandableListActivity.

It displays the list well but when i click on something it doesnt do anything,


I've looked through the code and i assume this is supposed to handle the clicks

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.    @Override
  3.  
  4.     public boolean onContextItemSelected(MenuItem item) {
  5.  
  6. }
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Ive added Log.cat and toast for debugging purposes and it seems the code doesnt enter there. Does anyone know whats the issue or has anyone implemented the ExpandableListActivity?
haden
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Thu Sep 11, 2008 11:51 am

Top

Postby haden » Thu Dec 04, 2008 3:59 pm

Ok I figure it out. You need to add

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id){
  2.  
  3. }
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
haden
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Thu Sep 11, 2008 11:51 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests