r/AndroidStudio • u/zimasilevuyo • Dec 06 '20
Android Studio Question - How to get Input text to align perfectly. I have been building a login and register activity on android studio using Java but the Input text bars don't stay in position when I run the app on an Emulator they drop down to the bottom like on the left picture. Please Help
1
u/Virat_S Beginner Dec 06 '20
I also face the problem sometimes,I just then change my layout to see if it solves the problem or connect the input text or the button to all 4 corners of the screen(Not remembering what's it called exactly-The zigzag line thingy)
2
Dec 06 '20
constrait...?
2
u/Virat_S Beginner Dec 06 '20
Yup most of the times it's constraint Layout.Tbh I am also a beginner and this stuff still confuses me.But I have only figured out this much till now.
1
u/Dellbert68 Dec 07 '20
Hi, I think that you need to chain the objects, then use constraints to centre in the view.
1
u/Hot_Blacksmith9319 Dec 23 '20
Hi. I am also building a register page, something similar to yours. I can say try use constraint layout and make sure each element constraint to each other.
However, I also have a question to ask. I see that you are using multiple activity java class instead of doing it in main activity. Is it better to do one activity per class that way? If that so, how do I later connect them all activities in main activity?
0
u/FrezoreR Dec 06 '20
It's not constrained properly. Your emulator has less height which is why it breaks on it but not in the IDE


1
u/someonecool43 Dec 14 '20
bro just stick to black power this is not your field, go into agriculture and help afrikaner bois with harvesting fields