安卓创建iPhone类似的梯度 [英] Android create iphone-like Gradient
本文介绍了安卓创建iPhone类似的梯度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要在我的Android应用程序中创建的黑色iphone一样梯度。请在下面的图片在顶视图黑色的渐变。怎么做?谢谢
I need to create black iphone like gradient in my android application. Please view black gradient at the top in the image below. How to do it? Thanks
推荐答案
这样的事情,也许?
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="#FF000000"
android:endColor="#FF8E8E8E"
android:angle="270"/>
</shape>
这篇关于安卓创建iPhone类似的梯度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文