为什么选择textView“ Hello world!”没有显示在屏幕上吗? [英] Why textView "Hello world!" isn't showing on screen?

查看:122
本文介绍了为什么选择textView“ Hello world!”没有显示在屏幕上吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试添加更多的 TextViews ,但是它们没有出现在屏幕上,它告诉我该视图不受限制。它仅具有设计时间位置,因此除非添加约束,否则在运行时将跳至(0,0)。

I am trying to add more TextViews but they are not appearing on screen and it tells me "This view is not constrained. It only has design time positions, so it will jump to (0,0) at runtime unless you add the constraints".

照片:

Photo:

推荐答案


尝试此代码

Try this code



 1- Go to your res folder and inside res folder.
     2-Go to values.
     3-Go to style.xml
     4-change  <!-- Base application theme. -->
         <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
     to <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

这篇关于为什么选择textView“ Hello world!”没有显示在屏幕上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆