How to change the size of my app, so that it will fit to every smartphone? Android studio
I don't know how to ask the question correctly. I just installed Android studio today.
How to change the size of my app, so that it will fit to every smartphone? Android studio
I don't know how to ask the question correctly. I just installed Android studio today.
First off, Size doesn't decide whether it'll fit for an Android phone or not . It's decided by the API versions you use to compile and the way you've made your app suitable for being run on different devices.
If you're looking for dividing your app as different apks try https://mindorks.com/blog/how-to-create-multiple-apk-files-for-android-application
You should not be using fixed height/width , because different phones have different sizes.
You can use either Linear Layout and set the attribute layout weight https://developer.android.com/guide/topics/ui/layout/linear.html
Or you can use Relative Layout to position views https://developer.android.com/guide/topics/ui/layout/relative.html