android - ImageView radius with background -


i have imageview has background. need set border-radius imageview. use below code in xml file , set android:src doesn't work when set background.

<shape xmlns:android="http://schemas.android.com/apk/res/android" > <corners android:radius="10dp"/> </shape> 

how can set background , radius @ same time ?

you can set background border-radius xml.

<shape xmlns:android="http://schemas.android.com/apk/res/android" >    <corners android:radius="10dp"/>    <!-- background -->    <solid android:color="@android:color/white" /> </shape> 

Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -