RidersList and ToolBar sizing done
TODO : cast ListViewItemState.data into RiderVO
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package view;
|
||||
|
||||
import model.Constants;
|
||||
import feathers.skins.RectangleSkin;
|
||||
import feathers.layout.VerticalLayoutData;
|
||||
import feathers.layout.AnchorLayoutData;
|
||||
import feathers.layout.AnchorLayout;
|
||||
import feathers.events.FeathersEvent;
|
||||
@@ -20,15 +23,22 @@ class RidersScreen extends ScrollContainer {
|
||||
override private function initialize():Void {
|
||||
super.initialize();
|
||||
|
||||
layout = new AnchorLayout();
|
||||
backgroundSkin = new RectangleSkin(SolidColor(Constants.MAIN_COLOR2, 1));
|
||||
|
||||
var vl:VerticalLayout = new VerticalLayout();
|
||||
vl.horizontalAlign = JUSTIFY;
|
||||
layout = vl;
|
||||
|
||||
tb = new ToolBar();
|
||||
tb.layoutData = AnchorLayoutData.fillHorizontal();
|
||||
var vld1 = new VerticalLayoutData();
|
||||
vld1.percentHeight = 10.0;
|
||||
tb.layoutData = vld1;
|
||||
addChild(tb);
|
||||
|
||||
rl = new RidersList();
|
||||
rl.layoutData = AnchorLayoutData.fillHorizontal();
|
||||
rl.y = 80;
|
||||
var vld2 = new VerticalLayoutData();
|
||||
vld2.percentHeight = 90.0;
|
||||
rl.layoutData = vld2;
|
||||
addChild(rl);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user