##长按文本显示菜单
##长按编辑框显示菜单
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id ="@+id/tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor ="#000000"
android:fontFamily ="Arial"
android:textSize="20sp"
android:text="例1菜单项改为XML定义" />
<EditText
android:id ="@+id/myEd"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
myed_menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/edPaste"
android