Styling android widgets programmatically
I already answered some questions in a comment here is the code review.

Some tips and suggestions:    


Use full names for params and local variables to improve readability
Don't use numbers in the names of methods
Try to use Iterable interface above the List if possible
Follow naming conventions for Android 
Use annotations to improve code quality and usage
Use final modifier if possible


'

public static void styleControls(@NonNull final Context context, @NonNull final Iterable&lt;View&gt; controls, @NonNull final Object object) {
    if (object == null) {
        return;
    }
    final File file = context.getExternalFilesDir(null);
    if (file == null) {
        Log.e(TAG, "couldnt get external files dir!");
        return;
    }
    final Resources resources = context.getResources();
    final String filepath = file.getAbsolutePath() + File.separator;
    for (final View view : controls) {
        final Modify modify = null;
        //... instance of checks
        if (modify != null) {
            modify.modify(view);
        }
    }
}

public abstract class ViewModifier implements Modify {

    private static final String TAG = "ViewModifier";

    protected final Object     mObject;
    protected final String     mBasedir;
    protected final Resources  mResources;
    protected final TypedValue mTypedValue;

    public ViewModifier(@NonNull final Resources resources, @NonNull final Object object, @NonNull final String basedir) {
        mResources = resources;
        mObject = object;
        mBasedir = basedir;
        mTypedValue = new TypedValue();
        mTypedValue.density = resources.getDisplayMetrics().densityDpi;
    }

    // some helper codes....
}

public interface Modify&lt;T extends View&gt; {
    void modify(final T t);
}