How can I use multiple values for Android XML Layout properties?

Viewed 6951

I feel like this must have been asked before, but I can't find it.

I want to have a LinearLayout such that everything aligns to the right as well as to the bottom.

I've tried:

    android:gravity="right | bottom"
    android:gravity="right + bottom"
    android:gravity="right & bottom"
    android:gravity="right, bottom"
    android:gravity="right bottom"

All of these produce

 Error: String types not allowed (at 'gravity' with value 'right, bottom').

I suppose I could use margins on the sub-elements, but I'd rather not.

1 Answers
Related