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

改了一堆东西的 pr #14

Merged
merged 15 commits into from
Sep 13, 2017
Merged

改了一堆东西的 pr #14

merged 15 commits into from
Sep 13, 2017

Conversation

RikkaW
Copy link
Contributor

@RikkaW RikkaW commented Sep 13, 2017

  • 修改了很多的东西的计算,让 TextView 在设置了 lineSpacingExtralineSpacingMultiplier 后东西不会歪掉
  • 不再硬编码颜色,增加主题,增加暗色主题
  • 样式修改
    • 代码使用等宽字体,减小一点点大小
    • CodeSpan 上下左右都多空一点
    • 移除 Bullet 的需要 TextView 的计算,直接硬编码一个宽度足够,计算反而可能会对不齐
  • image 支持长按显示 option title (需要 LongPressLinkMovementMethod)
  • 改进 demo
    • 增加可以从 menu 切换内置的 md
    • 增加切换到夜间模式
  • 修了 图片url带下划线“_”时,下划线会被去掉,导致图片下载地址有问题 #13
  • 让一些 Span 的代码变得清爽一些

- use text height to calc background height
- 0.92 text size
- add horizontal and vertical padding
- add margin
- use text height to calc background height
- 0.92 text size
- use FontMetrics to calc bullet dy in order to align bullet with text (when extra line space is set)
- remove use TextView to calc margin because a hardcoded margin is enough
- clearer code
- draw start from top avoid too low when extra line space is set
- use FontMetrics to calc bullet dy in order to align bullet with text (when extra line space is set)
- remove use TextView to calc margin because a hardcoded margin is enough
- clearer code
- add menu to switch built-in md files
- add switch to night mode
@zzhoujay zzhoujay merged commit 9500e25 into zzhoujay:master Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants