Code example for View

Methods: getContext

    public static <T extends View> T apply(T view, Font font) {
        if (view == null || font == null) {
            return view;
        font.mContext = view.getContext();
        applyInternal(view, font);
        font.mContext = null;
        return view;
    public static <T extends View> T applyDefaultFont(T view) {
        return apply(view, sDefaultFont);
    private static void applyInternal(View view, Font font) {
        if (view instanceof ViewGroup) {
            final ViewGroup vg = (ViewGroup) view;
            final int childCount = vg.getChildCount();
            for (int i = 0; i < childCount; i++) {
Connect your IDE to all the code out there  Get Codota for Java