안드로이드 개발 질문/답변
(글 수 45,052)
C:\Users\Jong\Desktop\inturn\BookMarkRoid\res\layout\addbook
<?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"> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="7" android:background="@drawable/bg"> <TextView android:id="@+id/booktitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="책제목" /> <TextView android:id="@id/secondbooktitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/bootitle" android:text="부제" /> </RelativeLayout> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="3" android:background="@drawable/icon"> <TextView android:id="@+id/writer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="저자" /> <EditText android:id="@+id/writertext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/writertext" /> <TextView android:id="@+id/translation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/writer" android:text="역자" /> <EditText android:id="@+id/translationtext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/translation" /> <TextView android:id="@+id/publisher" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/translation" android:text="출판사" /> <EditText android:id="@+id/publishertext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/publisher" /> </RelativeLayout> </LinearLayout>
이와같은 xml 코드를 짰는데요.. 일단 이미지를 봐주시고 조언을 부탁드립니다..
제가 원하는 구상과 그 결과는 스샷으로 보여드릴터이니 답변 부탁드려요 ㅠㅠ.,.
엉엉엉...
2010.08.05 13:23:46
결과 보고 빵터졋네요 ㅋㅋㅋ
일단은 문제점으로 보이는것이 fill_parent를 그냥 다 썼다는점 에디트 박스나 배경 이런걸 전체화면으로 해놨으니 머 확인을 할수가 없죠
그리고 릴래이티브인데 위치를 정해주지 않았다는점 그러니 0.0좌표에서 다 몰려있으니 머가 먼지 모르겠죠
또한 두번째 릴래이티브에서 예시보면 위아래 배경이 같아야 하는데 아이콘이미지가 들어가서 fillparent로 되있다는점 그러니 왠아이콘이 전체화면으로 되있죠 ㅎㅎ 배경은 폭 높이 둘다 직접 사이즈 적어주시고요 밑에 배경은 maginTop으로 위치 정해주시고요
에디트텍스트는 당연히 위치와 폭넓이 정해 주시고요 텍스트뷰도 위치 정해주시고요 ㅎ