What should I do make it work correct in the terms of layout_weight?
First, when using weight
with a horizontal
layout, your width
should be 0dp
. Similarly, if your layout is vertical
then your height
should be 0dp
.
How to avoid making new lines in TextView?
use android:singleLine="true"
if you want to
Constrains the text to a single horizontally scrolling line instead of letting it wrap onto multiple lines
If this doesn't answer your question then please be a little more clear because its a bit confusing on what you're asking.