Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling to item position is not working #97

Open
EliYakubov77 opened this issue Sep 11, 2022 · 0 comments
Open

Scrolling to item position is not working #97

EliYakubov77 opened this issue Sep 11, 2022 · 0 comments

Comments

@EliYakubov77
Copy link

EliYakubov77 commented Sep 11, 2022

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>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant