align.right(offset)
Place the layer to the right of its parent. If there is no parent, it will use the Screen. Right only works for the x layer property. It can be used as a property, in states and in animations.
译:把图层置于它的父图层的右侧,如果没有父图层,就默认放在屏幕右侧。这个方法只对x属性起作用。它也可以作为状态或者动画中的一个属性值。
Arguments
offset — 一个数字(可选)
layerA = new Layer
x: Align.right
layerB = new Layer
x: Align.right(-100) # 100 pixels from the right