错误android.widget.ImageButton cannot be cast to android.widget.Button
来源:互联网 发布:saas软件合同 编辑:程序博客网 时间:2024/06/05 18:15
点击APP图标显示会话列表时出现异常
07-06 10:40:46.015: E/AndroidRuntime(10057): FATAL EXCEPTION: main
07-06 10:40:46.015: E/AndroidRuntime(10057): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.txrj.sms/com.txrj.sms.activity.ConversationListActivity}: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.Button
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1970)
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995)
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.app.ActivityThread.access$600(ActivityThread.java:128)
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.os.Handler.dispatchMessage(Handler.java:99)
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.os.Looper.loop(Looper.java:137)
07-06 10:40:46.015: E/AndroidRuntime(10057): at android.app.ActivityThread.main(ActivityThread.java:4517)
mCreateMsgBtn = (Button) findViewById(R.id.create_message);
将(Button)改成(ImageButton)
- 错误android.widget.ImageButton cannot be cast to android.widget.Button
- android.widget.Button cannot be cast to android.widget.Gallery
- widget.Button cannot be cast to android.widget.ListView
- 【Android】程序崩溃错误为Android.widget,textView cannot be cast to android.widget.button
- 【Android】程序崩溃错误为Android.widget,textView cannot be cast to android.widget.button
- APP程序崩溃错误为Android.widget,textView cannot be cast to android.widget.button
- 关于Android.widget.Button cannot be cast to com.esri.android.map.MapView错误的问题
- 关于java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.Edit 错误的解决
- 安卓出现android.widget.TextView cannot be cast to android.widget.Button问题
- java.lang.ClassCastException~android.widget.ImageView cannot be cast to android.widget.Button~
- android.widget.FrameLayout cannot be cast to android.widget.Button 问题
- 安卓异常android.widget.TextView cannot be cast to android.widget.Button
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- WPF 全球化多语言版本 动态语言包
- USB枚举过程 USB Enumeration
- 关于“子网掩码”
- iOS中使用blend改变图片颜色
- Flex4_操作XML
- 错误android.widget.ImageButton cannot be cast to android.widget.Button
- java 调用webservice
- 常用非空判断及获取控件的值
- hdu 1011(树形DP)
- MTK 修改闹钟在关机状态下不会自动响闹铃
- 如何把汉字转化成ACSII 值
- apk中启动第三方apk
- poj 3070 (fibonacci函数矩阵快速幂)
- POJ 3667 Hotel