You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git/res/values/dimens.xml

145 lines
5.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?xml version="1.0" encoding="utf-8"?>
<!--
============================================================================
dimens.xml - 尺寸资源定义文件
============================================================================
功能:定义便签应用中使用的尺寸值,特别是字体大小
文件位置res/values/dimens.xml
作用:集中管理字体大小,支持多设备适配
============================================================================
Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
============================================================================
-->
<!--
======================= 字体尺寸资源定义 =======================
功能定义便签编辑界面的5种字体大小级别
设计理念:提供从超小到超大的完整字体大小梯度
使用场景NoteEditActivity中的字体大小选择功能
尺寸单位说明:
sp (scale-independent pixel):缩放独立像素
- 与dp类似但会受系统字体大小设置影响
- 适合用于字体尺寸,能响应用户的字号偏好
- 在系统设置中调整字体大小时sp会相应缩放
-->
<resources>
<!--
======================= 超大字体尺寸 =======================
名称text_font_size_super
33sp
功能:最大的字体尺寸,用于视力不佳的用户或需要特别突出的内容
使用场景:
1. 视力辅助:为视力较差的用户提供
2. 演示展示:需要远距离观看的场景
3. 重点强调:特别重要的内容提示
设计考虑:
- 33sp是相当大的字体在手机上可能一行显示字数较少
- 适合便签标题或少量关键信息
- 可能需要调整行间距和布局适配
用户体验:
- 优点:极佳的可读性,清晰易见
- 缺点:屏幕利用率低,需频繁滚动
-->
<dimen name="text_font_size_super">33sp</dimen>
<!--
======================= 大字体尺寸 =======================
名称text_font_size_large
26sp
功能:较大的字体尺寸,提供良好的阅读体验
使用场景:
1. 舒适阅读:适合长时间阅读
2. 中老年人:满足视力下降的用户需求
3. 一般强调:比标准稍大的显示
设计考虑:
- 26sp是比较舒适的阅读大小
- 在保持可读性和屏幕利用率间取得平衡
- 适合大多数便签内容的阅读
用户体验:
- 优点:阅读舒适,不费力
- 适中:适合大多数用户
-->
<dimen name="text_font_size_large">26sp</dimen>
<!--
======================= 中字体尺寸 =======================
名称text_font_size_medium
20sp
功能:中等字体尺寸,标准略大的显示
使用场景:
1. 标准阅读:通用的便签浏览大小
2. 平衡显示:在内容和可读性间平衡
3. 默认选项:可能作为默认字体大小
设计考虑:
- 20sp是Android应用中常见的正文大小
- 既保证可读性,又充分利用屏幕空间
- 适合显示中等长度的便签内容
用户体验:
- 适中:适合大多数使用场景
- 通用:默认的舒适选择
-->
<dimen name="text_font_size_medium">20sp</dimen>
<!--
======================= 标准字体尺寸 =======================
名称text_font_size_normal
17sp
功能:标准字体尺寸,接近系统默认大小
使用场景:
1. 紧凑显示:需要显示更多内容
2. 年轻用户:视力较好的用户选择
3. 系统一致:与系统其他应用保持协调
设计考虑:
- 17sp接近Android默认的16sp
- 在屏幕空间和可读性间偏向空间利用
- 适合内容较多、需要概览的便签
用户体验:
- 优点:显示效率高,一屏内容多
- 缺点:对视力不佳者可能偏小
-->
<dimen name="text_font_size_normal">17sp</dimen>
<!--
======================= 小字体尺寸 =======================
名称text_font_size_small
14sp
功能:较小的字体尺寸,用于最大化屏幕利用率
使用场景:
1. 内容密集:便签内容非常多时
2. 视力优秀:年轻或视力极佳的用户
3. 临时查看:快速浏览而非详细阅读
设计考虑:
- 14sp是较小的字体接近可读性的下限
- 适合显示大量文字内容
- 可能需要用户靠近屏幕或仔细查看
用户体验:
- 优点:最大化信息密度
- 缺点:阅读较吃力,不适合长时间
安全考虑14sp是Android建议的最小可读字体大小
-->
<dimen name="text_font_size_small">14sp</dimen>
</resources>