Android studio 安卓工作室-can';在AppTheme中看不到文本
我刚刚启动android studio,在我的构建中似乎看不到“Hello World”文本: 当我切换到另一个主题时,我能够看到文本,有什么问题吗 编辑: 颜色与背景不同 布局xml:Android studio 安卓工作室-can';在AppTheme中看不到文本,android-studio,Android Studio,我刚刚启动android studio,在我的构建中似乎看不到“Hello World”文本: 当我切换到另一个主题时,我能够看到文本,有什么问题吗 编辑: 颜色与背景不同 布局xml: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xm
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:textColor="@color/colorAccent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.44" />
</android.support.constraint.ConstraintLayout>
谢谢大家! 根据提供的有关该问题的信息,您需要ConstraintLayout的结束标签
</android.support.constraint.ConstraintLayout>
他们就这样呆着
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:textColor="@color/colorAccent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.44" />
</android.support.constraint.ConstraintLayout>
或者您可能需要重新启动android studio缓存
转到菜单文件>重新启动缓存/重新启动
我希望我已经提供了帮助主题的字体文本是否以白色为颜色?请共享您的布局和样式xml文件。该图片只是显示您的布局。布局不会一直自动刷新。如果问题不是不可见的文本,则有一个刷新按钮。您应该清楚,您的意思是您的文本没有显示在running应用程序中,或者只是没有显示在layout view.edited中。问题是我在布局视图中看不到文本。我无意中没有复制到编辑中,但它在那里。我重新启动了缓存,但它仍然没有显示文本:(try菜单(build>cleanproject)等待作业完成,然后(build>rebuildproject)