Android Layout Designing

This Post shows a design idea for designing layouts for Android using Android Studio .

This is a problem most of you may face while designing is when changing from landscape to portrait mode and vv

Here is one Example which was designed in relative layout and when the mode is changed the controls overlap and distorts the UI and when used in a smaller res device no component would show up.



1)Use table layouts to design the same .

-Table Layout

     – Table row

           -component (Button)


2)use Plain Text instead of Large text or small text components .

3)Use the weight,gravity to arrange the components in the in the table row.

This below given layout is a possible solution to the above said problem . As shown below the layout works well from a 10 inch device to 2.7 inch device and both orientations.

 andr layout 1

and lay 2

This is the used structure for the above shown design.

and lay3

Hope you enjoyed reading.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s