android - Draw tooltip in drawable -


i want add tooltip button. there easy way this. want draw shape. find methods draw view or suggest add lib. possible draw tooltip(make tooltip xml)?

<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">     <item        android:width="12dp"        android:height="12dp"        android:gravity="bottom|center_horizontal">        <rotate            android:fromdegrees="45"            android:pivotx="50%"            android:pivoty="50%"            android:todegrees="45">            <shape android:shape="rectangle">                 <corners android:bottomrightradius="2dp"/>                 <gradient                    android:angle="0"                    android:endcolor="#cc00b8 "                    android:startcolor="#ef89ff "                    android:type="linear" />            </shape>         </rotate>    </item>     <item        android:width="120dp"        android:height="36dp"        android:bottom="6dp">        <shape android:shape="rectangle">             <gradient                android:angle="0"                android:endcolor="#cc00b8 "                android:startcolor="#ef89ff "                android:type="linear" />             <corners android:radius="6dp" />         </shape>     </item>   </layer-list> 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -