저는 Android 개발을 처음 접했고이 책의 지침을 따르려고합니다. http://amzn.to/4nck80 그리고 나는 그걸 작동시킬 수 없습니다!루트 요소 다음에 나오는 문서의 마크 업은 올바른 형식이어야합니다.
<?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" ></LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="This is my first android application!" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="And this is a clickable button!" />
</Button>LinearLayout>
내가이 XML 파일에 몇 가지 오류가 있습니다 </Button>LinearLayout>
GUI 디자이너를 사용하는 경우 XML을 삭제하고 다시 시작하십시오. 모든 위젯은 LinearLayout> XML 태그 앞에 있어야합니다. – JustinDanielson
[XML] (http://www.w3schools.com/xml/xml_whatis.asp) 및 [syntax] (http : /www.w3schools.com/xml/xml_syntax.asp)에서 Android 레이아웃 작업을 시작합니다. 기본 XML을 사용하여 이러한 종류의 응용 프로그램 리소스가 만들어지기 때문입니다.이 말은 안드로이드 질문이 아니기 때문에 말입니다. 오류 _ 루트 요소 다음에 오는 문서의 마크 업은 올바른 형식이어야합니다. _ 또한 Mike Christensen이 말한 구문 문제가 있습니다. –
XML에 대해 조금씩 읽어보세요. 이것은 프로그래밍에 관한 나의 첫 번째 시도입니다. 어디서부터 시작해야 할 지 잘 모르겠습니다. 첫 번째 안드로이드 개발자 책을 얻었습니다. heh를 찾았습니다. – Serafino0797