main.xml---------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/insa"
android:textColor="#ff0000"
android:textSize="20pt"
android:textStyle="italic"
/>
<TextView
android:layout_wdith="fill_parent"
android:layout_height="wrap_content"
android:text="@string/anyoung"
android:textSize="20sp"
android:background="#0000ff"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Good Morning"
android:textColor="#8000ff00"
android:textSize="5mm"
android:typeface="serif"
/>
</LinearLayout>
---------------------------------
string.xml -----------------
<?xml version="1.0" encoding="utf=8"?>
<resources>
<string name="app_name">TextViewTest</string>
<string name="hello_world">Hello world!</string>
<string name="insa">Hello</string>
<String name="anyoung">안녕하세요</String>
</resources>
-------------------------------------
error: No resource identifier found for attribute 'layout_wdith' in package 'android'
error: Error: No resource found that matches the given name (at 'text' with value '@string/insa').
error: Error: No resource found that matches the given name (at 'text' with value '@string/anyoung').
error: Error: No resource found that matches the given name (at 'title' with value '@string/menu_settings').
이런 에러가 납니다..;;
책이 틀린건 아닐테고
TextView에서 @string 지우고 컴파일하니 다른 에러들이 발생하는군요...
참;; 책은 2.3버전이고 저는 4.0인데..
단지 버전차이 때문에는 아닌거같은데... 어떻하나요 ㅠㅠ 도와주세요
오타가 있네요~
<TextView
android:layout_wdith="fill_parent"
android:layout_height="wrap_content"
android:text="@string/anyoung"
android:textSize="20sp"
android:background="#0000ff"
/>
layout_wdith 가 아니라 layout_width 입니다.