TextView的身影没有出现在preVIEW - 尽管真实设备工作 [英] TextView shadow not showing up in preview - although working on real device

查看:100
本文介绍了TextView的身影没有出现在preVIEW - 尽管真实设备工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用程序,我通过XML应用了阴影效果到的TextView 。这是它:

in my android app, I applied a shadow effect to a TextView via XML. This is it:

    <TextView
        android:id="@+id/textView_pinfo_label"
        android:textSize="20dp"
        android:layout_height="wrap_content"
        android:text="AppName"
        android:textStyle="bold"
        android:layout_width="wrap_content"
        android:textColor="#FFFFFF"
        android:shadowColor="#000000"
        android:shadowRadius="2"
        android:shadowDx="2"
        android:shadowDy="2"
        android:paddingRight="3dp"
        android:layout_toRightOf="@+id/imageView_pinfo_icon"
        android:layout_alignTop="@+id/imageView_pinfo_icon"></TextView>

现在,在设备一切正常,因为它应该在Eclipse中只有所见即所得preVIEW不显示阴影。这是一个普遍的错误还是我错过的东西。

Now, on the device everything works as it should, only the WYSIWYG preview in Eclipse doesn't show the shadow. Is this a general bug or did I miss something.

先谢谢了。

推荐答案

阴影层不会在Eclipse中的布局编辑器的支持。他们会正确地显示在所有设备和仿真器,即使他们没有在编辑器中。

Shadow layers are not supported in the layout editor inside of Eclipse. They will show up correctly on all devices and the emulator even though they do not in the editor.

这篇关于TextView的身影没有出现在preVIEW - 尽管真实设备工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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