Note that there are some explanatory texts on larger screens.

plurals
  1. POApply a style on a EditTextView in android
    primarykey
    data
    text
    <p>i am trying to specify and set a style for a specific android view component in which this case is a EditText.</p> <p>here is the style i am trying to apply a global set of styles</p> <pre><code> &lt;!-- style for the action bar backgrounds --&gt; &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar"&gt; &lt;item name="android:background"&gt;@color/lightBlue&lt;/item&gt; &lt;item name="android:paddingBottom"&gt;0dip&lt;/item&gt; &lt;/style&gt; &lt;style name="ActivityStyleYellow"&gt; &lt;item name="android:background"&gt;@color/brightYellow&lt;/item&gt; &lt;item name="android:textViewStyle"&gt;@style/textViewYellow&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt; &lt;item name="android:text"&gt;@style/editTextYellow&lt;/item&gt; &lt;/style&gt; &lt;style name="ActivityStyleBlue"&gt; &lt;item name="android:background"&gt;@color/lightBlue&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt; &lt;item name="android:textViewStyle"&gt;@style/textViewBlue&lt;/item&gt; &lt;item name="android:EditTextViewStyle"&gt;@style/editTextBlue&lt;/item&gt; &lt;/style&gt; </code></pre> <p>And here is the styles for my view components on a seperate xml file</p> <pre><code> &lt;style name="textViewBlue" parent="@android:style/Widget.TextView"&gt; &lt;item name="android:textColor"&gt;@color/darkBlue&lt;/item&gt; &lt;item name="android:paddingBottom"&gt;@dimen/text_padding&lt;/item&gt; &lt;/style&gt; &lt;style name="textViewYellow" parent="@android:style/Widget.TextView"&gt; &lt;item name="android:textColor"&gt;@color/darkYellow&lt;/item&gt; &lt;item name="android:paddingBottom"&gt;@dimen/text_padding&lt;/item&gt; &lt;/style&gt; &lt;style name="editTextBlue" parent="@android:style/Widget.EditText"&gt; &lt;item name="android:paddingBottom"&gt;@dimen/text_padding&lt;/item&gt; &lt;item name="android:textStyle"&gt;bold&lt;/item&gt; &lt;item name="android:textColor"&gt;@color/darkBlue&lt;/item&gt; &lt;/style&gt; &lt;style name="editTextYellow" parent="@android:style/Widget.EditText"&gt; &lt;item name="android:paddingBottom"&gt;@dimen/text_padding&lt;/item&gt; &lt;item name="android:textStyle"&gt;bold&lt;/item&gt; &lt;item name="android:textColor"&gt;@color/darkYellow&lt;/item&gt; &lt;/style&gt; </code></pre> <p>The issue is this line: @style/editTextYellow</p> <p>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.</p> <p>i couuld not find a define list of what android:xxx styles are valid but i suppose editText should surely be?</p> <p>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.</p> <p>is this possible for editText?</p> <p>Thanks </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload