问题描述
在电视设备上进行开发时遇到麻烦,"v17 leanback库"可以支持2.x或4.x设备吗?
"v17 leanback库"是电视支持库.它要求应用程序的minSdkVersion为"android-L",因此该应用程序不能在2.x或4.x设备上运行. >
您可以访问在此处输入链接描述以获取更多信息.
这似乎是一个很老的问题,而且自Lollipop发布以来,我想很容易地说是的,因为Leanback API已集成到支持中库.
compile 'com.android.support:leanback-v17:21.0.0'
实际上,我在Android KitKat上实现了示例和我的自定义应用程序时感到很开心,而且一切都像个魅力.
尽管有趣,但您不会在Lollipop上看到漂亮的过渡效果.
编辑:重要的是要知道leanback库支持从17开始的所有API级别.但是,您将不会拥有所有转换,并且BackgroundManager在API之前将无法运行21.
I have some trouble when develop on TV device, Can "v17 leanback library" support 2.x or 4.x device?
"v17 leanback library" is a TV Support Libraries.It request the app's minSdkVersion is "android-L",so app can't run on 2.x or 4.x device.Do you have some suggest?
you can visit enter link description here for more infomation.
This seems to be quite an old question and since the Lollipop announcement, I guess it's easy to say that yes, since the Leanback API has been integrated in a support library.
compile 'com.android.support:leanback-v17:21.0.0'
I actually had some fun implementing the samples and my custom apps using it on Android KitKat and it all works like a charm.
Interesting to say though, you won't have the nice transitions as you can see them on Lollipop.
Edit: It is important to know that the leanback library supports all API levels starting from 17. However, you won't have all transitions and the BackgroundManager will not work prior to API 21.
这篇关于"v17 leanback库"(Android电视支持库)可以支持2.x或4.x设备吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!