ExpandableListActivity

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

ExpandableListActivity

Postby williamzanelli » Thu Apr 16, 2009 12:38 am

Hi guys

I'm trying to complete a specific task using ExpandableListActivity.

I have a URL and title and description.

I want to have an ExpandableListActivity, where you have a list of titles, on clicking on anyone of the titles, the description appears (as per usual), on clicking on the child node, I want the the relevant URL to open..

Any idea on how I could achieve this?

Could someone please provide example code

Thanks in advance for your thoughts on this..

Regards
Will
williamzanelli
Experienced Developer
Experienced Developer
 
Posts: 63
Joined: Mon Jan 05, 2009 2:37 am
Location: UK

Top

Postby williamzanelli » Thu Apr 16, 2009 12:57 pm

Anybody.........??
Will
williamzanelli
Experienced Developer
Experienced Developer
 
Posts: 63
Joined: Mon Jan 05, 2009 2:37 am
Location: UK

Postby sanzeiev » Thu Jul 30, 2009 2:20 pm

@Override
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
// TODO Auto-generated method stub

TextView name = (TextView)parent.getChildAt(groupPosition).findViewById(android.R.id.text1);
String Name = name.getText().toString();
TextView number = (TextView)v.findViewById(android.R.id.text1);
String Number = number.getText().toString();
String Name = name.getText().toString();
return super.onChildClick(parent, v, groupPosition, childPosition, id);
}
sanzeiev
Freshman
Freshman
 
Posts: 8
Joined: Wed Jul 22, 2009 6:08 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests