|
马上注册,下载996引擎,与更多游戏开发者交流。
您需要 登录 才可以下载或查看,没有账号?注册
×
local ListView_1 = GUI:ListView_Create(mainButton.dbLayout, "ListView_1", 0.00, 80.00, 540.00, 80.00, 2)
GUI:ListView_setGravity(ListView_1, 1)
GUI:ListView_setBackGroundColorType(ListView_1, 1)
GUI:ListView_setBackGroundColor(ListView_1, "#9696ff")
GUI:ListView_setBackGroundColorOpacity(ListView_1, 100)
GUI:setTouchEnabled(ListView_1, true)
GUI:setTag(ListView_1, -1)
for i = 1, 6, 1 do
local Button = GUI:Button_Create(ListView_1, "Button"..i, 0.00, 0.00, "res/xres/icon/1.png")
GUI:Button_setTitleText(Button, "Button"..i)
GUI:Button_setTitleColor(Button, "#ffffff")
GUI:Button_setTitleFontSize(Button, 14)
GUI:Button_titleEnableOutline(Button, "#000000", 1)
GUI:setTouchEnabled(Button, true)
GUI:setTag(Button, -1)
end
怎么设置锚点怎么实现右对齐?向左侧滑动?
|
|