致命例外:主要 进程:com.example.admin.clucky,PID:1864 java.lang.RuntimeException:无法启动活动ComponentInfo {com.example.admin.clucky/com.example.admin.clucky.fetaldevelopments2}:android.view.InflateException:二进制XML文件行#189:二进制XML文件行#189:错误膨胀类致命例外:主进程:com.example.admin.clucky,PID:1864
引起: java.lang.OutOfMemoryError:无法分配与8445752个自由字节的字节9082812分配和8MB直到OOM
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="48dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Fetal development week by week"
android:id="@+id/textView23"
android:layout_gravity="center_horizontal"
android:textAlignment="center"
android:textColor="#FF060505"
android:textSize="20dp"
android:textStyle="bold|italic"
android:typeface="monospace"
android:layout_weight="1" />
<ImageView
android:layout_width="match_parent"
android:layout_height="160dp"
android:id="@+id/imageView23"
android:background="@drawable/f21"
android:layout_weight="1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/textView18"
android:text="21 weeks
你的宝宝的动作已经从颤动变成全面的踢和刺你的子宫墙壁。随着您对自己的活动更加熟悉,您可能会开始注意到模式。 你的宝宝是胡萝卜
“ 机器人:文字颜色=” 的大小#FF060505" 机器人:textAlignment = “中心” 机器人:文字样式= “大胆|中|斜体” 机器人:字体=“衬线“ 机器人:layout_weight =” 1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/textView19"
android:text="22 weeks
你的宝宝现在看起来几乎就像一个微型新生儿特点,如嘴唇和眉毛都比较明显,但将彩色他眼中的颜料不是。目前还没有。 你的宝宝是spag的大小hetti南瓜。
“ 机器人:文字颜色=” #FF060505" 机器人:textAlignment = “中心” 机器人:TEXTSTYLE = “粗体|正常|斜体” 机器人:字体= “衬线” 机器人:layout_weight = “1” />
<TextView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:id="@+id/textView20"
android:text="23 weeks
宝宝的耳朵都在捡声音越来越好。出生后,她可以识别在子宫外的一些声音,她的里面现在能听到。 你的宝宝是个大芒果的大小。
“ 机器人:文字颜色=” #FF060505" 机器人:textAlignment = “中心” 机器人:TEXTSTYLE = “粗体|正常|斜体” 机器人:字体= “衬线” 机器人:layout_weight = “1”/>
</LinearLayout>
</ScrollView>
很可能你在xml中有错误。发布您的布局。 –