布局预览和实际设备的差异

时间:2017-06-10 07:26:03

标签: android xml textview

我不明白为什么,但是我在实际设备中的textView中的文本(在运行时)与我的布局预览的大小不同。

这是我的XML文件中的文本视图片段:

ggplot2::ggplot()

以下是区别: enter image description here

1 个答案:

答案 0 :(得分:1)

app

中使用tools代替tools:textSize

工具用于设计时功能,例如片段中显示的布局)或编译时行为,例如应用于XML资源的缩小模式

查看更多详情:https://developer.android.com/studio/write/tool-attributes.html

相关问题