3 Replies - 769 Views - Last Post: 25 September 2013 - 10:15 AM

#1 GaryDoo  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 131
  • Joined: 10-February 13

Resize Action Bar pre API 11

Posted 23 September 2013 - 08:42 AM

Hi,

I need to resize my action bar in the application. Post API 11 that's not problem, I'm using

<item name="android:actionBarSize">44dp</item> 

in a style.

My question is, if I want to resize the action bar pre api 11, how do I go about it, I want the app to look right on all devices. Would anyone know of a way to do this? I have researched but I don't seem to come up with any solutions on this particular issue....

Any help would be appreciated.

Is This A Good Question/Topic? 0
  • +

Replies To: Resize Action Bar pre API 11

#2 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 838
  • View blog
  • Posts: 2,575
  • Joined: 29-July 11

Re: Resize Action Bar pre API 11

Posted 23 September 2013 - 11:46 AM

I don't know about the compatibility library, but you can do this just as you are with ActionBarSherlock.
Was This Post Helpful? 1
  • +
  • -

#3 GaryDoo  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 131
  • Joined: 10-February 13

Re: Resize Action Bar pre API 11

Posted 25 September 2013 - 07:57 AM

@farrell2k, thanks for your reply. Unfortunately that isn't an option at the moment, I had actionbar sherlock and when the compatibility library came out, I changed it out. Now I have this issue in the compatibility library!

I was hoping there maybe a work around it, getting the screen size or something?
Was This Post Helpful? 0
  • +
  • -

#4 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 838
  • View blog
  • Posts: 2,575
  • Joined: 29-July 11

Re: Resize Action Bar pre API 11

Posted 25 September 2013 - 10:15 AM

You could try getting the activity's size, then setting the view of the actionbar based on that. Might work.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1