Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为一些精灵批次创建一个带有加载动画的启动页面,作为 AssetManager 的一部分。
我已经成功创建了一个加载动画栏,可以缩放以表示百分比栏。
我的问题是关于在现场布置它。我决定使用一个缩放到场景宽度的表格,该宽度设置为视口的宽度。
我已将动画演员添加到表格中,但是如何为表格本身设置背景图像?
Table.setBackground()会做你需要的。它使用 NinePatch 效果最好(IMO),但需要一个 Drawable。
Table.setBackground()