안드로이드 개발 질문/답변
(글 수 45,052)
지금 레이아웃이
-----------------
내용을 입력하세요 textview
------------------
-----------------------------------
edittext
-----------------------------------
----------------------
제목을 입력하세요 textview
------------------------
------------------------------------
edittext
-------------------------------------
저장버튼 메뉴버튼
대충 이런식인데
제목을 입력하세요랑 에디트텍스트를 위로 올리고
내용을 입력하세요랑 에디트텍스트를 내릴려고 하는데
정렬방법 봐도 모르겟고 도움좀 부탁드립니다 ㅠㅠㅠㅠㅠㅠ
<?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="fill_parent">
<Button android:id="@+id/btn_menu" android:text="@string/str_menu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" /> <Button android:id="@+id/btn_save" android:text="@string/str_save" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_toLeftOf="@id/btn_menu" /> <EditText android:id="@+id/et_filename" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/btn_menu" /> <TextView android:id="@+id/tv_filename" android:text="@string/str_filename" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/et_filename" /> <TextView android:id="@+id/tv_editmemo" android:text="@string/str_editmemo" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" />
<EditText android:id="@+id/et_edit" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/tv_editmemo" android:layout_above="@id/tv_filename" android:scrollbars="vertical" android:scrollHorizontally="true" /> </RelativeLayout>




layout_above, below 뭐 이런것들 잘 이용하셔서 배치하면 돼용
android:layout_below="@+id/tv_editmemo" 이런식으로요 ctrl+space bar 누르면 어떤 것들 있는지 나오니깐 그거
영어 단어 보면 딱 어디에 위치하는지 알 수 있으니깐 한번 해보세요