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

The following are Jave code examples for showing how to use setLayerPaint() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: buildAPKsSamples   File: FoldingLayoutActivity.java   Source Code and License Vote up 6 votes
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 2
Project: letv   File: ViewCompatJellybeanMr1.java   Source Code and License Vote up 4 votes
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
Example 3
Project: boohee_v5.6   File: ViewCompatJellybeanMr1.java   Source Code and License Vote up 4 votes
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}