ClassNotFoundException for custom ImageView in Android app

后端 未结 1 1214
無奈伤痛
無奈伤痛 2021-01-12 04:32

I am getting following exception...

08-12 14:19:41.564: ERROR/AndroidRuntime(797): Caused by: java.lang.ClassNotFoundException: com.widgets.utils.CustomRound         


        
相关标签:
1条回答
  • 2021-01-12 05:22
    <com.widgets.utils.CustomRoundedCornerImageView 
            android:id="@+id/picture"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"
            android:focusable="false" />
    

    in this you have to change

    <ImageView class="com.widgets.utils.CustomRoundedCornerImageView" 
            android:id="@+id/picture"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"
            android:focusable="false" />
    
    0 讨论(0)
提交回复
热议问题