Изогнутые полосы прокрутки в WearableRecyclerView - PullRequest
0 голосов
/ 23 мая 2018

Я пытаюсь отобразить изогнутые полосы прокрутки на WearableRecyclerView, но он не работает, вот что у меня есть:

В основном упражнении у меня есть это:

    <android.support.wear.widget.drawer.WearableDrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/homeContainer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

</android.support.wear.widget.drawer.WearableDrawerLayout>

Я заменяюhomeContainer с фрагментом, который выглядит следующим образом:

<?xml version="1.0" encoding="utf-8"?>
<android.support.wear.widget.SwipeDismissFrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".fragments.ScheduleFragment"
    android:background="@color/black"
    android:verticalScrollbarPosition="right">

    <android.support.wear.widget.WearableRecyclerView
        android:id="@+id/vesselsWRV"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:scrollbars="vertical"/>

</android.support.wear.widget.SwipeDismissFrameLayout>

Мне нужно, чтобы фрагмент был смахивающим, поэтому носимый рециклер обернут внутри swipedismiss.Строка для утилизатора выглядит следующим образом:

<android.support.wear.widget.BoxInsetLayout
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <android.support.v7.widget.CardView
        android:id="@+id/terminalRow"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:cardBackgroundColor="@color/cardview_dark_background"
        app:cardCornerRadius="5dp"
        app:boxedEdges="left|right">

        <android.support.constraint.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/vesselPicture"
                android:layout_width="60dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:layout_marginTop="8dp"
                android:src="@drawable/vessel"
                android:tint="@color/white"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

        </android.support.constraint.ConstraintLayout>

    </android.support.v7.widget.CardView>

</android.support.wear.widget.BoxInsetLayout>

Все работает нормально: фрагмент можно пролистать, список в штучной упаковке, а полоса прокрутки находится на правом краю экрана, но это не такизогнутый.Я ценю любую помощь в этом вопросе.

Скриншот списка с полосой прокрутки

...