【发布时间】:2015-06-03 06:10:36
【问题描述】:
有没有办法让 CardView 顶部只有圆角半径?
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="10dp"
>
【问题讨论】:
-
如果我们只需要对图像进行整形,请使用材质ShapeableImageView 来绘制具有提供的形状的位图。
标签: android android-appcompat android-cardview