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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:24:33+00:00 2026-05-27T05:24:33+00:00

In reviewing the code of an App, I see that it uses the background

  • 0

In reviewing the code of an App, I see that it uses the background image setting for an ImageView with an empty foreground image:

staticon.setImageResource(0);
staticon.setBackgroundResource(R.drawable.switch_to_on);

What are the pro’s and cons of this approach? Will it be safe to refactor this to just use the foreground image? The drawable being set is a Frame Animation.

  • 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-27T05:24:34+00:00Added an answer on May 27, 2026 at 5:24 am

    Yes it is safe.All the widgets are designed in the way you can use according to your requirement.I dont think any unsafe situation in this code. 🙂

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

Sidebar

Related Questions

I have a code piece that I am reviewing (using FindBugs ). public class
Reviewing some code that contains a bunch indirectly nested transactionscopes. I would like to
I have been reviewing some code that looks like this: class A; // defined
We're reviewing the code of Classic ASP application. In the code that we're reviewing
Any code examples for using a UITableView to implement in-app settings? That is where
I am reviewing some code for a JavaScript widget that I downloaded and there
I'm having thread contention in an OLTP app. While reviewing the code involved, I
I have an iPhone app that uses the keychain for authentication-related storage. I also
Reviewing a stack trace of a non-responsive web-app, I realized that some of the
I am reviewing code that makes the following call: id<PLResultSet> results = [sqliteDatabase executeQuery:@select

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.