简体   繁体   English

在什么设备上使用android.support.v4.os类?

[英]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 还是应该使用它来使新手机支持旧设备

  1. When should I use this numerous support.v17, support.v13 packages? 我什么时候应该使用大量的support.v17,support.v13软件包?
  2. What is backward compatible? 什么是向后兼容?

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 例如

  • support v4 : minSdk=4 支持v4:minSdk = 4
  • v7 appcompat library: minSdk=7 v7 appcompat库:minSdk = 7
  • v7 recyclerview library: minSdk = 7 v7 recyclerview库:minSdk = 7
  • v7 CardView library: minSdk = 7 v7 CardView库:minSdk = 7

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.

相关问题 我用什么代替android.support.v7.preference.Preference中删除的onCreateView()方法? - What do I use in place of the removed onCreateView() method in android.support.v7.preference.Preference? Android:我应该使用什么视频格式/编码来支持大多数Android设备 - Android: What video format/encoding should I use to support most of the android devices 我要在以下Android游戏中使用哪些容器/类? - What containers/classes do I want to use for the following android game? 在ADT 17之后,如何使用ActionBarSherlock和Android支持v4库? - After ADT 17, how do I use ActionBarSherlock AND the Android Support v4 library? 无法解决:“ com.android.support:appcompat-v7”无所谓 - Failed to Resolve: 'com.android.support:appcompat-v7' No Matter What I Do 我需要14种不同的布局来支持所有Android设备吗? - Do I need 14 different layouts to support all Android devices? 如何在Android OS上使用Admob? - How do I use Admob on the Android OS? android-support-v4删除未使用的类 - android-support-v4 remove unused classes Log.d(“ LOG”,“ v的值:” + v)打印的这些值是什么?如何使用它们? 安卓系统 - What are these values printed by Log.d(“LOG”,“Value of v: ” + v) and how do I use them? Android 我怎么知道何时使用支持类? - How do I know when to use support classes?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM