<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/go"
android:text="go"
/>
我想在线性布局的按钮下方加一个圆圈,怎么做?main.xml需要做哪些改动?
public class SomeActivity extends Activity {
private Button checkButton;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
start();
}
private void start() {
checkButton=(Button)findViewById(R.id.go);
checkButton.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
}
});
}
onClick方法需要填写什么?