Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextView shadow not showing up in preview - although working on real device

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>

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.

Thanks in advance.

like image 909
Kirill Rakhman Avatar asked Dec 05 '25 10:12

Kirill Rakhman


1 Answers

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.

like image 171
Bobbake4 Avatar answered Dec 07 '25 23:12

Bobbake4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!