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
wear-os


source to share


No one has answered this question yet

Check out similar questions:

eleven
Deploying Android Wearable Apps to Moto 360 for Debugging Purpose
five
CircledImageView always has a rectangular image in front of the circle
3
How to determine the height of the black bar on the Moto 360?
3
Moto 360 emulator for Android
2
My Wear app rotates and streams to Moto 360
2
List of sensors in Moto 360
0
Android to carry GPS on moto 360 gen 1
0
Voice to text with Moto 360
0
Connect to moto 360 without Android app
0
Vertical scrolling in layouts is suppressed when used in GridViewPager in Android Wear?



All Articles
Loading...
X
Show
Funny
Dev
Pics