나는 안드로이드 프로그래밍에 익숙하다. android : onClick을 어떻게 사용합니까? 전화하고 싶은 방법은 어디에 두어야합니까?android : onClick을 사용하는 방법?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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="0dp"
android:layout_weight="1"
android:text="Button"
android:onClick="doSomething"/>
<ImageView
android:id="@+id/icon"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:adjustViewBounds="true"
android:src="@drawable/molecule" />
나는이 레이아웃이 만들어 질 때까지 호출 된 .java 파일에 넣어까요?
고마워요, 이것이 제가 찾고 있었던 것입니다. –