新手上路(一):基于android平台的投票应用的开发(三)之问题整理
来源:互联网 发布:被背黑锅怎么办 知乎 编辑:程序博客网 时间:2024/06/05 00:20
java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <RadioButton android:id="@+id/option_rb" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <TextView android:id="@+id/option_content_tv" android:layout_width="200dip" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginTop="@id/option_rb" android:layout_toRightOf="@id/option_rb" /> </RelativeLayout> </LinearLayout>
报了这么一个错误……
然后弄了半天发现是因为 2.3不支持 :android:layout_marginTop="@id/option_rb"
如果把=右边的id类型 换成"10.0dip" 这种尺寸类型,他就没事了………………
- 新手上路(一):基于android平台的投票应用的开发(三)之问题整理
- 新手上路(一):基于android平台的投票应用的开发(三)之问题整理
- 新手上路(一):基于android平台的投票应用的开发(三)之问题整理
- 新手上路(一):基于android平台的投票应用的开发
- 新手上路(一):基于android平台的投票应用的开发(二)
- iOS应用开发新手上路(三):UITableViewCell的自定义
- android新手上路(一)---字符串为空的检测
- iOS应用开发之新手上路(一):UINavigationBar、UINavigationController和UINavigationItem
- 新手上路(三)
- Android应用开发Camera系列(一):SurfaceView实现相机预览demo--新手上路
- FPGA定时计数的问题(新手上路)
- 新手上路的日志
- 基于EasyAR的Android端AR应用开发(一)
- PHP新手上路(三)
- PHP新手上路(三)
- Android:新手必备的常用代码片段整理(一)
- PHP新手上路(一)
- PHP新手上路(一)
- Linux下 fcntl 函数用法说明
- uva10034 - Freckles(斑点)
- 关于shell
- 词汇量统计2--vc界面示例
- android知多少
- 新手上路(一):基于android平台的投票应用的开发(三)之问题整理
- Toad导出数据字典,把数据库所有的表结构导出到htm中。
- cocos2d-x ios下帧数优化分析
- 第十一次课后作业
- servlet中重定向后别忘了return
- 不使用 临时变量交换两个变量的值(SWAP)【原理分析】
- 淘宝API开发(一) 简单的用TOPAPI来获取淘宝用户信息
- java设计模式之单例模式
- Codeforces Round #184 (Div. 2)-B. Continued Fractions