如何在 android Wear 2.0 中创建一个弯曲的滚动条? [英] How to Create a curved scrollbar in android wear 2.0?
本文介绍了如何在 android Wear 2.0 中创建一个弯曲的滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 WearableRecyclerView 创建一个弯曲的布局,但默认滚动条仍然是垂直的.有没有办法像 android wear 2.0 launcher 一样创建一个弯曲的滚动条?
I am using WearableRecyclerView to create a curved layout,but the default scrollbar is still vertical.Is there a way to create a curved scrollbar like android wear 2.0 launcher?
推荐答案
实际上,对于占据整个屏幕的任何可滚动视图,滚动条都是圆形的.这是 Wear 2.0 的框架功能.
Actually, the scrollbars are circular for any scrollable View that takes up the whole screen. It's a framework feature for Wear 2.0.
如果滚动条仍然是垂直的,请确保您的视图确实填满了整个屏幕 - 将其设置为 match_parent 并作为顶级根视图.
If the scrollbars are still vertical, make sure your View really does fill up the whole screen - set it to match_parent and as a top level root View.
这篇关于如何在 android Wear 2.0 中创建一个弯曲的滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文