0

i have error which teel me no resource found in my main.xml file and i cant resolve it any help please

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:background="@android:drawable/images.jpg"{it give me error here}
   >

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0.07"
        android:gravity="center_horizontal"
        android:text="@String/hello" />{and here}
        >

        <Button
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0.01"
        android:text="Back"
        android:textSize="40dp"
        android:textStyle="bold" />

</LinearLayout>
3
Contributors
3
Replies
6
Views
5 Years
Discussion Span
Last Post by peter_budo
0

Post the String resource xml or double check "string" resource /res/values/string.xml named hello.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello World, ActivitiesActivity!</string>
</resources>
0

There is not such thing as @android:drawable/images.jpg, you sure it is not @drawable/images.jpg. For the second one your string on layout is starting with capital "S", but should be lower case "s"

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.