I have implemented the action bar (not the quick action bar) in my app. The action bar is based on the one used in the Google IO app and the Facebook app. I am stumped though, trying to understand how to keep the action bar fixed. When an activity needs scrolling, the action bar needs to be remain fixed. Can anyone help with this problem?
Share
Some good stuff in Jon’s post, but if you’re just looking for the simple answer to work with your existing layouts/activities, just use a vertical
LinearLayoutwith the first child as the titlebar and the second as the ScrollView, setting the ScrollView height tofill_parent(or settingfillViewportto true). Alternatively, use a RelativeLayout with the scrollview set to layout below the title, or with a top margin on the scrollview equal to the height of the title bar.