I've tried using some styles, both standard android:style ones and
those of my own creation, and for some reason the Graphical Layout
view of Eclipse won't display my views in the defined styles.  They
simply default to the standard default style.  Is this common?  See my
xml below.

In styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
        <style name="SmallBlackText" parent="@android:style/
TextAppearance.Small" >
                <item name="android:textColor">#000000</item>
        </style>
</resources>

In list_item.xml (ignore the "...", I just shortened it up):
<LinearLayout ... >

        <TextView
                        android:ellipsize="end"
                        android:id="@+id/location"
                        android:gravity="left|bottom"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent"
                        android:paddingBottom="5dip"
                        android:paddingLeft="5dip"
                        android:paddingRight="5dip"
                        android:singleLine="true"
                        android:text="@string/default_location"
                        style="@style/SmallBlackText"  />

</LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to