草庐IT

Inflating

全部标签

android - Simon Ics 日期选择器对话框抛出 android.view.InflateException : Binary XML file line #20: Error inflating class net. simonvt.widget.DatePicker

我在我的Android应用程序中使用Simon的ICS日期选择器库(https://github.com/SimonVT)。我有一个日期按钮,如果我点击那个按钮,它会在对话框中显示icsdatepicker。我的问题是,如果我点击按钮,它不会显示日期选择器对话框,但会显示以下错误:03-0210:46:59.521:E/AndroidRuntime(911):android.view.InflateException:BinaryXMLfileline#20:Errorinflatingclassnet.simonvt.widget.DatePicker03-0210:46:59.52

java - 安卓.view.InflateException : Binary XML file line #8: Error inflating class fragment

我正在尝试将布局膨胀为fragment我有#8:错误膨胀类fragment我的View甚至没有创建它落在膨胀如何正确充气布局?我的XML大:我的容器:我的fragment布局:android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"android:padding="10sp">Java主程序:myclassjavafirst:packagecom.project.places;importandroid.app.Activity;import

安卓 KitKat : android. view.InflateException : Error inflating class android. support.design.widget.NavigationView

下面是我的配置。这适用于AndroidLollipop,但在AndroidKitkat上崩溃。我在这里尝试了所有解决方法,但无济于事:Errorinflatingclassandroid.support.design.widget.NavigationView构建.gradleandroid{compileSdkVersion23buildToolsVersion"23.0.2"defaultConfig{minSdkVersion14targetSdkVersion23//SupportRenderScriptLibraryv8renderscriptTargetApi18rende

android - Inflating RadioGroup in Android-一次检查多个radioButtons

我制作了一个具有可变数量的单选按钮的RadioGroup。问题是可以检查许多单选按钮,它不是在RadioGroup中检查的单个RadioButton(据我所知)我的错误在哪里?这是我的代码:Viewview=inflater.inflate(R.layout.questionnaire_check_question,null);RadioGroupradioGroup=(RadioGroup)view.findViewById(R.id.radioGroup);for(intk=0;kquestionnaire_check_question.xmlcheck_radio_button.

java - 安卓.view.InflateException : Binary XML file line #10: Error inflating class fragment

我按照http://www.techotopia.com/index.php/Using_Fragments_in_Android_-_A_Worked_Example上的教程创建了一个应用程序,但我有一个错误。LogCat:05-0208:16:22.044:D/dalvikvm(1846):Late-enablingCheckJNI05-0208:16:22.080:D/AndroidRuntime(1846):ShuttingdownVM05-0208:16:22.080:W/dalvikvm(1846):threadid=1:threadexitingwithuncaughte

安卓.view.InflateException : Binary XML file line #7: Error inflating class

我在尝试运行我的项目时收到错误消息。我想为Android创建TicTacToe,我使用下面的自定义View来创建TicTacToe棋盘:packageorg.me.TicTacToe.ui;importandroid.content.Context;importandroid.graphics.Canvas;importandroid.graphics.Paint;importandroid.graphics.Paint.Style;importandroid.view.MotionEvent;importandroid.view.View;publicclassTicTacToeBo

android - Toast.makeText 给出 "Error inflating class Textview"异常

我的应用程序中的每个Toast.makeText都会给我一个类似于此的堆栈跟踪:/AndroidRuntime:FATALEXCEPTION:mainProcess:com.myapp.application,PID:8843android.view.InflateException:BinaryXMLfileline#27:BinaryXMLfileline#27:ErrorinflatingclassTextViewatandroid.view.LayoutInflater.inflate(LayoutInflater.java:539)atandroid.view.LayoutI

android - 二进制 XML 文件行 # : Error inflating class fragment : Only on Android (6. 0)-Marshmallow

我无法在AndroidM上显示谷歌地图。Hereislayoutxml:AndroidManifestFile:Andinsideapplicationtag:我在运行时请求权限:if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.M&&(checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)!=PackageManager.PERMISSION_GRANTED||checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCA

android - 二进制 XML 文件行 #1 : Error inflating class fragment MapFragment

我有一个带有一些fragment的抽屉导航。每个Fragment在布局中都有一个MapFragment。最初,当应用程序运行抽屉导航时,点击一次打开fragment,但是当我第二次点击同一个导航项打开同一个fragment时(在访问其他fragment之后)我在onCreateView()BinaryXMLfileline#1:Errorinflatingclassfragment下面是我的fragment代码:user_map_Fragment.xml......MainFragment.cspublicclassMainFragement:Android.Support.V4.Ap

java - 安卓.view.InflateException : Binary XML file line #9: Error inflating class <unknown>

我已经研究这个问题几个小时了,但类似的错误并没有解决问题。我正在为不同Activity中的多个ListView重复使用此XML文件(我假设这与它有关)但我不明白为什么它会中断。XML文件表示ListView中的各个项目。这是XML:这是Java(错误发生在convertView=(FrameLayout)FrameLayout.inflate(mContext,R.layout.column_post,null);):@OverridepublicViewgetView(intposition,ViewconvertView,ViewGroupparent){JSONObjectthe