Android collapse any view on scroll - android

I don't have an action bar in my activity. At the top is a search bar and below that are a couple of chips, which assist filtering.
I want to collapse just the chipgroup on scrolling. Is this possible with an animation?
The only things I found were using the action bar.

Related

Adding tool bar as an Action bar creating additional margin

I'm trying to build a layout which is using CollapsingToolbarLayout to perform collapse of Toolbar and allow Recycle View contain to scroll.
It work great except.
View that I want to hookup on scrolling, and scroll till action bar height.
What I need:
Scroll Sticky Header with/till it's own size, not action bar size.
Small Snippet from XML i'm using added here.
What is my observation:
There must be some dependency between CollapsingToolbarLayout and toolbar I'm using as an Action Bar.
If use theme with Default Action bar, then everything worked so perfect.
Any suggestion if I'm missing anything!!

Showing Contextual Action Bar in front on TabLayout

I have a screen with TabLayout (Using Android Design Support library) at the top and a ListView below it. I don't have any Action Bar.
Whenever I select one or more Items of ListView I show Contextual Action Bar to perform some operations on selected rows. The CAB is shown above TabLayout. It seems like whole screen is shifted downwards which is not a good user experience. I want to show the CAB in front of TabLayout. The tabs should be behind CAB.
Below is my expected output:
Please help me out. How can I show CAB in front of TabLayout?
Set android:windowActionModeOverlay to true in your theme. If you're using the AppCompat library, set windowActionModeOverlay in your app's attribute namespace to true.

Actionbar Push up relative to screen

I have achieved hiding and showing the actionbar on scroll however I have a few problems with it. 1.) when I click on a tab in my application that requires the action bar to be show then return to the screen where the action bar can be hidden, there is a white space that is the exact size of the action bar under the action bar. 2.) There is an annoying flicker sometimes when the action bar is being hidden or unhidden.
I have seen on many google applications and applications such as instagram where the action bar pushes up relative to the position on screen. I have searched for libraries or ideas on how to implement that technique but have not found any? Is there any way I can at least get rid of the actionbar flicker or is there a library where I can implement the actionbar push up on scroll in my application?

Action Bar Sherlock - Hide Actions on Collapse

I have three actions with the property SHOW_AS_ACTION_ALWAYS since I want to have the three of them always showing. However one of them has a collapse action view, and I wan't to hide the other two to have the full action bar for my layout when I click the action. Is there any way to do this?
This only seems to work if I use SHOW_AS_ACTION_IF_ROOM but this way I only get two items on the action bar instead of three.

Make android cut/copy/paste bar overlap other views

I'm not using an action bar in my app, so when the cut/copy/paste bar is shown at the top of the screen it pushes all the other views down. Is it possible for it to instead overlap the other views and not move them? TIA

Categories

Resources