Lines Matching defs:view
19 import android.view.View;
32 * Sets the background on the given view so that the combination of all items looks like a
33 * rectangle with rounded corner. The view is assumed to have a non-rounded corner outline.
35 * <p>The view will be set with rounded backgrounds if it is the only card within the list.
36 * Or if it is the first or last view, it will have the top or bottom corners rounded
39 * @param view The view whose background to set.
44 public static void setBackground(View view, int currentPosition, int totalItems) {
57 view.setBackgroundResource(R.drawable.car_card_rounded_background);
60 view.setBackgroundResource(R.drawable.car_card_rounded_top_background);
63 view.setBackgroundResource(R.drawable.car_card_rounded_bottom_background);
66 view.setBackgroundResource(R.drawable.car_card_background);