Tar*_*ras 16 android listview adapter
是否有可能从Android中的适配器引用ListView而不将其作为构造函数的参数传递?
Pul*_*thi 12
这绝对是可能的.是否应该这样做(是的,有案例).
// See this method of your adapter
// The parent is the view you are looking for
public override View GetGroupView(int groupPosition, bool isExpanded, View convertView, ViewGroup parent)
{
ListView view = (ListView)parent;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11700 次 |
| 最近记录: |