How to get the Coordinator Layout to apply behavior after scrollTo function?
There is a CoordinatorLayout that contains an AppBarLayout and a NestedScrollView, which has a TextView. The TextView has Markdown text. I want to scroll to the anchor (#header). The code below works as expected, but after calling NestedScrollView.scrollTo, the CoordinatorLayout doesn't trigger the behaviour of hiding the AppBarLayout when scrolling.
What needs to be done in order for the CoordinatorLayout to receive a scroll event triggered by the code? I have tried to use smoothScrollTo,...