마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

<?xml version="1.0" encoding="itf-8"?> 이거 관련 질문이요

0 추천
<?xml version="1.0" encoding="ltf-8"?>

<ScrollView xmlns:android=http://schemas.android.com/apk/res/android
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

<ImageView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:src="@drawable/img1"
android:layout_gravity="center_horizontal"
android:adjustViewBounds="true"
/>

<ImageView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:src="@drawable/img2"
android:layout_gravity="right"
android:adjustVeiwBounds="true"

/>

<ImageView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:src="@drawable/img3"
android:layout_gravity="right"
android:adjustViewBounds="true"

/>

</LinearLayout>

</ScrollView>

 

이렇게 되있는데요 저는 안되더라고요 (아 그리고 저 맨위에  ltf-8"? 이부분이 제 이클립스는 utf-8" 로 되있었어서 바꿧어요 어떤 상관이 있는거죠.)

실행을 시키면
Open quote is expected for attribute "xmlns:android" associated with an element type "ScrollView".
 
Unparsed aapt error(s)! Check the console for output.

R cannot be resolved to a variable

이런 에러가 뜨더라고요 ㅜㅜ 해결해주세요
익명사용자 님이 2013년 5월 21일 질문

1개의 답변

0 추천

왠만하면 이클립스에서 new-android XML file로해서 생성하세요.. 

<ScrollView xmlns:android=http://schemas.android.com/apk/res/android

이 부분을

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"

이렇게 수정하셔야 합니다.

congbab (5,140 포인트) 님이 2013년 5월 21일 답변
...