Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7820845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:27:05+00:00 2026-06-02T07:27:05+00:00

I apply a custom theme to my activity with: <activity android:theme=@style/MyTheme> , in which

  • 0

I apply a custom theme to my activity with: <activity android:theme="@style/MyTheme">, in which I define the size of the ActionBarSherlock I use in this activity. Something like that:

<style name="MyTheme" parent="@style/Theme.Sherlock.Light.DarkActionBar">
    <item name="actionBarSize">45dp</item>                             
    <item name="android:actionBarSize">45dp</item>     
</style>

While this size is good for portrait mode, I find it too big in landscape mode. How can I apply a different theme in landscape mode or how could I just change the action bar size when the user uses the application in landscape orientation? Any suggestions? Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:27:07+00:00Added an answer on June 2, 2026 at 7:27 am

    create two different styles.xml. Put one into res/values-port and the other into res/values-land

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

General approach in GWT is to use Panels and then apply custom CSS themes
I have a few custom form validation rules I wish to apply. Things like
I have a map in which I apply a custom overlay using KMbox overlay
I 'd like to enable the user to apply a custom filter to a
I'm really lost on this case. I am trying to apply a custom MVC
I have a gwt application which I need to apply custom themes for specific
reading the docs here:http://grails.org/plugin/jquery-ui it says to use a custom theme I should put
I am working on one project. In that I made one custom theme which
I use a plugin called quicksand in my wordpress theme this plugin load the
If I apply a custom attribute to a class, for example: [Foo] class Bar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.