<LinearLayout
android:id="@+id/gameview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="horizontal" >
<Button
android:id="@+id/button01"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_gravity="bottom"
android:background="@drawable/s1" />
</LinearLayout>
<LinearLayout
android:id="@+id/gameview2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="horizontal" >
<Button
android:id="@+id/button02"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_gravity="bottom"
android:layout_weight="1"
android:background="@drawable/s2" />
</LinearLayout>
<LinearLayout
android:id="@+id/gameview3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="horizontal" >
<Button
android:id="@+id/button03"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_gravity="bottom"
android:layout_weight="1"
android:background="@drawable/s3" />
</LinearLayout>
<LinearLayout
android:id="@+id/gameview4"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="horizontal" >
<Button
android:id="@+id/button04"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_gravity="bottom"
android:layout_weight="1"
android:background="@drawable/s4" />
</LinearLayout>
이렇게 4개로 한 화면을 4개의 레이아웃(gameview1, 2, 3, 4) 등으로 나누고
이제 자바소스에서 선언한뒤가 문제인데요
gameview1 = (LinearLayout) findviewbyid(R.id.gameview1);
이렇게 선언한후
gameview1에 비트맵 이미지를 그리고 gameview2에 또 비트맵 이미지 그리고 할려는데
어떤식으로 코드를 짜야할찌 모르겠어서 질문드립니다.
예를 들어 버튼클릭시면 Button1.onClick~~~~
이렇게 있는데 위에 같은 경우도
gameview1.~~~ 이런 식으로 코드가 있는지 궁금합니다.