我试图建立一个图像按钮的应用程序,像行动栏一样工作,但我无法让他们在长按新闻时显示工具提示。安卓图像按钮工具提示
<ImageButton
android:id="@+id/editUrgent"
style="?android:attr/borderlessButtonStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/editImportant"
android:hint="@string/hint_urgent"
android:contentDescription="@string/hint_urgent"
android:text="@string/hint_urgent"
android:src="@drawable/clock_light" />
android:contentDescription适用于悬停(s-pen),但长按仍然不起作用。
退房上下文菜单选项 - http://www.thegeekstuff.com/2013/12/android-app-menus/ –