Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
来源:互联网 发布:蚂蚁花呗提现淘宝店铺 编辑:程序博客网 时间:2024/05/22 00:59
After 2 days I found the solution; from the layout as defined in my question, I have a Spinner
which is bound with a custom TextView
:
<?xml version="1.0" encoding="utf-8"?><TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listTextViewSpinner" ... android:textSize="@dimen/spinner_list_item_text_size" ... />
Here, I have an extracted dimension resource: @dimen/spinner_list_item_text_size
.
This has been defined in dimens.xml
in the following directories:
values-sw600dp
values-sw720dp-land
but crucially I forgot to define it in
values
After defining the resource (@dimen/spinner_list_item_text_size
) in values/dimens.xml
, it works successfully.
http://stackoverflow.com/questions/18741485/caused-by-java-lang-unsupportedoperationexception-cant-convert-to-dimension
0 0
- Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
- Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
- java.lang.UnsupportedOperationException,Can't convert to dimension: type=0x1,TypedArray.java,702
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- Android在屏幕适配时出现异常java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- Android问题解决:Caused by: java.lang.UnsupportedOperationException: Can't convert to fraction: type=0x3
- Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 75 to dimension
- UnsupportedOperationException:can't convert to dimension :typx=0x1
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12问题
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12问题
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
- java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
- 第一章 绪论
- 简单的实现ScrollView 其中的子view滑动悬浮
- C#实现摄像头调用、拍照
- poj 2240 map+floyd
- QEMU虚拟网卡设备的创建流程
- Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
- css定义方式
- mContext.enforceCallingOrSelfPermission
- iOS 应用跳转到AppStore评分 可内置跳转
- android上传下载系列:一般性知识解读
- 去哪儿网前端架构师司徒正美:如何挑选适合的前端框架?
- Android视频聊天或直播,大小视频切换思路和代码
- mongodb 用户身份验证,权限控制db.createUser()方法使用
- 开源几何计算数学库