GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wildma/FontAdaptation: Android 字体大小适配的各种场景

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
screenshots
screenshots
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

FontAdaptation

Android 字体大小适配的各种场景

场景一

根据文案长度自动改变字体大小。如下图所示,第一个为不符合需求的标题,第二个为符合需求的标题。

场景二

字体大小不随系统设置改变。如下图所示,第一个符合需求,第二个不符合需求。

场景三

去除 TextView 默认内边距。如下图所示,第一个为普通 TextView,第二个为加了 includeFontPadding 属性的 TextView,第三个为自定义 TextView(符合需求)。

详细介绍请看文章:聊聊 Android 中的字体大小适配

ps:如果对你有帮助,点下star就是对我最大的认可。

About

Android 字体大小适配的各种场景

Topics

autosizing-textviewsfontadaptationnopaddingtextview

Resources

Readme
Activity

Stars

58 stars

Watchers

2 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.