안드로이드 개발 질문/답변
(글 수 358)
이제 막 안드로이드 공부를 시작한 뜨내기입니다.^^
첨부한 이미지 파일처럼 Layout을 구현하려고 하는 중에 에러가 발생하는데 어디가 문제인지 알수가 없어 문의를 드려봅니다.
Relative Layout이랑 Scroll Layout을 혼용해 쓰는 방식으로 하고있는데 어느 부분이 문제인지 어떻게 해결하면 되는지 지적 부탁드립니다.
<?xml version="1.0" encoding="UTF-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:id="@+id/text1" android:layout_alignParentLeft="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="text1" /> <TextView android:id="@+id/text2" android:layout_below="@id/text1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="text2" /> <TextView android:id="@+id/text3" android:layout_below="@id/text2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="text3" /> <TextView android:id="@+id/text4" android:layout_toRightOf="@id/text1" android:layout_width="100dp" android:layout_height="100dp" android:text="text4" /> <ScrollView android:layout_below="@id/text3" android:layout_width="fill_parent" android:layout_height="wrap_content" > <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:text="#ff0000" android:background="#ff0000" android:layout_width="fill_parent" android:height="50dp" android:gravity="center" /> <TextView android:text="#00ff00" android:background="#00ff00" android:layout_width="fill_parent" android:height="50dp" android:gravity="center" /> <TextView android:text="#0000ff" android:background="#0000ff" android:layout_width="fill_parent" android:height="50dp" android:gravity="center" /> </LinearLayout> </ScrollView> </RelativeLayout>
최소한 에러가 뭔지라도 알려주시지요.....;;
구현하려는 동작이 뭔지도요..