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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:58:16+00:00 2026-05-25T15:58:16+00:00

I have an EditText control in my application and when it is focused (i.e.

  • 0

I have an EditText control in my application and when it is focused (i.e. I’m ready to enter something) I want to apply shadow color to it. How can I do this?

Thanks,
@nagaraju.

  • 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-25T15:58:16+00:00Added an answer on May 25, 2026 at 3:58 pm

    You can use the Selector tag like Follows:
    Create a New xml file and place it in your drawable folder and name it as shadow_color.xml

    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/ask_footer"/>
        <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/askfooter_hover" />
        <item android:drawable="@drawable/ask_footer" />
    </selector> 
    

    And then go to that xml in which your EditText is declared:
    And write one attribute in editText

    android:background=”@drawable/shadow_color”
    and you are done.

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

Sidebar

Related Questions

i have a EditText in android in which i want the user to enter
I have declared an EditText programmatically (i.e. not in XML), and want to apply
I have a grid control. And I want to access gridview child control from
I have one edittext EditText et1=(EditText)findViewById(R.id.EditText01); when i want to clear edittext i use
Currently I have an edittext field that when the user presses enter it does
I want to have 3 edittext with top and bottom having topleft and topright
hello I have the following win32 program, and I have an EDITTEXT control that
I have a EditText control. If I tap it the softkeyboard will popup however
I have a simple password protection. I do it like this: EditText editText1 =
I have an EditText (accepts 0-9) with a listener. I want to grab input

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.