Question: I want to hide the Actionbar if i scroll in a listview. That should looks like the new Play Store app on Android Lollipop. 
If i use getActionBar().hide() the Actionbar hides with an animation, but i want to scroll the Actiobar up.

How this works?

**Edit**

I have found that the ActionBar can hide automatically in API Level 21:

```
    @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
    setContentView(R.layout.activity_main);
    m_lvTest = (ListView)findViewById(R.id.lvTest);
    ArrayList<String> values = new ArrayList<String>();
    for (int i = 0; i < 100; i++) {
        values.add(i+" Item");
    }
    CustomAdapter adapter = new CustomAdapter(this, R.id.lvTest, values);
    m_lvTest.setAdapter(adapter);
    m_lvTest.setNestedScrollingEnabled(true);

    getActionBar().setHideOnContentScrollEnabled(true);
}

```

But it dont scroll. It animates up.

Answer: 
As Zenco found, For Google Play Store like effect, try...

* Try [this](http://developer.android.com/reference/android/widget/Toolbar.html) new Toolbar widget introduced in Lollipop (API Level 21)
* Which is also supported by [this](https://developer.android.com/reference/android/support/v7/widget/Toolbar.html) api in earlier versions of android.
* [This](http://android-developers.blogspot.in/2014/10/appcompat-v21-material-design-for-pre.html) Android Developers Blog gives a good inside on how to use it.
There is a method called '**setHideOnContentScrollEnabled(boolean)**' of **ActionBar**. ***It Enable hiding the action bar on content scroll. If enabled, the action bar will scroll out of sight along with a nested scrolling child view's content. The action bar must be in overlay mode to enable hiding on content scroll. When partially scrolled off screen the action bar is considered hidden. A call to show will cause it to return to full view.*** I think you can have a try on it with your own codes.