Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android action Bar customization

my app is using using Sherlock action bar. my designer gave me a new design.

  1. the app logo need to be in the middle
  2. 2 action items to the left and 2 actionitems to the right of the logo
  3. the app logo height is 1.5 the size of the actionbar (it suppose to be a little overflow)

is it possible to create a custom layout for the actionbar to implement this desing ? or should i remove my actionbar and implement the design my own ?

if item #3 will be optional , does it changes your answers ?

Thanks

like image 1000
ibm123 Avatar asked Oct 31 '12 06:10

ibm123


People also ask

How can I customize my Android Action Bar?

This example demonstrate about how to create a custom action bar in Android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main. xml.

How do you style an action bar?

To change the action bar background, create a custom theme for your activity that overrides the actionBarStyle property. This property points to another style in which you can override the background property to specify a drawable resource for the action bar background.

Which view can be used to customize the action bar?

Custom Action Bar Layout The view layout consists of two ImageButtons that represent forward and back image buttons and a TextView in the center.

How can I change the color of action bar?

Just go to res/values/styles.edit the xml file to change the color of action bar.


2 Answers

I'm sorry, but kick your designer in the...

He doesn't get Android at all and shouldn't design for Android. Either it's an ActionBar and then you should treat is as such and you (or your designer) should follow the common pattern on Android, or it is not.

If it is no ActionBar, please do not use an ActionBar (no matter which library) and create a custom design that deviates enough from an ActionBar so as not to confuse users!

like image 127
Wolfram Rittmeyer Avatar answered Oct 11 '22 04:10

Wolfram Rittmeyer


Please forward your designer, and your manager to Android design patterns site at http://developer.android.com/design/patterns/actionbar.html . Also tell them that if they want Google to ever feature them, they pretty much have to adhere to these. With all failed use full screen layout and create a custom control on the top

like image 31
Bostone Avatar answered Oct 11 '22 02:10

Bostone