android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="带阴影的文字按钮"
android:textSize="20pt"
android:shadowColor="#aa5"
android:shadowRadius="1"
android:shadowDx="10"
android:shadowDy="10"
/>
提示为:Paint.setShadowLayer is not supported
这是一个警告,原因是预览(preview application)不能正确理解布局。
属于正常现象,后续版本或许会有改进。
解决方法是在模拟器或者真机上运行程序以测试布局。
如果有帮助,请采纳答案好吗,谢谢!