// android.support.wearable.view.BoxInsetLayout
app:layout_box="left|bottom|right"
...您的列表视图和其他内容
android.support.wearable.view.BoxInsetLayout>
如果您正在使用wearableRecyclerView,请使用CircularChildLayoutManager mChildLayoutManager = new CircularChildLayoutManager(mContext);
,并将其设置为您的recycler视图的布局管理器。mRecyclerView.setLayoutManager(mChildLayoutManager);
这个API现在被重命名为CurvedChildLayoutManager
所以使用:
val layoutManager = CurvedChildLayoutManager(this)
recyclerView.layoutManager = layoutManager
PS: 关于主题问题,您不需要使用 app:layout_box
,只需在您的 WearableRecyclerView
上使用 android:scrollbars="vertical"
即可。
https://developer.android.com/reference/android/support/wearable/view/CurvedChildLayoutManager.html