I have this xml file.I can\'t understand why my second linearlayout which contains editText and callButton isn\'t looking right. It looks like this (the line with the part pictu
For layout_weight to work, you should set either the layout_height
or layout_weight
to be 0dp
on the widgets with weight.
From the looks of things I think you should spend some more time looking into how layout_weight works exactly
https://developer.android.com/guide/topics/ui/layout/linear.html#Weight