Java Code Examples for android.view.View#setLayerPaint()

The following examples show how to use android.view.View#setLayerPaint() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@SuppressLint("NewApi")
private void setSepiaLayer(View view, boolean isSepiaLayerOn) {
    if (!IS_JBMR2) {
        if (isSepiaLayerOn) {
            if (Build.VERSION.SDK_INT >= 17) {
                view.setLayerType(View.LAYER_TYPE_HARDWARE, null);
                view.setLayerPaint(mSepiaPaint);
            }

        } else {
            if (Build.VERSION.SDK_INT >= 17) {
                view.setLayerPaint(mDefaultPaint);
            }

        }
    }
}
 
Example 2
@SuppressLint("NewApi")
private void setSepiaLayer(View view, boolean isSepiaLayerOn) {
    if (!IS_JBMR2) {
        if (isSepiaLayerOn) {
            if (Build.VERSION.SDK_INT >= 17) {
                view.setLayerType(View.LAYER_TYPE_HARDWARE, null);
                view.setLayerPaint(mSepiaPaint);
            }

        } else {
            if (Build.VERSION.SDK_INT >= 17) {
                view.setLayerPaint(mDefaultPaint);
            }

        }
    }
}
 
Example 3
@SuppressLint("NewApi")
private void setSepiaLayer(View view, boolean isSepiaLayerOn) {
	if (!IS_JBMR2) {
		if (isSepiaLayerOn) {
			if (Build.VERSION.SDK_INT >= 17) {
				view.setLayerType(View.LAYER_TYPE_HARDWARE, null);
				view.setLayerPaint(mSepiaPaint);
			}

		} else {
			if (Build.VERSION.SDK_INT >= 17) {
				view.setLayerPaint(mDefaultPaint);
			}

		}
	}
}
 
Example 4
private void setSepiaLayer (View view, boolean isSepiaLayerOn) {
    if (!IS_JBMR2) {
        if (isSepiaLayerOn) {
            view.setLayerType(View.LAYER_TYPE_HARDWARE, null);
            view.setLayerPaint(mSepiaPaint);
        } else {
            view.setLayerPaint(mDefaultPaint);
        }
    }
}
 
Example 5
Source Project: letv   File: ViewCompatJellybeanMr1.java    License: Apache License 2.0 4 votes vote down vote up
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
Example 6
Source Project: MiBandDecompiled   File: an.java    License: Apache License 2.0 4 votes vote down vote up
public static void a(View view, Paint paint)
{
    view.setLayerPaint(paint);
}
 
Example 7
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
Example 8
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
Example 9
Source Project: V.FlyoutTest   File: ViewCompatJellybeanMr1.java    License: MIT License 4 votes vote down vote up
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
Example 10
Source Project: guideshow   File: ViewCompatJellybeanMr1.java    License: MIT License 4 votes vote down vote up
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}