I am creating a native android app and I am trying to make the textview (clickable button) relative to the text, so if there are a lot of text, the "button" will move to the next line. If there is space, I want to align the "button" next to the text. I am thinking of using relative layout, but don't know exactly what attributes to modify. It would be great if anyone can share his/her expertise.
This question is very similar to this post, but it is different because I want the button also to be the same line if there is space (the third option).