0
谷歌閱讀器應用程序有一個很好的陰影用於分隔兩個窗格。我試圖以非常有限的成功重新創建這個。我使用下面的xml,它給出了下面的屏幕截圖。有關改善這個的任何建議?
vertshadowgradient.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="#ffffff"
android:centerColor="#e6e6e6"
android:endColor="#c8c8c8"
android:angle="0" />
</shape>
main.xml中
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFFFF"
android:orientation="horizontal" >
<View android:id="@+id/divider"
android:background="@drawable/vertshadowgradient"
android:layout_marginLeft="200dip"
android:layout_width="10dip"
android:layout_height="fill_parent"/>
</LinearLayout>