I have a simple aim. I want a light grey background on my FrameLayout with a black dividing line underneath it (only undernearth, not all around). So far I have this:
<
Well, it's pretty old question, but none of the answers seem to answer the actual question (how to make gravity working) so here's a working example:
gravity
By analogy, if you want to use gravity left or right change attribute height to width
left
right
height
width