我正在使用我在这里找到的 AutoResizeTextView 类: https ://stackoverflow.com/a/5535672/371778
这在 JellyBean 之前一直很有效。JellyBean 似乎无法从 textView AttributeSet 中识别 getTextSize(),因为它返回 0.0。
我尝试制作自定义 xml 属性,但我利用样式来使用 AutoResizeTextView 类,并且无法在 styles.xml 中包含自定义命名空间。
有什么想法可以让 JellyBean 识别这种方法吗?