Every time I create views like Button
and TextView
in ConstraintLayout
, they all get stuck at the top corner instead of where I placed
Basically this type of problem happens when you use ConstraintLayout .
So Go to Preview From Android Studio.
Select That button you want to set at the specific position
At last just click the infer constrains button as i mention in the picture below on a red circle.
Thats All run the project and see magic
Thank you