亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Android Studio 報Integer types not allowed錯誤

 更新時間:2017年10月11日 08:51:43   作者:藍(lán)色的雪啦  
本文給大家分享的是在使用Android Studio的過程中遇到的報Integer types not allowed錯誤的分析及解決方法,非常實(shí)用,有需要的小伙伴可以參考下

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>標(biāo)簽內(nèi)不能使用android:textSize,系統(tǒng)有提示,說明可以的
2.根據(jù)報錯Integer tyes is not allowed,考慮到是不是類型有問題,😝,改為12sp已ok
3,記得一定帶單位

 <item name="android:textSize">12sp</item>

相關(guān)文章

最新評論