Can “v17 leanback library”(android tv support library) support 2.x or 4.x device?

允我心安 提交于 2020-01-15 16:29:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/25438755/can-v17-leanback-libraryandroid-tv-support-library-support-2-x-or-4-x-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!