我的XML档案
<?xml version="1.0" enCoding="utf-8"?><com.trill.trillapp.customvIEws.TrillSocialNetworkbar xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:ID="@+ID/social_network" androID:layout_wIDth="match_parent" androID:layout_height="@dimen/detail_social_network_bar_height" androID:background="@color/color01"> <ImageVIEw androID:ID="@+ID/social_facebook_bt" androID:layout_wIDth="90dp" androID:layout_height="match_parent" androID:src="@drawable/button_like_off" /> <com.trill.trillapp.customvIEws.TrillNotificationTextVIEw androID:ID="@+ID/social_facebook_text" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_alignleft="@+ID/social_facebook_bt" androID:layout_marginleft="@dimen/detail_social_text_margin_left" androID:layout_margintop="@dimen/detail_social_bar_icon_margin" androID:gravity="center" androID:text="9" androID:textcolor="@color/color01" androID:textSize="@dimen/Font_f14" /> <ImageVIEw androID:ID="@+ID/social_twitter_bt" androID:layout_wIDth="90dp" androID:layout_height="match_parent" androID:layout_toRightOf="@+ID/social_facebook_bt" androID:scaleType="center" androID:src="@drawable/icon_sns_tw" /> <com.trill.trillapp.customvIEws.TrillNotificationTextVIEw androID:ID="@+ID/social_twitter_text" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_alignleft="@+ID/social_twitter_bt" androID:layout_marginleft="@dimen/detail_social_text_margin_left" androID:layout_margintop="@dimen/detail_social_bar_icon_margin" androID:gravity="center" androID:maxLength="3" androID:ellipsize="end" androID:text="0" androID:textcolor="@color/color01" androID:textSize="@dimen/Font_f14" /> <ImageVIEw androID:ID="@+ID/social_line_bt" androID:layout_wIDth="90dp" androID:layout_height="match_parent" androID:layout_toleftOf="@+ID/social_share" androID:scaleType="center" androID:src="@drawable/icon_sns_line" /> <com.trill.trillapp.customvIEws.TrillNotificationTextVIEw androID:ID="@+ID/social_line_text" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_alignleft="@+ID/social_line_bt" androID:layout_marginleft="@dimen/detail_social_text_margin_left" androID:layout_margintop="@dimen/detail_social_bar_icon_margin" androID:gravity="center" androID:text="0" androID:textcolor="@color/color01" androID:textSize="@dimen/Font_f14" /> <ImageVIEw androID:ID="@+ID/social_share" androID:layout_wIDth="90dp" androID:layout_height="match_parent" androID:layout_alignParentRight="true" androID:scaleType="center" androID:src="@drawable/icon_share_off" /></com.trill.trillapp.customvIEws.TrillSocialNetworkbar>
放大此布局时出现以下错误:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.trill.trillapp/com.trill.trillapp.activitIEs.TrillDetailArticle}: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
如何解决?
解决方法:
我发现我在dimens.xml文件中缺乏价值.所以会导致错误
总结以上是内存溢出为你收集整理的android-无法转换为尺寸:膨胀版面时类型= 0x1全部内容,希望文章能够帮你解决android-无法转换为尺寸:膨胀版面时类型= 0x1所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)