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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:01:50+00:00 2026-05-28T13:01:50+00:00

I know in order to design for android devices you can make 2 images

  • 0

I know in order to design for android devices you can make 2 images named the same thing with different resolutions and put them in the md and hd drawable folders. Android will call the correct version based on the devices screen density.

My question is this: If I have an xml file that defines a clickable image like so:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item 
 android:state_selected="false"
    android:state_pressed="false" 
    android:drawable="@drawable/listitemorange" />
<item android:state_pressed="true" 
    android:drawable="@drawable/orange_click" />
<item android:state_selected="true"
 android:state_pressed="false" 
    android:drawable="@drawable/listitemorange" />
</selector>

I have the listitemorange and the orange_click images in both the md and hd folders, but do I need to have a copy of the xml file itself in both folders, or can I just keep in it in the md folder and it will still know to call the hd images when on an hd screen?

Please let me know if that doesn’t make sense… thanks!

  • 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-05-28T13:01:51+00:00Added an answer on May 28, 2026 at 1:01 pm

    if you put the xml in the drawable folder, and the image in drawable-md&drawable-hd, everything will be okay.

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

Sidebar

Related Questions

I know that you can apply CSS in order to style objects in Flex
I know you can ALTER the column order in MySQL with FIRST and AFTER,
I never really know what order is the best installation or if it even
If you know the order of a B-tree, how do you figure out the
Does anyone know of a site or page, or know the order of execution
i new to neko vm. may i know in order to use it, i
In order to know how many times a pattern exists in current buffer, I
I know that in order to programmatically add my own taxonomy to a node
Anyone know how to programmatically set the z order of UIImageViews? The order of
Anyone know of a way to guarantee plugin startup order? I have a plugin

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.