当前位置: 代码迷 >> Android >> findviewbyid参数一定要int 没办法就把存了id的数组强行转换成了int 还是不能运行 如何破
  详细解决方案

findviewbyid参数一定要int 没办法就把存了id的数组强行转换成了int 还是不能运行 如何破

热度:51   发布时间:2016-04-28 08:02:44.0
findviewbyid参数一定要int 没办法就把存了id的数组强行转换成了int 还是不能运行 怎么破?
这是xml文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >

     <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="拨号" />
     <TableLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:stretchColumns="0"
        >

         <TableRow>

             <EditText
                 android:id="@+id/edt"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_alignParentLeft="true"
                 android:layout_below="@+id/textView1"
                 android:layout_marginBottom="80px"
                 android:ems="10"
                 android:hint="输入号码" >

                 <requestFocus />
             </EditText>

             <Button
                 android:id="@+id/del"
                 android:layout_width="wrap_content"