Al Phaba
Al Phaba

Reputation: 6755

How to add empty area in a linearlayout?

I want to add a image button on the right side of the row in my linearlayout. I tried it with padding left which works but a grey shadow is visible for the padding area. How can I achieve this with linearlayout but without the shadow. Does someone know how to achieve this?

Thanks

Upvotes: 0

Views: 61

Answers (1)

PearsonArtPhoto
PearsonArtPhoto

Reputation: 39698

android:gravity="right" into your XML code should do the trick. Essentially, this will force the View to head to the right part of the view.

Upvotes: 2

Related Questions