gpt4 book ai didi

android-layout - 图形布局编辑器可以显示占位符图像和文本吗?

转载 作者:行者123 更新时间:2023-12-04 06:43:57 32 4
gpt4 key购买 nike

添加时 TextViewsImageViews对于将在运行时动态填充的布局,我经常添加占位符文本和图像,以便预览逼真的布局。布局编辑器是否可以在不要求我自动在我的应用程序中明确包含这些字符串和图像的情况下为我执行此操作?

最佳答案

看起来这个功能不存在,所以我创建了一个 feature request .

When adding TextViews and ImageViews to my layouts that will be populated dynamically at runtime, I often add placeholder text and images so I can preview a realistic layout.

Please enable the layout editor do this for me without requiring me to explicitly include these strings and images in my application automatically. I assume you'd want to have a default image size in the preferences and allow individual ImageViews/texts to override the defaults with something like tools:defaultImageWidth=123px, tools:defaultText="Lorem Ipsum", etc.

tools:numDefaultLoremIpsumTextChars=80 would generate 80 characters of default text.

关于android-layout - 图形布局编辑器可以显示占位符图像和文本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11723000/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com