我在整数转换整个字符串时出现问题。 当我编辑edittext“你好”,当我按下按钮,然后在其他编辑文本中,它应该显示我 72 101 108 108 111。 请帮我...转换整数字符串在android中的整数值
我.xml文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginRight="22dp"
android:layout_marginTop="20dp"
android:ems="10"
android:hint="@string/Message" >
<requestFocus />
</EditText>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editText1"
android:text="@string/Decimal" />
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/button1"
android:layout_marginTop="30dp"
android:ems="10"
android:hint="@string/Decimal"/>
</RelativeLayout>
请把你的代码.. – Shachi 2013-02-16 13:17:41