私はこれは私のリストビューaddfooterview原因例外
btnmore = (Button)findViewById(R.id.btn_more);
getListView().addFooterView(btnmore);
lv.setAdapter(adapter);
あるこの
linear = (LinearLayout) findViewById(R.id.layout_content);
linear.setVisibility(View.VISIBLE);
LayoutInflater liInflater = (LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
linear.addView(liInflater.inflate(R.layout.main_particularcategoryallnewslist, null));
linear.addView(liInflater.inflate(R.layout.main_particularcategoryallnewslistfv, null));
で膨らませる私は2番目の時間を膨張させるようにしたいけどできませんでした。私はこのエラーを取得する理由の問題は何ですか?
linear.addView(liInflater.inflate(R.layout.main_particularcategoryallnewslist, null));
たFIRSTTIMEを膨らませることができますしかし
java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
XMLで総コードを投稿できますか? – Veer