I am writing a chat on Compose and need to refresh list of messages when swipe from bottom of screen.
Is should looks like standard SwipeRefresh, but reverse. Is it possible to customise SwipeRefresh for this purpose?
Related
I am trying to implement WebView in a ModalBottomSheetLayout. Issue is that WebView content is not scrolling inside bottom sheet. It works fine in normal compose view. Couldn't find anything workable. Is there a way to make it working?
I am working on compose to create a similar behavior as the YouTube collapsable mini player. I can get the composable to collapse but could not resize the composable hosted inside the navhost which is why I am looking out for guidance or tips here.
I am migrating an app to Jetpack Compose and I have the following situation on a view/compose hybrid screen:
The layout root element is a CoordinatorLayout that has a top bar which is collapsible.
The content is a FragmentViewPager, and one of the pages is the Fragment I am migrating to Compose.
When I scroll the LazyColumn inside this fragment, the top bar won't collapse/expand.
My question is: Can I do something to make both pieces work together? i.e: When I scroll a LazyColumn, a CoordinatorLayout that contains it will make it's top bar collapse/expand.
It looks like the Compose Interop Android Documentation was recently updated with a subsection on Nested Scrolling With Views. At this time, Android CoordinatorLayout and Compose LazyColumn interop UX is not officially supported. The official Google Issue Tracker is here.
I need to achieve the following behavior:
I have an activity with some data and views in it. At the bottom there is a search bar. What I need is to make RecyclerView slide into the screen or just pull it up when you start typing in the search bar. When RecyclerView is on the screen and user keeps scrolling down I need to collapse it back to the starting position.
What would be the right approach to achieve this behavior?
You can use BottomSheetDialog as an option and put there your recycler as a part of its layout.
Here is the design guidelines and here is the implementation.
Hello how do I hide a floating action button when scrolling down like in the Google+ app?
I have seen various ways of detecting scrolling in a listview, but what I've seen so far is only detecting the rendering of child cells as they move on/off screen. This isn't what Google+ is doing at all and this won't work for me because I have a large header cell and it is painfully obvious that the floating action button does not disappear fast enough.
Any insight appreciated
Google plus doesn't use ListView, it uses the new RecyclerView the new RecyclerView have an OnScrollListener that receives pixels scrolled. They then use standard View animations and transformations to move the thing out of view. With View.setTranslationY(val); and View.animate().setTranslationYBy(val);
this project has couple of example of hiding and showing fab button, actionbar and tabs.
https://github.com/lawloretienne/QuickReturn