【发布时间】:2014-05-30 15:02:28
【问题描述】:
我正在制作一个应用程序,我想在其中将 ImageView 的角四舍五入。但它并没有从它的角落变圆,我使用了以下代码:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="8dp"
android:shape="rectangle" >
<solid android:color="#6BC1F8" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
</shape>
用于圆角图像..,但我越来越喜欢这个图像:
我想像下面这样:
我不知道我哪里做错了,请指导我:)
【问题讨论】:
-
你也需要圆你的图像,现在你只是把你的 imageView 圆但是你的图像是矩形的,请参阅stackoverflow.com/questions/1705239/… 解决问题
-
你检查过this???
标签: android