public class

CompatUtil

extends Object
java.lang.Object
   ↳ com.droidux.core.components.utils.CompatUtil

Class Overview

Helper class to deal with compatibility-related situations.

Summary

Public Methods
static int api11_getLayerType(View view)
static boolean api11_isHardwareAccelerated(Canvas canvas)
static boolean api11_isHardwareAccelerated(View view)
static void api11_setAlpha(View view, float alpha)
static void api11_setLayerType(View view, int layerType, Paint paint)
static void api11_setTranslationX(View view, int translationX)
static void api11_smoothScrollToPositionFromTop(ListView listView, int position, int offset)
static void api12_buildLayer(View view)
static void api16_postOnAnimation(View view, Runnable action)
static boolean hasApiLevel(int level)
static boolean hasHoneycomb()
static boolean hasJellyBean()
static boolean isApiLevel(int level)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int api11_getLayerType (View view)

Since: API Level 3.0

public static boolean api11_isHardwareAccelerated (Canvas canvas)

Since: API Level 3.0

public static boolean api11_isHardwareAccelerated (View view)

Since: API Level 3.0

public static void api11_setAlpha (View view, float alpha)

Since: API Level 3.0

public static void api11_setLayerType (View view, int layerType, Paint paint)

Since: API Level 3.0

public static void api11_setTranslationX (View view, int translationX)

Since: API Level 3.0

public static void api11_smoothScrollToPositionFromTop (ListView listView, int position, int offset)

Since: API Level 3.0

public static void api12_buildLayer (View view)

Since: API Level 3.0

public static void api16_postOnAnimation (View view, Runnable action)

Since: API Level 3.0

public static boolean hasApiLevel (int level)

Since: API Level 3.0

public static boolean hasHoneycomb ()

Since: API Level 3.0

public static boolean hasJellyBean ()

Since: API Level 3.0

public static boolean isApiLevel (int level)

Since: API Level 3.0