Day: May 16, 2014

android, Android UI控件

android 创建菜单

在ACTIVITY.JAVA 中 package com.example.menutest;   import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button;   public class TestMenuActivity extends Activity{ private MenuInflater mi; private Button bt1; @Override...