最後的數據,我想整合臥式滾動視圖的自定義線性佈局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