Java tutorial
//package com.java2s; import android.content.res.TypedArray; import android.support.annotation.StyleableRes; public class Main { public static boolean getBoolean(TypedArray a, @StyleableRes int index, @StyleableRes int fallbackIndex, boolean defaultValue) { return a.getBoolean(index, a.getBoolean(fallbackIndex, defaultValue)); } }