I want to set the layout in a android app so that a edit text takes most of the screen and a button is at bottom. How do I do that dynamically?
Though I want the text field to be balanced out with all remaining space.
Thanks in advance.
This question has been answered and I got the solution. Then why in world it is being flagged as “not constructive”?
This sets an example how to give weight in android xml definitions. No offence but I feel those who voted down this post as vampires who are roaming around to suck blood out of people by getting any kind of excuse even if it’s miniscule.
If there are people in community who support open communication, please come here and see how good collection of knowledge is being destroyed by trolls.
In the end I hope I had been clear in last three paragraphs.

very easy