create android action bar menu with Sherlock - android

I want to create android action bar with Sherlock according to bottom picture.
how to put the title bar on center and my lists icon align to be right
although another icon set be left.

ActionbarSherlock is very much outdated. You should use the AppCompat library, for which a ton of documentation exists.

Related

center align icons in titanium action bar for android

Is there any possible way to center align the action item icons that are shown in action bar of titanium app for android. I have searched a lot of places for this solution but had no luck. I want the action bar to look like the below image. Also tell me the way to not show app title in the action bar.
This is not a Titanium issue.
As you can read in Google's documentation, you won't be able to center anything in the ActionBar. Default (and expected) behaviour is to align action icons on the right (or left if reversed).
I don't recommend it, as it goes against Google's guidelines, but you will be able to center icons if you create a fake ActionBar:
- Remove native ActionBar from any window in your app
- Create a Titanium View that mimics the ActionBar
- Add icons and bind click events.
That's it, you are done.

Action Bar styling [Top and Bottom]

I am a beginner in android development,
I am trying to style action bar in top and bottom
like this in top
Action Bar Top
and bottom
Action Bar Bottom
I have using splitActionBarWhenNarrow to split action bar...
but I am unable to style action bar and show custom button in left or right side of action bar..
How do I achieve this?
I am using API 15 as a minimum requirement
any suggestion will be appreciated..
Use new Toolbar introduced in material design, rather than using ActionBar.
You can create your own Style.xml file with styles for customization.

Customize Navigation Drawer Action Bar (App Compact) in android

I want to customize navigation drawer app compact action bar, I want to remove app icon from that and want to make its title center in action bar.
I have applied all solutions , but nothing is working with all the conditions.
Please give me some clue for applying it correctly
You should creat a customize action bar. Then, if you want you can add a button that can open and close your drawerlayout.
I have solved my problem. As mentioned, I have two problems, and I solved that in following way :
1) For making title centre, we need to make custom layout of action bar, and need to remove action bar title.
2) for remove app icon from action bar, we need to set android:icon property of that activity in manifest with transparent image or colour.

Put android tabs in center of action bar

I tried Android action bar with tabs. As you see in this picture:
(source: persiangig.com)
My action bar looks good in phones but in tablets it is not right, the tabs stick left. This picture shows what I mean, how can I put the tabs to center in tablets too?
(source: persiangig.com)
The tabs are aligned left because, in Android, the action bar is used for both navigation and Activity- or Fragment-specific actions. You don't have any in this screenshot, but menu actions that are added to the action bar will be aligned to the right.
If you must have your tabs centered for some reason, you'll have to write your own action bar. I would recommend against this, since it's a lot of work to intentionally go against user expectations. Instead, use Android's built-in action bar layout and design your app to accommodate it.

Can Android Actionbar be placed vertically?

I want to have an action bar placed vertically(Tablet App)
Can I have this? I know the default action bar does not support this.
Can sherlock action bar?
Can any other?
I have given this time but I dont see any solution to this.
Can sherlock action bar?
No. It backports what's available in the built-in ActionBar.
Can any other?
AFAIK no library provides such functionality.
Can I have this?
Of course you can. Depending on what you use from ActionBar this could be easy. On The image you have provided there is a FrameLayout with two Buttons and additionally hidden overlay ListView after pressing bottom Button. Not too much work.

Categories

Resources