skip to Main Content

Android Studio – How can I allow buttons in Android development to scale without changing their shape?

Say we got this button in a layout file, say app/res/layout/activity_main.xml: <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="50dp" android:background="@drawable/test" android:text="ok" /> Also say that @drawable/test is an SVG file (vector image) that gives a unique shape for the button as follows: The problem…

VIEW QUESTION
Back To Top
Search