0
I’m 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, an example, would it be possible to do the same unity
where one creates a canvas
and everything on canvas
will automatically adjust from resolution passed by reference?
You need to create various image sizes according to the main screen densities, there is no way to put a single image and wait for android to do the rest. See on documentation the table of densities and additional tips.
– user28595
friend if you are using android studio to create your app just you use instead of this
– Tiago