How to make layout with View fill the remaining space?

I’m designing my application UI. I need a layout looks like this:

Example of desired layout

(< and > are Buttons). The problem is, I don’t know how to make sure the TextView will fill the remaining space, with two buttons have fixed size.

If I use fill_parent for Text View, the second button (>) can’t be shown.

How can I craft a layout that looks like the image?

12 Answers
12

Leave a Comment