7
Banele
7y

The beginning of my small app. Just a small question to the devRant community. As I am relatively new in Android app development I was wondering which layout is okay to work with?
The reason behind this question is that I have found that sometimes I'd move a component(e.g., button, text field) by a small fraction and boom! everything else is messed up.

Comments
  • 1
    Use relative for styling and use the other ones for custom elements, there is like 0 overhead
  • 1
    Also for the love of God please dont nest layouts
  • 0
    @BindView noted and thank you very much
  • 2
    Use Constraint Layout as your root layout.
    Read more here: https://developer.android.com/train...
  • 0
    @Torbuntu darcula is probs the worst ever dark theme :/
  • 0
    @Torbuntu y'ever used darkest dark?
  • 0
    @Torbuntu yeah i realized im colorblind my bad
  • 0
    @BindView and @TorBuntu, Darcula doesn't look nice for me on Android Studio. Android Studio is kind of cluttered already and for me using a dark theme makes things worse. On the other hand, i'm loving darcula on PyCharm.
  • 0
    As i mentioned before always use constraint Layout or linear layout as root layout and always write it in XML never drag and drop, you may find few difficulties at first but everything will be fine soon
    To improve your skills try to find on google any free mobile PSD design and try to integrate it into your mobile application.
    Remember each root layout may have several child layout so the main may be linearLayout and inside of it many constraint and relative to improve design accuracy
  • 3
    Remember you can <include> other layout files! Its a great way to re-use layouts and prevent bloat
  • 0
    @simpleJack this one too is very helpful
    To divide your projects into sub parts.
    Take into consideration some deprecated design etc...
Add Comment