setLayerPaint ( )源码实例Demo

android.view.View#setLayerPaint ( )源码实例Demo

下面列出了android.view.View#setLayerPaint ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: UltimateAndroid   文件: FoldingLayoutActivity.java
@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);
            }

        }
    }
}
 
源代码2 项目: UltimateAndroid   文件: FoldingLayoutActivity.java
@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);
            }

        }
    }
}
 
源代码3 项目: Folding-Android   文件: FoldingLayoutActivity.java
@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);
			}

		}
	}
}
 
源代码4 项目: FoldingLayout   文件: FoldingLayoutActivity.java
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);
        }
    }
}
 
源代码5 项目: letv   文件: ViewCompatJellybeanMr1.java
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
源代码6 项目: MiBandDecompiled   文件: an.java
public static void a(View view, Paint paint)
{
    view.setLayerPaint(paint);
}
 
源代码7 项目: CodenameOne   文件: ViewCompatJellybeanMr1.java
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
源代码9 项目: V.FlyoutTest   文件: ViewCompatJellybeanMr1.java
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
源代码10 项目: guideshow   文件: ViewCompatJellybeanMr1.java
public static void setLayerPaint(View view, Paint paint) {
    view.setLayerPaint(paint);
}
 
服务器费用不足...
 方法所在类
 同类方法
支付宝打赏 微信打赏

如果文章对你有帮助,欢迎点击上方按钮打赏作者