欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Android Studio 報(bào)Integer types not allowed錯(cuò)誤

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

Android Studio 報(bào)錯(cuò)

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)有提示,說(shuō)明可以的
2.根據(jù)報(bào)錯(cuò)Integer tyes is not allowed,考慮到是不是類(lèi)型有問(wèn)題,😝,改為12sp已ok
3,記得一定帶單位

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

相關(guān)文章

最新評(píng)論