I created a login screen in android studio, and leave everything aligned in the center of the screen of the cell phone, but when I run with avd or genymotion, it throws the form all to the corner, can anyone help me?
Renam RelativeLayout
is a bit annoying anyway, you need to create "anchors" (reference between elements) ( alinhamento entre os elementos
).
Usually most use Linear Layout
, with more layouts inside it, it's a lot simpler!
There are lots of videos that show you how to use Relative
.
Take a look at this:
link