<ImageView
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_width="match_parent"
android:layout_height="10dp"
android:srcc="@drawable/actionbar_shadow" />
actionbar_shadow是.9图片,上述写法达不到预期效果,需要把src改为background,.9图片只能用作背景
<ImageView
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="@drawable/actionbar_shadow" />