ㅠㅠ 안드로이드 프로그래밍 저자 우재남, 이복기 출판사 한빛미디어 라는 책을 교재로 쓰고 있는 학생입니다...
보통 안드로이드는 xml과 java를 같이 써서 만드는거 같던데.. 책에 나와잇는건 xml코드중 일부만 나와있고... 해당 출판사
사이트에서 제공하는 코드는 xml만 나와있고 java는 생략되어 있더군요 자바코드가 없으니 어떻게 짜야할지도 막막합니다... 고수님들 자바코드 1개만 어떻게 작성 안될까요?
부탁드립니다. 아래는 xml코드입니다 해당하는 자바코드 1개만 부탁드립니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView" />
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CheckBox" />
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton" />
<Switch
android:id="@+id/switch1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Switch" />
</LinearLayout>