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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:52:57+00:00 2026-06-06T00:52:57+00:00

I add a EditText into a Linearlayout, for each ,I set a picture as

  • 0

I add a EditText into a Linearlayout, for each ,I set a picture as background. But the background of the Linearlayout affect that of the EditText, the code are as follows :

<LinearLayout 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignParentLeft="true" 
    android:layout_centerVertical="true" 
    android:layout_marginLeft="10dp" 
    android:background="@drawable/layout_bg" 
    > 

    <EditText     
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:background="@drawable/input" 
        android:inputType="text" 
        android:paddingLeft="4dp" 
        android:layout_margin="4dp" 
        /> 
    </LinearLayout>

The layout_bg affect the input,but when I set the backgournd of the LinearLayout #F9F9F9, the background of Linearlayout will not affect that of EditText . Why did this happen ?

I am newly here , I can not upload an image right now .
The result is above , the color of the outer background is blue, but the color of the background of EditText is white, I want the inner background makes sense , How should I make it ?

  • 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-06T00:52:59+00:00Added an answer on June 6, 2026 at 12:52 am

    The problem is solved , I can’t see the inner background , cause it is transparent !

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

Sidebar

Related Questions

<EditText android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:id=@+id/name android:singleLine=true android:maxLength=12 android:capitalize=none android:inputType=text /> <Button android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/search_button
Currently I have my code putting user input into a one-dimensional ArrayList, but I
to add clarity to the below. I was considering using timers or storyboard.CurrentTimeInvalidated but
I am using an ArrayList within my code which gets populated by a EditText
I am not able to add id class into R.java which is not exist.
I'm working on an application that stores user inputs into the database table via
I need to know how to jumble a word entered into EditText. The jumbled
I am trying to add two numbers together from EditText fields. So far I
I am wondering how to take an EditText area that the user can enter
In my Android code, I inflate the GUI and store all the sub-elements in

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.