创建于expandablelistview按钮 [英] Creating buttons in expandablelistview
问题描述
我的问题是
我有一个可扩展的列表视图。在扩展列表我在列表中的每个孩子两个按钮。现在我可以能够添加在子列表按钮。但我不知道如何让父位置和子位置。这种父母与子女的值我需要调用另一个活动。我不知道如何使用expandablelistadapter和onChildClick方法。任何人都可以用例子来说明。因为是新来的Android系统。
I have a expandable list view. in the expandable list i have two buttons in each child in the list. Now i can able to add buttons in the child list. But i dont know how to get parent position and child position. with this parent and child values i need to call another activity. I dont know how to use expandablelistadapter and onChildClick method. Can anybody explain with example. Because am new to android.
推荐答案
您不会得到源$ C $ C实现,因为这不是给我-teh- codeZ网站。请尽量提问更具体或告诉我们什么与你的源 - code中的问题。您可以使用pastebin.com我们直接到你的源$ C $ C。
You wont get source code implementation as this is not a "gimme-teh-codez" website. Please try to ask questions more specific or tell us whats the problem with your source-code. You can use pastebin.com to direct us to your source code.
我要指出一些链接,这将帮助您入门:
I shall point to some links that will help you get started:
退房:一个例如展示如何使用子位置
和 ExpandableListAdapter
Check out : An example showing how to use the child position and ExpandableListAdapter
扩展列表中有包含儿童群体
Expandable lists have groups which contain children
这篇关于创建于expandablelistview按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!