Code example for Transformation

Methods: getMatrix, getTransformation

0
        } 
    } 
 
    public static float getCurrentTransformY(View v){
        if (v.getAnimation() == null) return 0f;
        Transformation t = new Transformation();
        float[] values = new float[9];
        v.getAnimation().getTransformation(v.getDrawingTime(), t);
        t.getMatrix().getValues(values);
        return values[5];
    } 
 
    @TargetApi(9) 
    public static boolean isScreenXL(Context context){
        return ((context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE);
    } 
 
    public static boolean checkIconShouldLoad(String url) {
        return !(TextUtils.isEmpty(url)
                || url.toLowerCase(Locale.US).equals("null")
                || url.contains("default_avatar"));