我想为视图创建阴影(高程)。我在这里看到了同样的问题,但它还没有被接受的答案。如何在左侧和右侧视图上创建阴影?
Android how to create gradient shadow on left and right of view?
现在我把它活着。
我想为视图创建阴影(高程)。我在这里看到了同样的问题,但它还没有被接受的答案。如何在左侧和右侧视图上创建阴影?
Android how to create gradient shadow on left and right of view?
现在我把它活着。
我强烈建议看看CardView。
您需要的功能是内置的。
与Cardview
试试这个<android.support.v7.widget.CardView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardUseCompatPadding="true"
app:cardElevation="4dp"
app:cardCornerRadius="3dp" >
<!-- put your attributes -->
</android.support.v7.widget.CardView>
http://www.zoftino.com/android-view-shadow-effect
OR
您可以使用9修补图像。
您是否尝试过给定的答案? –