Android create iphone-like Gradient
问题 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 回答1: Something like this, perhaps? <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startColor="#FF000000" android:endColor="#FF8E8E8E" android:angle="270"/> </shape> 回答2: I've posted a blog about an Iphone look an Android: http://www.dibbus.com/2011/06/android-gradient-toolbar/ You