Ai
1 Star 0 Fork 0

AideLua/AndroLua+ 布局编译器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
layoutTemplate.lua 533 Bytes
一键复制 编辑 原始数据 按行查看 历史
杰西205 提交于 2023-07-28 05:10 +08:00 . 添加多语言
--布局模板
local layoutTemplate={}
function layoutTemplate.itemTitle(title)
return {
TextView;
layout_width="fill";
text=title;
layout_margin="8dp";
layout_marginLeft="16dp";
layout_marginRight="16dp";
textColor=colorAccent;
}
end
function layoutTemplate.itemHelperText(text)
return {
TextView;
text=text;
textColor=textColorSecondary;
layout_marginLeft="16dp";
layout_marginRight="16dp";
layout_marginBottom="8dp";
textSize="12sp";
};
end
return layoutTemplate
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Lua
1
https://gitee.com/AideLua/AndroLuaLayoutCompiler.git
git@gitee.com:AideLua/AndroLuaLayoutCompiler.git
AideLua
AndroLuaLayoutCompiler
AndroLua+ 布局编译器
master

搜索帮助