list 右对齐如何对齐??

[复制链接]
作者: xm9800033 | 时间: 2024-5-4 17:32:17 |
0 42

17

帖子

518

金币

287

积分

积分
287
发表于 2024-5-4 17:32:17| 显示全部楼层 |阅读模式

马上注册,下载996引擎,与更多游戏开发者交流。

您需要 登录 才可以下载或查看,没有帐号?注册

x
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


怎么设置锚点怎么实现右对齐?向左侧滑动?


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

24小时热门更多>
快速回复 返回列表 返回顶部