I have a TextView and Button beside each other inside a GridLayout. I want the Button to use the minimum amount of space, and when the TextView wraps (if necessary), I want the width of the TextView to update so that the TextView & Button are always next to each other. I have tried using wrap_content & match_parent, as well as layout_columnWeight, but none of them seem to solve the problem. I also want the GridLayout containing the TextView & Button to be horizontally centered on the page. How can I get the TextView to automatically update the width (the width does not change, but it will obviously be different for different devices or if the orientation changes)? Thanks.
