これは、データベースから断片上のリストビューに移入されていますAndroid - 「コンテンツビューはまだ作成されていません」と表示されるのはなぜですか?
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
LinearLayout Layout5 = (LinearLayout) inflater.inflate(R.layout.tab_frag5_layout, container, false);
Cursor allBands;
MyDatabase db;
Context ctx = (Context)TabFragment5.this.getActivity();
db = new MyDatabase(ctx);
allBands = db.getBands();
ListAdapter adapter = new SimpleCursorAdapter (ctx,
R.layout.listelement,
allBands,
new String[] {"BandName"},
new int[] {R.id.text15});
getListView().setAdapter(adapter);
return Layout5;
}
は、なぜこの私にlogcatで「まだ作成されていないコンテンツビュー」を与えていますか?近いプログラム力フラグメントが開く...
最初のステートメントではありません.ContentView(..)? – kosa
私はそうは思わない、私は断片で作業しています。 – tyb