在BrowseFragment另一行层 [英] Another Row Layer on BrowseFragment
问题描述
我不知道是否它可以使用BrowseFragment与行的另一层/水平。
像
I wonder if its possible to use a BrowseFragment with another Layer/Level of Rows. something like
cat1 - row1 -> item1 -> subrow1
cat2 - row2 -> item1 -> subrow2
和等。
有什么我可以用一个BrowseFragment和适配器做的就是该层次结构或者我应该实现它自己?
and so on. Is there something i can do with a BrowseFragment and the Adapter to get that hierarchy or should i implement it myself?
和我怎么能实现我自己?我会催生一个VerticalRowFragment另一个活动但那不是完全一样的。
And how could i implement that myself? i would spawn another Activity with a VerticalRowFragment but thats not exactly the same.
任何提示或的窍门是受欢迎的。
Any hints or tipps are welcome.
推荐答案
是的,这是可能的。看看这个答案。我试图完成本系列教程,解释(并显示code)的第二部分,即正是这么做的。
Yes, it is possible. Take a look at this answer. I'm trying to finish the second part of the tutorial series, that explains (and shows the code) that does exactly that.
如果你想看到一个例子(你有一台Nexus播放器/ ADT-1),请检查出的 musixmatch应用。它是建立使用相同的技术。
If you want to see an example (and you have a Nexus Player / ADT-1), please check out the musixmatch application. It is build using that exact same technique.
修改
下面的的文章!这是,如果你想看看href=\"https://medium.com/building-for-android-tv\" rel=\"nofollow\">大集合,一
Here's the article! It's part of a bigger collection, if you want to have a look.
这篇关于在BrowseFragment另一行层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!