Lines Matching refs:listView
8 import android.widget.ListView;
18 private static void addPaddingToView(ListView listView, int parentWidth,
24 listView.setPadding(
26 listView.getPaddingTop(),
28 listView.getPaddingBottom());
29 // The EdgeEffect and ScrollBar need to span to the edge of the ListView's padding.
30 listView.setClipToPadding(false);
31 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);
36 * Add padding to {@param listView} if this configuration has set both space weight and
38 * layout file so that the {@param listView}'s padding can be set proportional to the card
42 * @param listView ListView that we add padding to
43 * @param rootLayout layout that contains ListView and R.id.list_card
46 final ListView listView, final View rootLayout) {
64 // In order to avoid jumping, we skip drawing the next frame of the ListView.
65 SchedulingUtils.doOnPreDraw(listView, /* drawNextFrame = */ false, new Runnable() {
68 // Use the rootLayout.getWidth() instead of listView.getWidth() since
69 // we sometimes hide the listView until we finish loading data. This would
72 listView, rootLayout.getWidth(), listSpaceWeight, listViewWeight);