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
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With