最后的数据,我想整合卧式滚动视图的自定义线性布局inflater以我设置下面的代码的LinearLayout显示在机器人
for (int i=0;i<mArrayListPersonDataLists.size();i++)
{
View child = getLayoutInflater().inflate(R.layout.row_pager_layout, null);
TextView mTextView1=(TextView)child.findViewById(R.id.row_txt_name);
TextView mTextView2=(TextView)child.findViewById(R.id.row_txt_email);
TextView mTextView3=(TextView)child.findViewById(R.id.row_txt_gender);
mLinearLayout.removeAllViews();
mTextView1.setText(mArrayListPersonDataLists.get(i).getName());
mTextView2.setText(mArrayListPersonDataLists.get(i).getEmail());
mTextView3.setText(mArrayListPersonDataLists.get(i).getGender());
mLinearLayout.addView(child);
}
在上述我的数组列表
包括9点的数据,但在屏幕它显示只有一个数据所以任何想法如何解决这个问题?
mLinearLayout.removeAllViews此功能();删除这条线,并检查 – Pavya