Adham
Adham

Reputation: 64844

how to set image in top left corner position in linearlayout?

how to set image in top left corner position in linearlayout ?

Upvotes: 0

Views: 3579

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006604

Try android:layout_gravity="left|top" on your ImageView in the LinearLayout. Also, it will need to be the first child of the LinearLayout. Usually, for these sorts of positioning rules, RelativeLayout is a better choice.

Upvotes: 1

Related Questions