java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
2017-08-30 16:05
1041 查看
类型强转时出问题了,你得到的View 是TextView,可是你却把强转成EditText,你是不是在findviewbyid的时候把EditText当成TextView 了
相关文章推荐
- java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
- 安卓出现错误: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
- java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView解决办法
- Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Bu
- java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
- java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.LinearLayout
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.R
- java.lang.ClassCastException~android.widget.ImageView cannot be cast to android.widget.Button~
- 异常 java.lang.ClassCastException:cannot be cast to android.widget.HeaderViewListAdapter.的解决方法
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.L(转)
- java.lang.ClassCastException: android.widget.HeaderViewListAdapter cannot be cast to com.android.mms
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.L
- Android: java.lang.ClassCastException: android.widget.imageView cannot be cast to android.widget.tex
- java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.wid
- java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.w
- ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView
- 异常:java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.view.
- java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams