Lines Matching defs:listView
31 import android.widget.ListView;
38 * If a view in a ListView requests a layout it should be remeasured.
43 ListView listView = new ListView(context);
46 listView.setAdapter(adapter);
51 listView.measure(measureSpec, measureSpec);
52 listView.layout(0, 0, 100, 100);
54 MockView childView = (MockView) listView.getChildAt(0);
58 listView.measure(measureSpec, measureSpec);
59 listView.layout(0, 0, 100, 100);
71 ListView listView = new ListView(context);
73 listView.addHeaderView(new View(context), null, false);
76 listView.setAdapter(adapter);
78 listView.setSelection(1);
83 listView.measure(measureSpec, measureSpec);
84 listView.layout(0, 0, 100, 100);
89 listView.measure(measureSpec, measureSpec);
90 listView.layout(0, 0, 100, 100);