语言

Build.VERSION_CODES.M 字段

定义

注意

This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.

M.

[Android.Runtime.Register("M", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)]
public const Android.OS.BuildVersionCodes M = 23;
[<Android.Runtime.Register("M", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)>]
val mutable M : Android.OS.BuildVersionCodes

字段值

Value = 23
属性

注解

M.

2015 年 10 月公开发布为 Android 6.0。

面向此版本或更高版本的应用程序将获取这些行为的新更改。 有关此版本的详细信息,请参阅 Android 6.0 Marshmallow 概述。

<ul><li> Runtime 权限。 在安装时不再授予危险权限,但必须在运行时android.app.Activity#requestPermissions通过应用程序请求危险权限。</li li><> 蓝牙和 Wi-Fi 扫描现在需要保留位置权限。<如果给定时区为非 Olson,则 /li li><>android.app.AlarmManager#setTimeZone AlarmManager.setTimeZone 将失败。</li li><> 活动转换将仅返回返回返回的视图层次结构中映射的共享元素返回到调用活动。</li li><>android.view.View 允许许多可能破坏现有应用的行为:如果 restore() 被调用太多次,则画布会引发异常,小组件在返回 UNSPECIFIED 度量值规范时可能会返回提示大小,并且它将尊重属性android.R.attr#foreground、android.R.attr#foregroundGravity属性android.R.attr#foregroundTint和。android.R.attr#foregroundTintMode</li li><>android.view.MotionEvent#getButtonState MotionEvent.getButtonState 将不再报告android.view.MotionEvent#BUTTON_PRIMARY,android.view.MotionEvent#BUTTON_SECONDARY并作为同义词。android.view.MotionEvent#BUTTON_STYLUS_PRIMARYandroid.view.MotionEvent#BUTTON_STYLUS_SECONDARY</li li><>android.widget.ScrollView 现在在测量时尊重布局参数边距。</li></ul>

适用于 . 的 android.os.Build.VERSION_CODES.MJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于