ActionBar animation issues - java

I am using the ObservableScrollView library to show and hide the ActionBar as you are scrolling up and down an activity. This works well but when the ActionBar is animating sliding in or out a blank area at the bottom of the screen about the size of the ActionBar is briefly pushed up.
After searching similar issues the suggested solution is to the following line to onCreate():
getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
This has had no visible effect and the issue is still present.

Solved by setting my ActionBar to overlay content in the XML style.

Related

How to make a Bottom Navigation bar with ImageView instead of Menu Items?

How can I make a working bottom navigation bar with ImageViews in a LinearLayout(Horizontal) With fragments ? instead of menu items.
if already exist then please share the source code. Please help quickly :)
Or the Question could be this :
https://github.com/qhutch/BottomSheetLayout/issues/12#issue-576279364
Oh, I found my solution not exactly but this is what I want...
I add that Bottom Navigation View in a LinearLayout(horizontal) and I delete all default Styles from BottomNavigationView. So now this is not looking like a card view. After this, I add an ImageView in the LinearLayout with a weight of a ratio of 1:3 (for 4 icons ). Now I can use effects and designs on my LinearLayout. And it is looking like how I wish. 😌
[Note: For horizontally rotated screen LinearLayout, ImageView, BottomNavigationView 's width:match-parent]

Preference Screen and nav & status bar translucent

I'm using System Bar Tint to make my status and navigation bars translucent and with the color i want. The github: https://github.com/jgilfelt/SystemBarTint
It's working perfectly! I hace one tiny problem, when the phone turns into landscape or portrait mode.
Because of the translucent status and nav, I have to get the layout and add a margin-top when im in portrait mode for example, simulating this way the space the status bar has.
But my problem comes in PreferenceScreen activity. I use:
addPreferencesFromResource(R.xml.preferences);
to create my preferences screen. And i cannot get the way to change the layoutParams.
Does anyone have a solution for this??
Thanks!
A1. Use Theme.
How to apply theme to PreferenceScreen elements of a PreferenceCategory
A2.
ListView listView = getListView();
and set layoutParams to listView.
PreferenceActivity is a subclass of ListActivity.

How can I use a custom layout between the ActionBar and the Tabs?

I want to have a custom piece of layout between my ActionBar and the Tabs. Is there any way to do this? Maybe a custom view in the ActionBar, or split tabs?
This custom part possibly means I have to adjust the height of the actionbar. I wasn't able to do that either.
So is there a way to get the app working like I designed?
Image

navigation in actionbar sherlock

I would like to implement the navigation with options like left and right button that are displayed in following URL. I found the Tab Option for android is possible via Action Bar and Tab Host Control. But I can not find the option with those two button actions.
Navigation in a UItoolbar in iOS
I also tried this by using Linear Layout and horizontal Scrollview concepts but the UI are not comfort as i wish . So If you find Anything Kindly do the needful.
If you want useing SlideNavigation use this library as i used this in my app for create Navigation SlideNavigaiton
and if you want Navigation Ontab you can use scrollable tab as you can see in sherlock actionbar sample and on other way you can Hide actionBar and create custom layout with scrollable contetn for your aim
hope to be usefull :)

Number of tabs in ActionBar

Android's ActionBar has a mode NAVIGATION_MODE_TABS. Using ActionBarSherlock 3.5.1 I have set this ActionBar and addded 5 tabs. On 2.x devices I see all tabs without horizontal scrolling. On 4.0.x I see only 3 tabs with scrollable layout. NAVIGATION_MODE_TABS of ActionBar can contain max 3 tabs in ICS? If yes, could I hack this somehow? I know, i could create custom TabHost, but it would be quite time consuming to implement it with ViewPager between tab views.
You don't need to hack anything. The ActionBar tabs have specific layout parameters that you can change pretty easily through a custom style. Google uses their own style to set them in the first place. You should take a look at this on creating custom styles. http://android-developers.blogspot.com/2011/04/customizing-action-bar.html Since you want them to look like they way Jake Wharton has them set in ActionBarSherlock, then you could make things even easier for yourself and just rip his styles out.
I had the same problem with action bar sherlock, and this post helped me.
How to manage the width of ActionBar navigation tabs?
Important part is
<style name="Theme.Styled" parent="Theme.Sherlock.Light.DarkActionBar">
<item name="actionBarStyle">#style/Widget.Styled.ActionBar</item>
<item name="android:actionBarStyle">#style/Widget.Styled.ActionBar</item>
</style>

Categories