我在android studio设计编辑器中看到编辑文本是灰色的,有人能告诉我为什么会这样吗?
注意:
目前,我不能通过实际的截图,因为我是新的堆栈溢出,并没有超过50个声誉上传图像。因此链接中图像只是参考其在编辑文本时显示的灰色程度。这不是实际的屏幕截图。用于编辑文本的Check image, this is rendering error like this和XML代码是
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="0dp"
android:layout_toRightOf="@id/discriptionLogo"
android:layout_marginTop="25dp"
android:hint="Discription"
android:id="@+id/discription"
android:textColor="@color/colorblack"/>发布于 2018-01-14 15:27:01
您正在以错误的方式使用CoordinatorLayout,这会导致呈现不正确。更正它,或者简单地将CoordinatorLayout替换为RelativeLayout或LinearLayout。您的EditText与此错误无关。如果您不能解决这个问题,请发布完整的xml文件。
https://stackoverflow.com/questions/48247450
复制相似问题