Android/개발

[Study] LinearLayout

By HKEBI | 2011. 5. 12. 01:21

android:orientation="horizontal" 뷰의 배치 방향을 설정 하는 방법 입니다.. main.xml android:orientation="horizontal" 에서 vertical 로 하면 수직 정렬이며 horizontal 일 경우네는 수평 정렬이 됩니다. android:orientation="vertical" 정렬 지정 android:gravity="center" 를 이용하여 내용물의 정렬 방식을 지정 합니다. 위에 TextView 에 layout_width, layout_height 를 fill_parent 로 꽉 채운 상태에서 android:gravity="center" 를 줬습니다.. 그러니 버튼은 가려지고 layout_exam!!! 은 TextView 가운데로 정렬 되었네요...

Android/개발

Android SDK " hello world " 출력 하는 App 만들기

By HKEBI | 2011. 3. 15. 15:27

지난번에 이클립스 설치하고 이제서야 안드로이드 Programing 을 해보네요.. 일단 기본인 hello world 를 출력 해보도록 하겠습니다.. 1. 새로운 Android Project 생성 File -> New -> Android Project 를 선택 합니다. Proeject Name : 프로젝트 이름을 지정 합니다.. Build Target : Build 할 Android 버전을 선택 합니다.. 요즘 같으면 2.2 가 문안 하겠죠.. 밑으로 내려보면 Properties 부분이 있습니다. Application name : App 상단에 표시될 APP 이름 입니다. Package name : package name 을 주시면 됩니다.. com.hello.test 로 주면 src/com/hello/t..