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

  • Home
  • SEARCH
  • 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 6790649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:45:00+00:00 2026-05-26T17:45:00+00:00

I have one activity with many elements on it, when is first started it

  • 0

I have one activity with many elements on it, when is first started it looks good and the images with gradients look prefect. for example this image

enter image description here

But after I touch the screen these images are changed badly, and they look ugly, I think this effect is called dithering

enter image description here

I not know if you will able to see the difference between this two images , but please zoom in and look carefully, and you will notice.

What is the problem ? what should I do ?

I tried with wrap_content I tried with fixed dimensions in px , in dip in everything it acts the same, at first it looks great and after any touch on the screen it change it self and it looks ugly, the image is the same but the rendering is very bad.

Please post answer if you really know how can I fix this(please do not guess answers, I guessed almost everything so far), 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-26T17:45:01+00:00Added an answer on May 26, 2026 at 5:45 pm

    You can enable dithering by using code:

    findViewById(R.id.ImageView01).getBackground().setDither(true);
    

    Otherwise, you can apply dither from XML(define it inside the res/drawable folder) and set drawable as background

    <?xml version="1.0" encoding="UTF-8"?>
    <bitmap
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:src="@drawable/btn_background"
        android:dither="true" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that goes between many different activities. One activity, my main
I have an activity class with many buttons. If i click one button then
I have done this many times in different apps but this is my first
I have an Activity object with many properties. One of them is as follows:
I have to include one report in my application showing offline/online activity of few
I have one std::list<> container and these threads: One writer thread which adds elements
With fragment, it seems that, I can use one activity with many fragments to
I have spent too many hours on this and I have so far continued
Think that I have many activities,and all I want is this: I have a
In my activity I have many buttons that launch other activities. The problem is

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.