How to create Android applications for all permissions?

Hi,

I am starting Android development. I want to create an application that can be run at different screen resolutions. This application should work on Android phones as well as on Android tablets.

Is it possible? If so, how should I handle the user interface design? Just set up the different folders available?

+6
source share
4 answers

Please read the developer guide first. Multi-screen support gives you a pretty good overview of what you are trying to achieve.

+7
source

It is a difficult task to be honest. Most iPhone developers use a fixed screen size, but we Android developers must solve this problem. I can recommend several practices that follow

  • Try not to use a fixed height and weight as much as you can
  • Stick to a linear layout if the layout is not complicated. Switch to relative layout only when it is truly required.
  • Use Wrap and fill in the parent than specify fixed sizes.

These are the few that I can think of.

+2
source

As a rule, you simply provide different layouts and resources for different densities and screen orientations, as described in the documentation for Android .

+1
source

From what I can offer more, you can use NinePatch graphics for your application, so that the images keep the style when they are displayed in different screen sizes, I hope this can help you.

0
source

Source: https://habr.com/ru/post/894009/


All Articles