Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

alt text

like image 853
Ayaz Alavi Avatar asked Dec 22 '10 15:12

Ayaz Alavi


1 Answers

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>
like image 178
David Hedlund Avatar answered Oct 01 '22 01:10

David Hedlund