Wonder how to resize an image inside a TextView xml in a LinearLayout. I read some solution using setCompoundDrawablesWithIntrinsicBounds method, but cannot get it right.
Here is the image:
I want to reduce the size of the logo.
Here is my TextView code:
<TextView  
    android:id="@+id/heading"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:drawableLeft="@drawable/android_logo"
    android:drawableStart="@drawable/android_logo"
    android:gravity="top"
    android:padding="16dp"
    android:singleLine="true"
    android:text="@string/heading"
    android:textSize="20dp"
    android:drawablePadding="5dp"/>

 
     
     
    