Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f050013}的问题

先来看下这个问题吧

10-29 04:11:46.945: WARN/Resources(541): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f050013}

查了下英文的资料

- What happened.
EditText converted default value as it would be an numeric, and omits leading zero. If you use a non-numeric value it won't be converted. If you type directly in input field (not default value) then the zero is not lost.
- What you think the correct behavior should be.
textPassword and textVisiblePassword input types must not consider default value as numeric in any conditions. This is probably should apply to numeric input types only.
 

主要问题是,EditText的值被设定为默认只接爱数值,如果是非数值就会出现不能转换

为什么我出现了这样的问题?

是因为我在TextVIEW中的Text属性设置为EditText的ID号,出现转换警告,在这想告诉大家的是要认真设置好XML中的每个属性,更不要同名。

评论 (1)
  1. avatar
    沙发
    博客之家 2010-11-07 15:41

    你是技术达人吧?好佩服

    浩忍 于 11/8/2010 6:32:21 AM 回复

    不算吧,还在学习中