0
Ich bin neu in Android Studio und ich brauche Hilfe mit einem Schatten zu meinem TextView. Ich lese andere Themen darüber und ich denke mein Code ist korrekt. Das würde bedeuten, dass ich ein Problem mit der IDE haben könnte, vielleicht eine Einstellung, die ich verpasst habe oder so. Das ist mein Code:Shadow-Effekt von TextView in Android Studio funktioniert nicht
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.giphy.MainActivity">
<pl.droidsonroids.gif.GifImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/lope3"
android:background="#000102"
android:id="@+id/gifImageView"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="@string/main"
android:textColor="#ffffff"
android:padding="20dp"
android:fontFamily="monospace"
android:textSize="32sp"
android:shadowColor="#f4e402"
android:shadowRadius="5.0"
android:shadowDy="5.0"
android:shadowDx="5.0" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/greeting"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:padding="20dp"
android:textColor="#ffffff"
android:fontFamily="monospace"
android:textSize="32sp" />
</RelativeLayout>
Leider erscheint der Text Schatten nicht. Ich habe es auf einem Tablet und einem Telefon mit Android 6.0 getestet. Irgendwelche Gedanken?
Danke.
Welches Thema verwenden Sie für Ihre Aktivität? – shadygoneinsane
Ich benutze dieses Thema: