안드로이드 개발 질문/답변
(글 수 45,052)
<EditText
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
소스는 이렇습니다 ㅎ
그런데 EditText 가 길어서그런지 글을쓰면 가운데 정렬이됩니다.
입력된 문구가 첫줄부터 정렬되게 할 수 있는방법은 없을까요? ㅎ
========================================================
답변해주신대로 옵션 넣어봤는데요
<EditText
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|top"
android:layout_weight="1"/>
근데 적용이되지 않는것같습니다 ㅠㅠ
이미지 첨부합니다 ㅠ
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
소스는 이렇습니다 ㅎ
그런데 EditText 가 길어서그런지 글을쓰면 가운데 정렬이됩니다.
입력된 문구가 첫줄부터 정렬되게 할 수 있는방법은 없을까요? ㅎ
========================================================
답변해주신대로 옵션 넣어봤는데요
<EditText
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left|top"
android:layout_weight="1"/>
근데 적용이되지 않는것같습니다 ㅠㅠ
이미지 첨부합니다 ㅠ
정렬에 관한 속성은 여러가지가 있지만
일단 gravity = "left|top" 속성을 줘보세요