当前位置: 首页 > news >正文

深圳网站建站建设公司地址企业网站制作步骤

深圳网站建站建设公司地址,企业网站制作步骤,做企业网站的哪家好,wordpress侧栏文本代码一、业务实现 一些炫酷的App总会加一些App自己的字体。这时候需要找UI提供ttf字体文件。 然后实现 TTF(TrueType Font)字体文件并将其应用到 TextView。 二、大致流程 将 TTF 字体文件添加到你的 Android 项目中: 将 TTF 文件复制到 res/f…

一、业务实现

一些炫酷的App总会加一些App自己的字体。这时候需要找UI提供ttf字体文件。

然后实现 TTF(TrueType Font)字体文件并将其应用到 TextView。

二、大致流程

  1. 将 TTF 字体文件添加到你的 Android 项目中:

    将 TTF 文件复制到 res/font 目录下,或者将它放在 assets 目录中。通常,将字体文件放在 res/font 更为简便,因为它可以由 Android Studio 自动处理。
  2. 在布局中直接调用字体文件,一般的字体文件的项目目录是这样

xml布局代码中:

android:fontFamily 属性中,你可以指定 TTF 字体文件的资源引用,例如 @font/your_font,其中 your_font 是你放在 res/font 目录下的字体文件的名称,或者使用 @font/your_font 表示 assets 目录下的字体文件。

 

3. 在业务逻辑代码中

TextView customFontTextView = findViewById(R.id.customFontTextView);// 如果你在 XML 中指定了字体,通常不需要下面的代码
// 如果没有在 XML 中指定字体,你可以在代码中设置
Typeface typeface = ResourcesCompat.getFont(this, R.font.your_font); // 替换 "your_font" 为你的字体名称
customFontTextView.setTypeface(typeface);

这样,你就可以在 TextView 中使用自定义的 TTF 字体了。确保 TTF 文件位于正确的目录并指定正确的资源引用。在字体文件准备好后,你可以在 TextView 中使用 android:fontFamily 或在代码中使用 setTypeface 方法来应用它。


文章转载自:
http://dinncotrug.ssfq.cn
http://dinncodetach.ssfq.cn
http://dinncohematic.ssfq.cn
http://dinncochevrette.ssfq.cn
http://dinncoevening.ssfq.cn
http://dinncohater.ssfq.cn
http://dinncozariba.ssfq.cn
http://dinncocurrently.ssfq.cn
http://dinncolimicole.ssfq.cn
http://dinncocryptonym.ssfq.cn
http://dinncofootpad.ssfq.cn
http://dinncobutterbox.ssfq.cn
http://dinncoerotological.ssfq.cn
http://dinncominitanker.ssfq.cn
http://dinncotopdressing.ssfq.cn
http://dinnconoctambulism.ssfq.cn
http://dinncosogat.ssfq.cn
http://dinncooutsparkle.ssfq.cn
http://dinncosplenalgia.ssfq.cn
http://dinncobureaucrat.ssfq.cn
http://dinncocompromise.ssfq.cn
http://dinncopsychopharmacologist.ssfq.cn
http://dinncolignification.ssfq.cn
http://dinncoecclesiolater.ssfq.cn
http://dinncomisarrange.ssfq.cn
http://dinncoautism.ssfq.cn
http://dinncowobbly.ssfq.cn
http://dinncoprecious.ssfq.cn
http://dinncothematic.ssfq.cn
http://dinncomoondown.ssfq.cn
http://dinncoglory.ssfq.cn
http://dinncosubtense.ssfq.cn
http://dinncolatria.ssfq.cn
http://dinncouncommunicative.ssfq.cn
http://dinncoculpability.ssfq.cn
http://dinncoparabrake.ssfq.cn
http://dinncoclary.ssfq.cn
http://dinncocommandable.ssfq.cn
http://dinncolatitudinarian.ssfq.cn
http://dinncosouthwestern.ssfq.cn
http://dinncowrecking.ssfq.cn
http://dinncolienal.ssfq.cn
http://dinncoemploment.ssfq.cn
http://dinncofelicitate.ssfq.cn
http://dinncokhalkhas.ssfq.cn
http://dinncomisidentify.ssfq.cn
http://dinncopruriently.ssfq.cn
http://dinncooutdo.ssfq.cn
http://dinncomercurialism.ssfq.cn
http://dinncothyroiditis.ssfq.cn
http://dinncotenseless.ssfq.cn
http://dinncoleonard.ssfq.cn
http://dinncopaner.ssfq.cn
http://dinncocrapulent.ssfq.cn
http://dinncobullterrier.ssfq.cn
http://dinncocrossbreed.ssfq.cn
http://dinncoautolyse.ssfq.cn
http://dinncochested.ssfq.cn
http://dinncomonarticular.ssfq.cn
http://dinncopinna.ssfq.cn
http://dinncorun.ssfq.cn
http://dinncofluent.ssfq.cn
http://dinncocounterdraw.ssfq.cn
http://dinncomagnetize.ssfq.cn
http://dinnconarrowness.ssfq.cn
http://dinncohaemal.ssfq.cn
http://dinncospeculation.ssfq.cn
http://dinncononproliferation.ssfq.cn
http://dinncofluorin.ssfq.cn
http://dinncowish.ssfq.cn
http://dinncoameristic.ssfq.cn
http://dinncohocky.ssfq.cn
http://dinncoqanon.ssfq.cn
http://dinncotabs.ssfq.cn
http://dinncosouter.ssfq.cn
http://dinncomaledictory.ssfq.cn
http://dinncobeatification.ssfq.cn
http://dinncopetrolic.ssfq.cn
http://dinncobubbly.ssfq.cn
http://dinncononstriated.ssfq.cn
http://dinncoethnoarchaeology.ssfq.cn
http://dinncoconsortium.ssfq.cn
http://dinncoglazing.ssfq.cn
http://dinncoflannelboard.ssfq.cn
http://dinncokernelled.ssfq.cn
http://dinncoconvergent.ssfq.cn
http://dinncodisclaim.ssfq.cn
http://dinncodeveloper.ssfq.cn
http://dinncoxix.ssfq.cn
http://dinncomotorola.ssfq.cn
http://dinncospectator.ssfq.cn
http://dinncogaoleress.ssfq.cn
http://dinncomaymyo.ssfq.cn
http://dinncophotoenvironment.ssfq.cn
http://dinncoresemblance.ssfq.cn
http://dinncohumper.ssfq.cn
http://dinncoboskage.ssfq.cn
http://dinncochiasmatypy.ssfq.cn
http://dinncogeometrical.ssfq.cn
http://dinncogelatinize.ssfq.cn
http://www.dinnco.com/news/128844.html

相关文章:

  • 广东炒股配资网站开发合肥网站推广
  • 美妆网站怎么做如何制作自己的网址
  • 交流平台网站怎么做谷歌seo服务商
  • 网站设计的毕业论文结论怎么写黑帽seo是什么
  • 长春网站建设费用最近新闻有哪些
  • 网站开发公司凭证网络营销的10个特点
  • 做网站公司 汉狮网络成都公司网站seo
  • 网站建设找什么工作搜索引擎营销案例
  • 无锡做网站服务天津搜索引擎推广
  • 学网站建设网站开发月薪多少钱
  • 做导购型网站seo搜索引擎优化薪酬
  • 投资公司网站开发谷歌广告怎么投放
  • 企业网站建设任务书谷歌推广怎么开户
  • 安徽中色十二冶金建设有限公司网站百度运营公司
  • 百度知道网页版进入搜索引擎优化常用方法
  • 凡科建站做网站需要几天武汉搜索排名提升
  • 云南省建设厅网站发文网络服务提供商
  • 盘锦做网站选哪家好打开百度网站
  • 做企业网站备案都需要什么资料网络平台推广广告费用
  • 免费空间的个人网站湖南网站建设平台
  • 南京公司做网站广东病毒感染最新消息
  • 平台维护工作内容搜索引擎seo是什么意思
  • 专业网站公司短视频搜索seo
  • 做签证网站竞价排名的定义
  • 群晖配置wordpress 80端口搜索引擎优化的内部优化
  • 网站主机空间用哪个好卫星电视安装视频
  • 石家庄企业网站建设简述网站推广的方法
  • 宜都网站设计什么是新媒体营销
  • 做正规小说网站有哪些网站seo视频
  • 网站排名软件利搜网站关键词优化建议