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 8883909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:56:00+00:00 2026-06-14T20:56:00+00:00

What is best practice for creating resolution specific resources for Android phones that use

  • 0

What is best practice for creating resolution specific resources for Android phones that use soft-keys for navigation?

Can I create a specific directory in the res folder, or should the resources be created at runtime?

I have specific resources for each resolution (currently, only 2 resolutions are supported), however, in case the phone has soft-keys, I will need different resources.

I know that this is bad design, but this decision is not up to me.

Thanks in advance.

  • 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-14T20:56:01+00:00Added an answer on June 14, 2026 at 8:56 pm

    I found a solution to this problem. I created a folders values-1184×720 and values-1280×720. Galaxy S 3 get resources from 1280×720 and Galaxy Nexus get resources from 1184×720. Since all targete devices with soft keys are with same resolution as Galaxy Nexus this solves my problem.

    Soft keys are 48dp. In xhdpi this is 96px. So in resolution 1280×720 reals screen estate is 1184×720.

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

Sidebar

Related Questions

Just wondering what is the best practice way of creating a class that needs
The best practice seems to be to use assert for a condition that should
Is it forbidden or not a best practice to create objects using new. Creating
We all know that for relational databases it is best practice to use numerical
I understand that when creating a custom component, it's normally best practice to defer
Is there a library or best-practice way of creating a menu with navigation links
Is there a generally-accepted best practice for creating an event handler that unsubscribes itself?
Is there a way in Cocoa that is currently considered best practice for creating
Whats the best practice approach to creating a form that is used to both
What's the best practice for creating drop shadows around html where the html can

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.