下面列出了android.graphics.drawable.Drawable#isAutoMirrored() 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
/**
* Change the layout direction of the given drawable.
* Return true if auto-mirror is supported and drawable's layout direction can be changed.
* Otherwise, return false.
*/
@TargetApi(Build.VERSION_CODES.M)
private boolean mirror(Drawable drawable, int layoutDirection) {
if (drawable == null || !(C.API_KITKAT && drawable.isAutoMirrored())) {
return false;
}
if (C.API_MARSHMALLOW) {
drawable.setLayoutDirection(layoutDirection);
}
return true;
}
public static boolean isAutoMirrored(Drawable drawable) {
return drawable.isAutoMirrored();
}
public static boolean isAutoMirrored(Drawable drawable) {
return drawable.isAutoMirrored();
}
public static boolean isAutoMirrored(Drawable drawable) {
return drawable.isAutoMirrored();
}