列表视图位于TabActivity内,我无法生成的listItem点击,尝试了很多的方法,但无法完成的任务,因此,任何人都可以提供帮助。谢谢你。
Listview is located inside the TabActivity and I am unable to generate the click on listItem, try a lot of way but unable to accomplish the task, so, anybody can help. thank you.
走新型视图,然后抬高它会解决列表视图中的onClick的TabHost问题...!
Taking a new View then inflate it will resolve the problem in listview onClick in TabHost...!
public View getView(final int position, View convertView1, ViewGroup parent)
{
final ViewHolder holder;
final Context context;
View convertView = null;
if (convertView == null)
{
convertView = mInflater.inflate(R.layout.file_display_binding, null);
holder = new ViewHolder();
System.out.println("inside efficient array");
holder.file_imgview = (ImageView)convertView.findViewById(R.id.file_icon_diplay);
convertView.setOnClickListener(new View.OnClickListener()
{
//@Override
public void onClick(View v)
{
}
}
}
}