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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:01:32+00:00 2026-06-02T06:01:32+00:00

For my project i have an a custom EditText view that extends EditText. I

  • 0

For my project i have an a custom EditText view that extends EditText. I am also applying a styling to it.. but it seems when i apply the style the native RECTANGLE showing that the field is focused goes away.. my style looks like this:

<style name="edit_text">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textColor">#000000</item>
        <item name="android:singleLine">true</item>
        <item name="android:cursorVisible">true</item>
        <item name="android:layout_marginBottom">20dip</item>
        <item name="android:background">@drawable/text_view_bg</item>
        <item name="android:focusable">true</item>
        <item name="android:focusableInTouchMode">true</item>

    </style>    
<style name="large_edit_text" parent="@style/edit_text">
            <item name="android:layout_width">740dip</item>
            <item name="android:focusable">true</item>
            <item name="android:focusableInTouchMode">true</item>
        </style>

this shows the focus rectangle:

<medicalforms.form.FormEditText
        android:layout_width="580dp"
                        android:layout_height="wrap_content"
        android:layout_weight="0"
        android:focusableInTouchMode="true"
        android:focusable="true"
        formview:form_id="first_name"

        formview:form_action="@string/action_property_change"
        />

and this does not:

<medicalforms.form.FormEditText
        style="@style/large_edit_text"
        android:layout_weight="0"
        android:focusableInTouchMode="true"
        android:focusable="true"
        formview:form_id="first_name"

        formview:form_action="@string/action_property_change"
        />

can someone tell me why? i want to keep the native rectangle cue that the field is focused.. but use my styling

  • 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-02T06:01:36+00:00Added an answer on June 2, 2026 at 6:01 am

    Ah, there it is: <item name="android:background">@drawable/text_view_bg</item> If that drawable is just a plain image, then you won’t have the focused, pressed or selected states. If you look at the drawable that is used for the default EditText, it’s composed of four (or five?) different images for the states.

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

Sidebar

Related Questions

I have a custom HttpModule rewrite engine in an existing web application project that
I am working on a custom avatar system for a project, but I have
I have custom exceptions in my django project that look like this: class CustomFooError(Exception):
I have a setup project in which I have a custom action that is
In WIX project I have an custom action that works on SQL server with
In my current project I have a custom ViewData that has (amongst others) the
For my project i need to have custom urls that should not be easy
I have a custom codechecker in python, Also there is a bigger project running
in my project I have a Panel which is using a custom skin that
I have several custom widget in my current project. I wish to apply stylesheets

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.