如何在 android 可穿戴设备中创建 WearableRecyclerView?我知道在 android devloper 中获得了有关它的信息,但它仍然很小,我需要有关它的完整教程。
问问题
1166 次
1 回答
0
您应该在主 xml 布局中添加它:
<android.support.wear.widget.WearableRecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/recycler_launcher_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical" />
并像普通的 RecyclerView 一样使用它,即添加一个 Adapter 等。
于 2017-08-05T17:16:17.607 回答