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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:30:50+00:00 2026-06-15T15:30:50+00:00

i am trying to specify and set a style for a specific android view

  • 0

i am trying to specify and set a style for a specific android view component in which this case is a EditText.

here is the style i am trying to apply a global set of styles

 <!-- style for the action bar backgrounds -->
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
    <item name="android:background">@color/lightBlue</item>
    <item name="android:paddingBottom">0dip</item>
</style>


<style name="ActivityStyleYellow">
    <item name="android:background">@color/brightYellow</item>
    <item name="android:textViewStyle">@style/textViewYellow</item>
    <item name="android:actionBarStyle">@style/MyActionBar</item>
    <item name="android:text">@style/editTextYellow</item>

</style>

 <style name="ActivityStyleBlue">
    <item name="android:background">@color/lightBlue</item>
    <item name="android:actionBarStyle">@style/MyActionBar</item>
    <item name="android:textViewStyle">@style/textViewBlue</item>
    <item name="android:EditTextViewStyle">@style/editTextBlue</item>
</style>

And here is the styles for my view components on a seperate xml file

 <style name="textViewBlue" parent="@android:style/Widget.TextView">
            <item name="android:textColor">@color/darkBlue</item>
              <item name="android:paddingBottom">@dimen/text_padding</item>
        </style>

        <style name="textViewYellow" parent="@android:style/Widget.TextView">
            <item name="android:textColor">@color/darkYellow</item>
              <item name="android:paddingBottom">@dimen/text_padding</item>
        </style>

        <style name="editTextBlue" parent="@android:style/Widget.EditText">
            <item name="android:paddingBottom">@dimen/text_padding</item>
            <item name="android:textStyle">bold</item>
            <item name="android:textColor">@color/darkBlue</item>
        </style>

     <style name="editTextYellow" parent="@android:style/Widget.EditText">
        <item name="android:paddingBottom">@dimen/text_padding</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textColor">@color/darkYellow</item>
    </style>

The issue is this line: @style/editTextYellow

android:EditTextViewStyle doesnt exist and i cant find any reference to it. i assumed it will be that because i also assumed what the textViewStyle was and that worked.

i couuld not find a define list of what android:xxx styles are valid but i suppose editText should surely be?

Is there a list to show what components i can use for “android:xxx”? i basically want to apply to a particular View component type.

is this possible for editText?

Thanks

  • 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-15T15:30:51+00:00Added an answer on June 15, 2026 at 3:30 pm

    What you are looking for is android:editTextStyle. For example:

    <style name="AppTheme" parent="@android:style/Theme.NoTitleBar">
        <item name="android:editTextStyle">@style/Widget.Styled.EditText</item>
    </style>
    
    <style name="Widget.Styled.EditText" parent="@android:style/Widget.EditText">
        <item name="android:textColor">@color/black</item>
        <item name="android:textSize">@dimen/default_font_size</item>
        <item name="android:textColorHint">@color/default_grey</item>
        <item name="android:typeface">normal</item>
    </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to specify the minSDKVersion: <uses-sdk android:minSdkVersion=5 /> Whenever I add this
I'm trying to retrieve Android style values at runtime, so I can apply them
I am trying to put together an index using terms, which I specify as
This is driving me nuts. I am trying to set a background image to
I asked this ages ago but worded the question badly. I'm trying to specify
I am trying to set a UIWindow in MainWindow.xib into landscape mode. Unfortunately, this
I'm trying to set a variable based on a bunch of input conditions. Here's
I'm new to m4 and am trying to set up a macro which allows
I am fairly new to JS, trying to set up a document which would
I'm trying set up an execution account following the steps here: http://msdn.microsoft.com/en-us/library/ms156302.aspx I follow

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.