简体   繁体   English

BrowseFragment 和 BrowseSupportFragment 类之间的区别?

[英]Difference between the classes BrowseFragment and BrowseSupportFragment?

What is the difference between the classes BrowseFragment and BrowseSupportFragment as mentioned in the android developer documentation? android 开发者文档中提到的BrowseFragmentBrowseSupportFragment类有什么区别?

https://developer.android.com/reference/android/support/v17/leanback/app/package-summary.html https://developer.android.com/reference/android/support/v17/leanback/app/package-summary.html

Most of the methods and documentation is same for both the classes, so from documentation it's really difficult to figure out which class to use according to the use cases.这两个类的大多数方法和文档都是相同的,因此从文档中很难根据用例确定使用哪个类。

Can someone please help to understand the difference between these classes and guide to choose with some example use cases?有人可以帮助理解这些类之间的区别并指导选择一些示例用例吗?

BrowseSupportFragment extends from root android.support.v4.app.Fragment which is static library support version of the framework's android.app.Fragment . BrowseSupportFragment从根android.support.v4.app.Fragment扩展,它是框架的android.app.Fragment static库支持版本。 Used to write apps that run on platforms prior to Android 3.0.用于编写在Android 3.0.之前的平台上运行的应用程序Android 3.0. When running on Android 3.0 or above, this implementation is still used;Android 3.0以上版本上运行时,仍使用此实现; it does not try to switch to the framework's android.app.Fragment implementation.它不会尝试切换到框架的android.app.Fragment实现。

See documentation查看文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM