i have tetview
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:drawableTop="@drawable/new" />
and i want to change the drawableTop by java activity, how please?
First, assign an id your TextView. Then you can use
setCompoundDrawablesWithIntrinsicBounds()to change the drwables of the TextView in your Activity: