android - android布局中的设计问题
问题描述
我对 android studio 有问题。我根据需要在android studio中制作了我的textview的大小和颜色。其中的预览很好,但是当我在我的设备上运行它时,大小和颜色发生了变化。我该怎么办?
xml 部分在下面给出我的实际输出是具有默认大小和颜色的 textview
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="cursive"
android:text="City Scanner"
android:layout_marginTop="50dp"
tools:textAlignment="center"
tools:textColor="@color/colorText"
tools:textSize="50sp"/>
解决方案
推荐阅读
- eclipse - 尝试安装最黑暗的主题后如何在 Ubuntu 上修复 Eclipse?
- reactjs - 使用 Firestore 快照侦听器接收 React 中的聊天列表
- vue.js - 尝试动态创建配置屏幕输入到创建相同输入集的 V-For
- javascript - 除了这个
- python - paho.mqtt.python 无法传递用户名和密码
- latex - TexStudio - 我的引文出现奇怪的字符
- snowflake-cloud-data-platform - 将变量传递给雪花过程
- java - 如何配置最新的 Spring Boot 应用程序以在启动时运行单元测试
- python-3.x - 如何删除我的 Cartopy/Matplotlib 图周围的框架
- html - 一些 CSS 代码无法正常工作