I am using a button with background image
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btn"
android:background="@drawable/myimage" />
I wanted this image to fit several screen sizes, for example, would I have to do equal to unity
where canvas
is created and everything in canvas
will automatically adjust from of resolution passed by reference?