That completely removed style from the preferenceCategory .. Why ???
     <style name="PCategory">
      <item name="android:background">#5E829E</item>
      <item name="android:height">50px</item>
      <item name="android:textStyle">bold</item>
                <item name="android:textSize">12.0sp</item>
                <item name="android:textColor">#FFFFFF</item>
                <item name="android:shadowColor">#000000</item>
                <item name="android:shadowDx">1.4</item>
                <item name="android:shadowDy">1.4</item>
                <item name="android:shadowRadius">1.9</item>
    </style>
      <style name="Theme.Express">
         <item name="android:preferenceCategoryStyle">@style/PCategory</
item>
        <item name="android:listViewStyle">@style/Widget.ListView</
item>


       </style>

On Jan 21, 3:50 pm, Alexey <[email protected]> wrote:
> This gave me a background for the whole list i wanted. Now i wonder
> how to set  background fro the PreferenceCategory
>  <style name="Theme" parent="android:Theme.Light">
>     </style>
>       <style name="Theme.Express">
>         <item name="android:listViewStyle">@style/Widget.ListView</
> item>
>        </style>
>
>     <style name="Widget" parent="android:Widget">
>     </style>
>     <style name="Widget.AbsListView">
>         <item name="android:scrollbars">vertical</item>
>         <item name="android:fadingEdge">vertical</item>
>         <item name="android:scrollbarStyle">outsideInset</item>
>     </style>
>
>     <style name="Widget.ListView" parent="Widget.AbsListView">
>         <item name="android:background">@drawable/background</item>
>         <item name="android:divider">@drawable/line_darker</item>
>     </style>
>
> On Jan 21, 3:33 pm, Alexey <[email protected]> wrote:
>
> > Hi all , in a preferences screen in my application which is build by
> > extending the PreferenceActivity  i need to change   background on the
> > window itself and on the PreferenceCategory.
> > How i can do it via Themes/Styles ? Which attributes i need to
> > define ?
> > thanks Alex
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to