次の簡単な XML を書きましたが、ほとんどのデバイスでクリア テキストの影が表示されました。
しかし、ST26i 端末(xperia J)では影が出ませんでした。
デバイスには Android バージョン 4.0.4 が搭載されていますが、アプリは Android バージョン 2.3 のエミュレーターでも正常に動作しました。
影があるかどうかを示すために、非常に明確な色を選択しました。
私の質問: 一部のデバイスはテキスト シャドウをサポートしていない可能性がありますか? もしそうなら、何ができるでしょうか?
レイアウト xml は次のとおりです。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFff0000"
android:gravity="center"
android:orientation="vertical"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:shadowColor="#FF00FF00"
android:shadowDx="10"
android:shadowDy="10"
android:shadowRadius="1"
android:text="Hello World"
android:textColor="#FF0000ff"
android:textSize="30dp" />
</LinearLayout>