0
Does anyone know how to adjust the image to the size of the button without it being cropped?
Button:
<Button
android:id="@+id/funcionario"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:text="| Ver Funcionários"
android:background="@drawable/botoes"
android:drawableLeft="@drawable/funcionario"
android:drawableTint="#ffff"/>
It didn’t work, it’s still big d+, and if I put a height like 50 dp, the image gets cropped
– Woton Sampaio
Have you tried using a layout, Linearlayout for example, instead of a button?
– Max Fratane
The button is inside a linear
– Woton Sampaio
So, it doesn’t use Button but some layout that allows you better control of the views inside.
– Max Fratane