Wear os Android Wear BoxInsettLayout不';我不能在Moto 360上工作
我正在尝试制作一个有两个页面的Android Wear应用程序。 我创建了:Wear os Android Wear BoxInsettLayout不';我不能在Moto 360上工作,wear-os,moto-360,Wear Os,Moto 360,我正在尝试制作一个有两个页面的Android Wear应用程序。 我创建了: 触觉 GridViewPager 碎片雷达 从CardFragment扩展的两个类 使用BoxInsetLayout的两个自定义布局文件 其中一个布局文件如下所示: <android.support.wearable.view.BoxInsetLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app=
- 触觉
- GridViewPager
- 碎片雷达
- 从CardFragment扩展的两个类
- 使用BoxInsetLayout的两个自定义布局文件
<android.support.wearable.view.BoxInsetLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/history_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background">
<FrameLayout
android:id="@+id/frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_box="all">
<android.support.wearable.view.WearableListView
android:id="@+id/history_list"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.wearable.view.WearableListView>
</FrameLayout>
</android.support.wearable.view.BoxInsetLayout>
出什么事了?这方面运气好吗?我也有同样的问题。我听说moto上有一些bug,但是isRound()函数现在我使用Activity/Fragment而不是Insertivity/CardFragment,使用LinearLayout而不是FrameLayout。我找不到问题出在哪里,但它现在起作用了。
E/RecyclerView﹕ No adapter attached; skipping layout