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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:47:54+00:00 2026-06-07T15:47:54+00:00

I am new to android development and am developing my first android application. I

  • 0

I am new to android development and am developing my first android application. I have the background color of the View set in the layout’s xml as follows.

android:background="@+color/bgColor"

Now, i have a full sized transparent background image that i want to lay over the background and then other Elements over that image.

is there a way i can use both background color and background image in the same layout.

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-07T15:47:57+00:00Added an answer on June 7, 2026 at 3:47 pm

    You can use an ImageView with a background color:

    <ImageView
        layout_width="match_parent"
        layout_height="match_parent"
        src="@drawable/myImage"
        background="@color/myBgColor" />
    

    Another option is to set the background color in the root element of your layout, and keep the src in your ImageView.

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

Sidebar

Related Questions

I'm new to android development. I'm developing an application for android 4.0.3 devices, in
I am new to java development, I am from C# .net, developing android application.
Newbee to Android development. I am developing a application, which have three different tabs.
I want to start android tablet application development. i have created a new avd
I'm quite new to Android development and was about to finish my first application
I am new to Android layout development and have been tasked with designing and
As I am new to Android development, I have used SAX xml parsing in
I'm new to Android development. I have an application that allows the user to
Heloo everyone im new to android development and im developing an android application for
I'm developing an Android application. I'm very new on Android development. I see on

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.