我需要在我的 android 应用程序中创建类似黑色 iphone 的渐变。请查看下图中顶部的黑色渐变。怎么做?谢谢
最佳答案
也许是这样的?
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="#FF000000"
android:endColor="#FF8E8E8E"
android:angle="270"/>
</shape>
关于Android创建类似iphone的Gradient,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4510585/