本文介绍了充气android.support.v4.widget.CircleImageView inflateException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始了我的应用程序迁移到材料设计,所以我改变了我的ImageViews到android.support.v4.widget.CircleImageView之一,应用程序崩溃的事实是,它不能夸大它,但如果我用一样CircleImageView从棒棒糖设备在Android V21与同attributtes完美的作品。

I started migrating my app to material design so I changed one of my ImageViews to android.support.v4.widget.CircleImageView and the app crashes the fact is that it can't inflate it but if I use the same as CircleImageView from android v21 on a lollipop device works perfectly with the same attributtes.

所以只布局下的此视图测试它独自我创建了一个新的项目,仍然崩溃。

so to test it alone I've created a new project with only this View under the layout and still crashes.

<android.support.v4.widget.CircleImageView
                    android:id="@+id/activity_lists_user_profile_picture"
                    android:layout_width="70dp"
                    android:layout_height="70dp"
                    android:layout_gravity="center_vertical"
                    android:layout_marginLeft="16dp"
                    android:layout_marginTop="38dp"
                    android:src="@drawable/ic_new" />

我也发现,人们用一个,但它被标记为垃圾邮件:(

also I found people with the same problem with a google ticket, but it was marked as spam :(

还有没有人知道这是CircleImageView支持V4库的要求

Does any one knows which are the requirements of CircleImageView support v4 library

推荐答案

<一个href=\"http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/5.0.2_r1/android/support/v4/widget/CircleImageView.java\">http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/5.0.2_r1/android/support/v4/widget/CircleImageView.java

说CircleImageView是一个私有的类?意味着你不能使用它。

Says CircleImageView is a private class? Means you can't use it.

这篇关于充气android.support.v4.widget.CircleImageView inflateException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 21:15