안드로이드 프로그래밍을 하다보니..
XML로 UI를 설정하는데, 속성이 너무많아서 보기 쉽지 않네요.. ^^;;
보통 Source -> Format으로 코드의 indent를 맞췄는데..
XML은 바로 아래 Source -> Format Active Elements 가 있네요..
하지만, Source -> Format Active Elements 하면 아래와 같이 바뀌네요..
<TextView android:layout_width=”fill_parent”
android:layout_height=”wrap_content” android:text=”텍스트 수정 ” />
android:layout_height=”wrap_content” android:text=”텍스트 수정 ” />
그래서, 한줄로 맞춰보는걸 찾아보니…
Preference -> XML-> XML Files -> Editor -> Formatting 에서..
Split multiple attributes each on a new line 을 선택하면 되네요.. ^^
다시, Source -> Format Active Elements 하면 아래와 같이 바뀌네요..
만족스럽습니다.. ^^
<TextView
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”텍스트 수정 ” />
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”텍스트 수정 ” />