android问题 ListView List<Map<String,String>> 点击事 50
android问题ListViewList<Map<String,String>>点击事件如何获取TextView?我写的TextViewtv=(TextView)vie...
android问题 ListView
List<Map<String,String>>
点击事件如何获取TextView?
我写的TextView tv =(TextView)view
tv.getText();
编译没问题,一点击就崩溃……
求解
03-18 12:01:08.276 3528-3528/com.example.kali.listview E/InputEventReceiver﹕ Exception dispatching input event.
03-18 12:01:08.278 3528-3528/com.example.kali.listview E/MessageQueue-JNI﹕ Exception in MessageQueue callback: handleReceiveCallback
03-18 12:01:08.290 3528-3528/com.example.kali.listview E/MessageQueue-JNI﹕ java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView 展开
List<Map<String,String>>
点击事件如何获取TextView?
我写的TextView tv =(TextView)view
tv.getText();
编译没问题,一点击就崩溃……
求解
03-18 12:01:08.276 3528-3528/com.example.kali.listview E/InputEventReceiver﹕ Exception dispatching input event.
03-18 12:01:08.278 3528-3528/com.example.kali.listview E/MessageQueue-JNI﹕ Exception in MessageQueue callback: handleReceiveCallback
03-18 12:01:08.290 3528-3528/com.example.kali.listview E/MessageQueue-JNI﹕ java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询