Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【功能建议】textview字体改为sp,目前为dp,谷歌商店上架会有警告 #462

Closed
crazecoder opened this issue Aug 25, 2024 · 2 comments
Labels
已处理 已处理,等待结单 等待反馈 存疑或问题需要进一步确认

Comments

@crazecoder
Copy link

功能建议

需求描述:

image image
@kongzue
Copy link
Owner

kongzue commented Aug 27, 2024

默认情况下,DialogX 的字号使用 dp 为单位,其目的是在不同分辨率的屏幕小保持与 UI 设计风格一致的文本显示样式,要调整样式,请参考 wiki 中关于各部分组件的字体样式调整说明,例如 MessgaeDialog 的文本样式调整你可以 在这里 找到对应的方法,DialogX 也提供了全局调整的方法,你可以 在这里 找到。

DialogX 的文本样式调整需要你构建一个 TextInfo 配置信息,其中可以通过 .setFontSizeUnit(FONT_SIZE_UNIT) 来指定文本大小的单位,其中 FONT_SIZE_UNIT 是一个枚举,提供 DPPXSP 可选。

@kongzue kongzue added the 已处理 已处理,等待结单 label Aug 27, 2024
@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label Sep 11, 2024
Copy link

stale bot commented Sep 18, 2024

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
已处理 已处理,等待结单 等待反馈 存疑或问题需要进一步确认
Projects
None yet
Development

No branches or pull requests

2 participants