Android TV:使用标签布局(Android TV: Using tab layout)

编程入门 行业动态 更新时间:2024-10-02 08:20:42
Android TV:使用标签布局(Android TV: Using tab layout)

我想问一下,使用TabLayout进行电视应用是否是一种推荐的导航方式? 我使用tablayout的原因是,在我的应用程序中,我从服务器接收频道,并且频道属于不同的类别

I would like to ask if using TabLayout for TV apps is a recommended way for navigation or not ? The reason why I am using tablayout is that in my app i receive channels from a server and the channels belong to different categories

最满意答案

使用TabLayout进行电视不是一个好主意。 即使它在Android TV上支持,用户体验外观也不是那么好。 它适合更大的屏幕,而不是提供Cinematic体验。

对于电视体验,Google创建了一个Leanback支持库,其中包含支持在电视设备上构建用户界面的API。 要显示按类别分组的不同频道,您应该使用BrowserFragment。 它由RowFragment和HeaderFragment组成。

有关电视设计指南行的更多详细信息:

适用于Android TV的Google设计指南系列 适用于Android电视设计信息的YouTube APP

Using TabLayout for TV is not an good idea. Even though It supports on Android TV the user experience look was not so good. It is out fit for bigger screens and not give the Cinematic experience.

For TV experience, Google has created a Leanback Support Library which contains APIs to support building user interfaces on TV devices. To Show different channels grouped up in to categories - you should use BrowserFragment. It is composed with RowFragment and HeaderFragment.

For More Details for TV Design Guide lines:

Google Design Guide Line for Android TV YouTube APP for Android TV Design Information

更多推荐

tablayout,TabLayout,using,电脑培训,计算机培训,IT培训"/> <meta name="des

本文发布于:2023-08-04 20:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1422242.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:布局   标签   TV   Android   tab

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!