Continuing Problems Running Android Apps
I have been having a very difficult time with android apps. I'm using Eclipse, V 4.2.0, and running API version 7. Below is the LogCat output of one program I'm having difficulties
Solution 1:
I think you need to move your color declaration out of strings.xml and put it inside of colors.xml
colors.xml
<?xml version="1.0" encoding="utf-8"?><resources><colorname="myColor">#ccff00</color></resources>
Then inside your layout refer to it like this:
<TextView
android:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_gravity="center"android:textColor="@color/myColor"android:textSize="30dp"android:text="@string/text"android:textStyle="bold"android:gravity="center"android:id="@+id/tvDisplay"
/>
Post a Comment for "Continuing Problems Running Android Apps"