[英]For what devices do I use this android.support.v4.os classes?
In Android support library docs about android.support.v4.os: 在有关android.support.v4.os的Android支持库文档中:
Support android.os classes to assist with development of applications for android API level 4 or later.
支持android.os类,以协助开发适用于android API级别4或更高版本的应用程序。
"Or later" means API 5,6,7 etc.? “或更高版本”是指API 5,6,7等? But a device running API 22(latest at the moment) will automatically support older devices?
但是运行API 22(目前最新)的设备会自动支持较旧的设备吗?
I don't quite understand it - it means, I should use this class to make old API 4 devices use my modern API 22 app? 我不太了解-这意味着,我应该使用此类让旧的API 4设备使用我的现代API 22应用程序? Or should I use it to make new phones support old devices
还是应该使用它来使新手机支持旧设备
Can you explain typical situation? 您能解释一下典型情况吗?
"Or later" means api5,6,7 etc?
“以后”是指api5,6,7等?
It means that this code can be used in devices with a old version of Android (api7= Android 2.1, api=8 Android 2.2.... api14 = Android 4.0) 这意味着该代码可以在具有旧版本Android的设备中使用(api7 = Android 2.1,api = 8 Android 2.2 .... api14 = Android 4.0)
but a device running api22(latest at the moment) will already automatically support older devices?
但是运行api22(目前最新)的设备是否已自动支持较旧的设备?
A device can run only a version of Android. 设备只能运行Android版本。 If it is running api22, it means that it has Android 5.1
如果运行的是api22,则表示它具有Android 5.1
I dont' quite understand it - it means, i should use this class to make old api 4 devices use my modern api22 app?
我不太了解-这意味着,我应该使用此类使旧的api 4设备使用我的现代api22应用程序? or should I use it to make new phones support old devices
还是应该用它来使新手机支持旧设备
It means that you can use this library to backport some features introduced with the last api (for example 21) to old devices running a previous api level. 这意味着您可以使用此库将最后一个api(例如21)引入的某些功能移植到运行先前api级别的旧设备。
1.When should i use this numerous support.v17, support.v13 packages?
1.何时应使用大量的support.v17,support.v13软件包? 2. what is backward compatible?
2.什么是向后兼容?
You can use them, when you need them... If you would like to use the Google cards you can use the v7 cardview
library for example. 您可以在需要时使用它们...如果您想使用Google卡,则可以使用
v7 cardview
库。
As described in the official link : 如官方链接中所述 :
Each Support Library is backward-compatible to a specific Android API level.
For example the 例如
can you explain typical situation?
您能解释一下典型情况吗?
API21 introduced a new widget, the Toolbar . API21引入了一个新的小部件“ 工具栏” 。 This widget can be used only in device with API >=21.
该窗口小部件只能在API> = 21的设备中使用。
With the appcompat
rel.21 (a v7 Support Libraries) you can use the Toolbar (pay attention to the package) to implement your Toolbar in old devices running API>=7. 借助
appcompat
rel.21(v7支持库),您可以使用工具栏 (请注意软件包)在运行API> = 7的旧设备中实现工具栏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.