xm9800033 发表于 2024-5-4 17:32:17

list 右对齐如何对齐??

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


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


页: [1]
查看完整版本: list 右对齐如何对齐??