Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想添加一个文件 .ttf 以便能够在我的应用程序中自定义我的 textView 的字体。
不知怎么被剥削了?
我在DaFont上下载文件。
预先感谢您的帮助!
首先,将字体复制到/assets项目中的文件夹中,然后设置您Typeface的字体TextView,您可以执行以下操作:
/assets
Typeface
TextView
Typeface myFont = Typeface.createFromAsset(getAssets(), "dafont.ttf"); myTextView.setTypeface(myFont);
编辑:更正目录
我正在使用 jQuery 来让一些 div 在我的本地服务器上显示/隐藏。现在它在测试页面上工作正常但是当我每次使用时将它放入我的测试应用程序(用 PHP 和 HTML 编写)
<a href="#"
创建一个钩子,它实际上也链接了 locahost