Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the best layout in android we can use to design the UI? [closed]

Tags:

android

layout

I am using Absolute layout for my UI design in android.

My doubt is which layout is best for UI design in android and Is it the design is change in any other device. That means i am using HTC Desire to test my application if i installed my app in any other app means the design is change or look like same

Thanks in Advance

like image 809
Krishna Avatar asked Jun 28 '11 16:06

Krishna


People also ask

What is UI layout in Android?

Android Layout is used to define the user interface that holds the UI controls or widgets that will appear on the screen of an android application or activity screen. Generally, every application is a combination of View and ViewGroup.

Can I design UI on Android?

To create new UIs, we recommend using Compose, Android's declarative UI toolkit. Google designed Compose to simplify and accelerate UI development, so you can use less code, more-powerful tools, and intuitive Kotlin APIs.

Which of the following layouts are used in Android?

Android Layout TypesLinearLayout is a view group that aligns all children in a single direction, vertically or horizontally. RelativeLayout is a view group that displays child views in relative positions. TableLayout is a view that groups views into rows and columns.


1 Answers

AbsoluteLayout is definitely worst-practice for android.

Get to love the RelativeLayout. It will make your life much easier, when designing for multiple resolutions/densities. If you have an old SDK, update your eclipse plugin. It has graphical snap-lines for RelativeLayouts similar to designing a form in Visual Studio, so you can see what is anchored where. It's really quite good.

like image 98
yep Avatar answered Oct 24 '22 13:10

yep