首页 > 系统 > Android > 正文

Android Studio 报Integer types not allowed错误

2019-10-22 18:26:11
字体:
来源:转载
供稿:网友

Android Studio 报错

Error:(25, 5) Integer types not allowed (at 'android:textSize' with value '12').

代码

<style name="HorizontalBtnLayout">    <item name="android:layout_height">match_parent</item>    <item name="android:layout_width">0dp</item>    <item name="android:layout_weight">1</item>    <item name="android:textSize">12</item> </style>

分析:

1.是不是<style> </style>标签内不能使用android:textSize,系统有提示,说明可以的
2.根据报错Integer tyes is not allowed,考虑到是不是类型有问题,
注:相关教程知识阅读请移步到Android开发频道。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表