2012-01-30 4 views
0

나는 안드로이드 애플리케이션 프로그래밍에 익숙하지 않다. 기본 레벨에서 나는 그것을 고칠 수 없다. 누구든지 나에게 도움을 줄 수 있다면 배울 수 있을까?내 코드에서 Edittext가 작동하지 않는 이유는 무엇입니까?

main.xml에

<?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" > 

<EditText 
    android:id="@+id/edit_text" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:hint="@string/hint_text" 
    /> 

</LinearLayout> 

strings.xml의

<?xml version="1.0" encoding="utf-8"?> 
<resources> 

<string name="hello">Hello World, Example3Activity!</string> 
<string name="app_name">Example3</string> 
<string name="hint_text">Enter your name</string> 

</resources> 

오류 메시지 : 오류 구문 분석 XML : 어떤 요소는

+0

XML이 게시 된 것과 정확히 일치하는 경우 시작 부분에 '<'권한이 없습니다! –

+0

이 문제가 발생하는 곳> –

+0

프로젝트를 청소 해보십시오. 종종 XML 에러는 이클립스 (eclipse)와 R이 제대로 처리되지 않는 것을 좋아한다. – JoxTraex

답변

0

나는이 문제인지 모르겠지만 발견 이걸 좀 봐봐. post

기본적으로 이런 일이 발생했다면 xml 파일 대신 앱의 .java 파일에있을 때 main.out.xml 파일 (다시 생성 됨)을 삭제하고 애플리케이션을 실행해야한다고 말합니다.

작동 여부는 잘 모르겠지만 시도해보십시오.

+0

감사합니다 귀하의 게시물, 정말 작동, 감사합니다 sooooo 많이 ... – user1177477

관련 문제