Anko: Any way to set layout_gravity in Anko?

Created on 21 Jun 2016  路  1Comment  路  Source: Kotlin/anko

I have been using Anko for development for quite a while, and I know I can use gravity this property just like in xml and it works fine. However I can't figure out how to set layout_gravity for items in layout, just like in xml.

Every time I try to set an item's position inside a big layout, I have to use some workaround method to achieve that. So if any one could tell me how to set this property I have been looking for, that would be very nice.

fixed question

Most helpful comment

All right, just figure it out if I wrote gravity in lparams, that will be layout_gravity as I wish.

issue close.

>All comments

All right, just figure it out if I wrote gravity in lparams, that will be layout_gravity as I wish.

issue close.

Was this page helpful?
0 / 5 - 0 ratings