学習目的のためだけに
<Button 
android:id="@+id/button"
android:text=""
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:onClick="updateTime"/>
public class MainActivity extends Activity {
Button btn;
@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.main);
    btn = (Button) findViewById(R.id.button);
    updateTime(btn);
}
public void updateTime(View b) {
    btn.setText(new Date().toString());
}
}
ビューbの場合、それはbtnへの参照であり、どのように渡すことができますか
ビューとして?私はのように試しました
public void updateTime(Button b) {
    b.setText(new Date().toString());
}
でもうまくいきません 助けてくれませんか?
前もって感謝します。