Hide action bar, but show when pulled down
问题 I have an action bar set up and it works great. I'd like to have it so that it is hidden until the user does something like pull down from the top of the screen, and then show it. I can't find any resources which discuss doing this. 回答1: You can also use Collapsing Toolbar <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="180dp" android:theme="@style/ThemeOverlay.AppCompat.Dark"> <android.support.design.widget.CollapsingToolbarLayout