How to show a message when focus on a view in android app -
my code is......
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com.example.user.designingapp.capcustomize"> <item android:id="@+id/navigate" android:orderincategory="300" android:title="user" android:icon="@drawable/back" app:showasaction="ifroom"/> <item android:id="@+id/share" android:orderincategory="300" android:title="use" android:icon="@drawable/share" app:showasaction="ifroom"/>
i want when bring cursor on these 2 item's image .there should show message name of items in above image...
you can use popupwindow in android achieve this. here example.
if want menu items or want use menu xml, can use popupmenu have v7 compatibility version. example.
also, if button or image , want show popup text or hint, there contentdescription
attribute in can specify text, show on long press.
Comments
Post a Comment