Android 中访控件的方法

1.控件必须有ID, 如 android:id="@+id/Button1"

2.使用Button button1 = (Button)findViewById(R.id.Button1)

posted @ 2011-07-31 21:31  勇者无畏  阅读(163)  评论(0编辑  收藏  举报