Auto Resize a frame layout with children on recyclerview scroll - android

In my app i'm having a framelayout with many children like textviews and imageview here i want a collapsing toolbar like effect however i am unable to decide how can i achieve that while also auto resizing the children as per the scroll i already tried using a collapsing toolbar but the size of children wasn't adjusted properly as per scroll:
Here is what i'm trying to achieve:
https://www.youtube.com/watch?v=vBnrQEyGNfk
and guide or suggestions in this will be really appreciated!

Related

How to set text in recyclerview to the center with animation?

I have a recyclerview with expandable elements. When it expands I would like to have the text to align center-horizontally. I have tried to setGravity, but it is in ConstraintLayout and maybe because of that, it doesn't work.
Additionally, is it possible to add during this process with any fancy animation?

How do I animate a following filter layout in android on scroll of recyclerView

I want to animate the first image like when I scroll the recyclerview up then it should expand equal to width of the mobile device display and when I scroll down it should collapse. It's kind of expand and collapse the below black background layout when I scroll the recylcerview. How do I do this, any idea? thanks in advance.

Image Zoom In and Out with Recycler View Android

I am trying to implement a Recycler View in which the first item covers at-least half of the screen. This item has an image set as a background.
The behavior that i want to achieve is: when user scrolls upward the recycler view, the image should zoom in, and when user scrolls it downward, the image should zoom out and should be in original dimension as soon as the first item is completely visible.
I have tried using setScale() property on imageView but it's not working as expected. Please help!
Keep the first item in CollapsingToolbarLayout instead of placing it in RecyclerView and wrap both the views in CoordinatorLayout.
Then in CollapsingToolbarLayout add parallax effect using attribute collapseMode="parallax"
Finally, bound the RecyclerView scroll behavior to CollapsingToolbarLayout using property layout_behavior="#string/appbar_scrolling_view_behavior".

Android: How to change views in collapsing toolbar when scrolling

I am using collapsing toolbar. Is it somehow possible to achieve behavior, that will change multiple views in collapsing toolbar according to scrolling? For example I have three RelativeLayouts next to each other consisting of an ImageView (centered in parent) and text (below image) in collapsing toolbar. I want it for example to move image to left top, to move text to end of image and resize its height.
This wireframe shows a little what I would like to achieve:
Try use CollapsingToolbarLayout in the AppBarLayout.
Put big views to the CoollapingToolbarLayout. And Small views in the Toolbar.
You can try play with flag:
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
If you want create rely cool animation for text in the text view.
You must implement all behavior in Java code.

ExpandableListView affecting the size of Scrollview when collapsing and expanding

Let me try to explain what I want to achieve. Currently, I have a ScrollView as the main view for my layout and a linearLayout within that to place all of my content into.
In my LinearLayout, I have a bunch of textviews and a gallery, which extends out of the screen, so the user can scroll to see everything. It works.
Now, I want to add an expandableListView to the bottom of all that content, which is still in the linearLayout. The problem is when you expand the list view groups it doesn't affect the ScrollView. I had envisaged that when you expand a group it would make the linearLayout bigger, which in turn makes the scrollview bigger.
Is what I'm thinking achievable?
EDIT:
Ok I think the situation is that listViews are normally placed in a layout by themselves and have scrollviews already enabled. You just set it to fill_parent and it works fine. However, in my case, I'll need the expandableListView to display all content without scrolling, because my ScrollView will deal with that. I don't even think it possible?
It's difficult to answert without seeing your layout xml, but I think that if you set the android:layout_height of the linear layout and expandableListView to wrap_content, the first scrollView must scroll the whole view.
have you tried putting your expandable list into another linear layout and than put it in the scroll views default linear layout?

Categories

Resources