Android marginTop and left vs margin to adjacent« Back to Questions List

I am using this to create XML for Android. After converting to XML ,all the views inside the XML are aligned to top.

Inside the relative layout , item should be relative to adjacent one instead of margin_top attribute set to each element.

Asked by rambhakar
Added May 14, 2016 9:58 pm

Do you have the right answer? If you do other users will benefit from your contribution, share your knowledge with the community!


Photoshop does not support this native, but there are many Android updates in the works. android:layout_marginTop is used as the default setting to ensure your design renders as-is, we have an update for “element margins” to simulate Android Studio coming soon.

You can create custom elements using android widgets: // to add your own margins or in Android Studio you can re-apply natural Android margins by selecting and dragging items – Android Studio will use its native margin settings.

Answer by admin
Answered On May 14, 2016 11:06 pm #
Looking for another answer? View other questions in Android or get premium support for guaranteed results.
Asked by rambhakar
1 answer
Last Answered 8 years ago by admin


Recent Answers

asked by admin
asked by anup-sarkar
asked by originalife07
asked by yudhis
[+] View All Recent Questions

Share Your Knowledge!

Contribute to the community and help other users to benefit from your answer with experience and knowledge.