public static void consumeAttributes(final Context context, final AttributeSet attrs, @StyleableRes final int[] styleable,
                                          @AttrRes final int defStyleAttr, final @StyleRes int defStyleRes, final Consumer<TypedArray> consumer) {
        if (attrs != null) {
            final TypedArray a = context.getTheme().obtainStyledAttributes(attrs, styleable, defStyleAttr, defStyleRes);
            try {
                consumer.accept(a);
            } finally {
                a.recycle();
            }
        }
    }
Sets padding (in DP) to apply to each list item.
 List of int[] are added to each other to get the final padding. For each int[] following rule applies:
 If 4 numbers are given, they are applied to left, top, right, bottom in that order
 If 2 numbers are given, they are applied to horizontal (left+right), vertical (top+bottom)
 If 1 number is given it is applied to all 4 sides
main/src/main/java/cgeo/geocaching/ui/ViewUtils.java