I added an image called "star" to a button and the picture appeared, but it made the button larger.
<Button
android:id="@+id/latest_photoB"
android:layout_height="87dp"
android:layout_weight="1"
android:background="#dcdcdc"
android:drawableTop="@drawable/star"
android:text="Latest Photos"
android:textSize="10dp"
android:textColor="#000000" />
I tried many different ways, such as making it an imagebutton
.
I tried android:background = image
, but nothing worked. How can I add a picture, and keep it the same size?