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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:24:49+00:00 2026-06-05T14:24:49+00:00

I get a lint warning when I include an icon which doesn’t have versions

  • 0

I get a lint warning when I include an icon which doesn’t have versions for different densities. That is, if I add an icon, myIcon.png, to the drawable-mdpi directory, lint will complain that I don’t have versions of myIcon.png in the other drawable directories (drawable-hdpi, -xhdpi, -xxhdpi).

I would like to suppress this warning, either for all icons, or specifically for myIcon.png.

What is the syntax I would need to add to my lint-config.xml to achieve these suppressions?

example lint-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<lint>
  <issue id="MissingTranslation" severity="ignore" />
</lint>

usage of lint-config.xml in build.gradle (in my Android mobile):

android {
    lintOptions {
        lintConfig file("lint-config.xml")
    }
}
  • 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-05T14:24:51+00:00Added an answer on June 5, 2026 at 2:24 pm

    see this link for graphical designers :

    http://developer.android.com/design/style/devices-displays.html

    in short , they suggest creating multiple images , one for each of the densities , so that it would look perfect (without pixelation or blurryness) on each of the possible densities.

    the sizes should be as followed :

    • ldpi – 75% of the original image size
    • mdpi – 100% of the original image size
    • hdpi – 150% of the original image size
    • xhdpi – 200% of the original image size
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a program that is using scanf to get user inputted data:
get / and inside controller I have action that depends on browser When I
When I run Android Lint on my project I get the following warning: The
lint produces some warning like: foo.c XXX Warning 534: Ignoring return value of function
Get this simple python code, same matching with re.compile instance. I noticed that even
If I run lint . inside project directory I get the expected warnings, but
I am using jQuery-Lint (or more specifically FireQuery) to check my code which uses
Get data week-wise my mysql since jan-2011. Timestamp is unix time stamp.so that i
//get choice input int n; scanf (%d,&n); // print the option that the user
//get var of posted info so user does not //have to reinsert if if

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.