Android Wear BoxInsetLayout not working on Moto 360
I am trying to make an Android Wear app with two pages. I created:
- InsetActivity
- GridViewPager
- FragmentGridPagerAdapter
- Two classes extended from CardFragment
- Two custom layout files that use BoxInsetLayout
One of the layout files looks like this:
<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>
InsetActivity.isRound () returns true, but BoxInsetLayout.isRound () returns false.
The console displays two error messages:
E/RecyclerView﹕ No adapter attached; skipping layout
What's wrong?
+3
source to share
No one has answered this question yet
Check out similar questions: