Laya rolling container

 

I want to implement a simple rolling containers. Such as a horizontal alignment icons 10, you can slide view.

Egret there can scroll layout container

 

 

Laya read tutorials and examples, did not find a rolling container, only a list, you need to set item, simply level is clearly not what I want to scroll container.

 

Examples of the rolling container no examples tutorial

 

 

Components tutorial nor rolling container, there is no vertical and horizontal layout container.

 

 

 

Finally I found the panel + hbox container combined into a horizontal scroll

 

 

 

Drag a panel and a hbox to the stage and put the pictures in the hbox

 

 

 

Two settings panel scroll bars and the space hbox

If you do not set the scroll bar panel. This panel is not rolling

If you do not set hbox of space, this will not horizontally aligned hbox

Hbox layout effects, and only at run time in order to see 

 

Three final results

 

Guess you like

Origin www.cnblogs.com/gamedaybyday/p/11599646.html