Is there any third party tools to create multiple layouts in Android Instead of Different Layout Folder? [closed]

StackOverflow https://stackoverflow.com/questions/11805844

سؤال

I know that we have to manually manage multiple device resolutions when we create Android app.

Is there any third party framework in which when we create one device resolution, it automatically create layout for other device resolutions?

Please let me know.

هل كانت مفيدة؟

المحلول

Unlike the px unit, Android uses dip units or Device Independent Pixels for rendering it's screen. The purpose of using dip is to ensure that you don't have to create layouts for different resolutions.

In the mobile space, we typically have only two kinds of layouts to be taken care of: 1) Phone 2) Tablet.

Then there is vertical and horizontal orientation layout which help you better control how the Android OS renders your app in these orientations.

Supporting Multiple Screens on Android should be a good resource to start with.

EDIT:

Have you tried DroidDraw? Here's some other discussions regarding Android's layout tools: Is there a good tool for doing Android layout design?.

Android OS also comes bundled with some optimization tools like HierarchyViewer, layoutopt to improve your app's performance. More on Layout Optimization

On a more philosophical note, sometimes, what you maybe be looking for may not be what you really need: Why you don’t really want a WYSIWYG layout editor for Android

Happy coding!

Do share your finds and accept the answer that works for you so others may find it useful during their stressful midnight searches :)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top