在listview的点击事件中找到子控件:
final
int
count1 = list.size();// 获取子条目的个数
listView1.setOnItemClickListener(new
OnItemClickListener() {
@Override
public
void
onItemClick(AdapterView<?> parent, View view,
int
position,
long
id) {
for
(int
i = 0; i < count1; i++) {
View view1 = parent.getChildAt(i);
TextView
tv = (TextView) view1.findViewById(R.id.tv_pop_baoxian
);
}
}
});
-------------------------------
在listview中找到子控件:
ListView
listView1 = ( ListView)
popupWindow_view
.findViewById(R.id.
pop_listview_bx);
for(int
i
=0;i<listView1.getChildCount();i++){
LinearLayout
linear = (LinearLayout)
listView1.getChildAt(i
);
EditText
edit= (EditText) linear.findViewById(R.id.ed_baoxian_carPrice);
}