ho TextViewAndroid ottenere il drawable che ha SETT come drawabletop di TextView
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:drawableTop="@drawable/new" />
e voglio sull'attività jave per sapere quale immagine è impostato su drawableTop
, come?
Non penso che sia un buon modo per fare in modo che l'app crei due bitmap e li confronti per ogni clic su un TextView, giusto? –
probabilmente giusto, ma ho trovato questa risposta su questo thread http://stackoverflow.com/questions/9125229/comparing-two-drawables-in-android –
getCompoundDrawables() li restituisce nell'ordine specificato Left, Top, Right, Bottom – defhlt