关于安卓字体,ui的设计稿上是不是经常出现,这样的 字重 Medium,
但是textview 中找了半天也没有啊,于是打开百度,面向百度编程。

找了一些字体,直接贴代码吧,xml文件,直接复制过去,就能有明显的对比。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:tools="http://schemas.android.com/tools"android:layout_marginStart="20dp"android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent"tools:context=".MainActivity"><TextViewandroid:id="@+id/tv"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Hello World!" /><TextViewandroid:id="@+id/tv1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:fontFamily="sans-serif-condensed"android:text="Hello World!" /><TextViewandroid:id="@+id/tv2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:fontFamily="sans-serif-black"android:text="Hello World!" /><TextViewandroid:id="@+id/tv3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:fontFamily="sans-serif-medium"android:text="Hello World!" /><TextViewandroid:id="@+id/tv4"android:layout_width="wrap_content"android:layout_height="wrap_content"android:fontFamily="sans-serif-condensed-medium"android:text="Hello World!" /><TextViewandroid:id="@+id/tv5"android:layout_width="wrap_content"android:layout_height="wrap_content"android:fontFamily="cursive"android:text="Hello World!" /><TextViewandroid:id="@+id/tv6"android:layout_width="wrap_content"android:layout_height="wrap_content"android:fontFamily="monospace"android:text="Hello World!" /><TextViewandroid:id="@+id/tv7"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Hello World!" /><TextViewandroid:textStyle="bold"android:id="@+id/tv8"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Hello World!" /></LinearLayout>

经过对比较为贴近 Medium 这种字体
android:fontFamily=“sans-serif-condensed-medium”

如果还觉得不行,打开AS(本人目前使用AS3.5),找到一个有textview相关的xml文件,然后


看到下面这个红框没,找你想要的字体,有时间可以挨个去试。

安卓中的 Medium 字重相关推荐

  1. 安卓微软雅黑字体ttf_618巨献丨精致的悦黑5字重小字体

    ===悦黑字体简介=== 去年双十一当天,小编应大家要求,分享了一款悦黑小字体,苹果和安卓都有: 双十一巨献:令人瑟瑟发抖的5字重悦黑小字体 大半年时间过去了,一直没有更新,今天抽空更新一下.悦黑是由 ...

  2. mac微软雅黑字体_【字体字重】常见设计稿字体对应字重

    总结如下: Font-weight就是字形的重量,就是粗不粗.在和程序员对接设计的过程中,发现前端大佬很多该加粗的地方都没有加粗,由此顺藤摸瓜,发现前端大佬们在看标注时,都不知道Pingfang的me ...

  3. TextView设置字重(自定义自重)

    TextView自定义加粗 1.目的 2.三种加粗方法 3.第三种方式额外问题以及解决方案 3.1实现细节 1.目的 android提供的几种加粗方法不满足我司ui设计的字体字重 2.三种加粗方法 设 ...

  4. 设计的字重与前端的font-weight

    字重(weight),是指相对于字高度的笔画粗细(stroke width)程度. 一个字体(typeface)的某个字型(font)的字重常常至少4-6个,其中正常与黑体几乎是必备的: 100 - ...

  5. 字体家族、字体和字重

    一.字体家族 字体家族(Font Family)指定了使用哪一个字体家族来渲染文本.字体家族是一组字体,设计时考虑到联合使用并表现相似.家族中的一员可以是斜体,另一个是粗体,另一个是紧缩或使用小的大写 ...

  6. Android苹方圆三合一字体,浪漫雅圆3字重:史上最罗曼蒂克的字体,Magisk模块

    本帖最后由 宁静之雨 于 2018-11-25 21:59 编辑 经常换字体的朋友,想必多年之前就听说过一款字体叫做浪漫雅圆吧. 其实浪漫雅圆只是名字好听,本尊却并不是什么了不得的新作. 就好像很多人 ...

  7. react-native在android上字重显示问题

    字重对应的值 字重: 100 - Thin 200 - Extra Light (Ultra Light) 300 - Light 400 - Regular (Normal.Book.Roman) ...

  8. 2011动作科幻《美少女特工队》BD中英双字1024/1280高清 下载

    ◎译 名 美少女特工队 ◎片 名 Sucker Punch ◎年 代 2011 ◎国 家 美国/加拿大 ◎类 别 动作/冒险/幻想/惊悚 ◎语 言 英语 ◎字 幕 中英双字 ◎IMDB评分 6.5/1 ...

  9. 1024分辨率《加勒比海盗4》BD中英双字无水印

    ◎译 名 加勒比海盗:惊涛怪浪/加勒比海盗 神鬼奇航:幽灵海/加勒比海盗:魔盗狂潮/加勒比海盗4:陌生的潮汐/加勒比海盗4 ◎片 名 Pirates Of The Caribbean On Stran ...

最新文章

  1. 50 xen虚拟化技术基础、xen虚拟化技术进阶
  2. 未知mysql主机怎么办_Mysql如何巧妙的绕过未知字段名详解
  3. 上海交大情感脑电数据集(SEED)简介
  4. Laravel 加载第三方类库的方法
  5. AFN中请求序列化的设置
  6. 使用双重循环,输出数字金字塔
  7. python接口自动化测试(二)-requests.get()
  8. 微信小程序自定义变量使用,静态变量
  9. C#.NET中的事件2
  10. Kubernetes学习之路目录
  11. c语言推箱子源代码及注释,求大神 解析推箱子源代码 要详细
  12. xampp中apache点击启动失败解决方法
  13. Matlab中imadjust函数的用法
  14. 动态规划 —— 最长递增子序列(LIS)
  15. python 日历+记事
  16. 2018年百度算法与标准汇总
  17. CSDN会员服务协议
  18. ZVK13(参考VK13)查销售价格
  19. vnr光学识别怎么打开_物流仓库安防监控系统安装的作用和功能
  20. Linux 使用shell命令复制文件

热门文章

  1. springmvc返回不带引号的字符串
  2. 推荐语、学生和网友留言——《逆袭大学》连载
  3. http和https分别是什么?
  4. 利用github和godaddy搭建使用二级域名的个人主页
  5. house of cat
  6. mysql算gps距离_mysql JS 计算两GPS坐标的距离函数:
  7. python 求两线段是否相交,如果相交求交点
  8. Vue中directive的使用
  9. C++多线程学习06 利用RAII
  10. SkyLight 添加LightingChannelMask功能