Skip to content

Scrolling to item position is not working #97

@EliYakubov77

Description

@EliYakubov77

I try to use scrollTo function.
expandableLayout.scrollTo(0, myViewItem.top).
I get the item with the position I wanted, but all the items that appeared before are gone.

`
<net.cachapa.expandablelayout.ExpandableLayout
android:id="@+id/levelsEL"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/buildingOrProcessesTV"
style="@style/CardItemExpandableLayout" >

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/levelsRV"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp" />

</net.cachapa.expandablelayout.ExpandableLayout>

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions