Day: May 15, 2014

android, Android UI控件

Anroid OptionMenu 创建

package com.example.uitest2; import android.R.menu; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends Activity { private static final int ITEM1=Menu.FIRST; private static final int ITEM2=Menu.FIRST+1; private static final int ITEM3=Menu.FIRST+2; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...