zoukankan      html  css  js  c++  java
  • 为ExpandableListView自定义Item

    02-20 16:28:22.920: E/AndroidRuntime(8523): java.lang.ClassCastException: android.widget.GridView cannot be cast to android.widget.TextView
    02-20 16:28:22.920: E/AndroidRuntime(8523): at android.widget.SimpleExpandableListAdapter.bindView(SimpleExpandableListAdapter.java:247)

    由于SimpleExpandableListAdapter  bindView方法217行使用的textview导致

    解决方法是自定义adapter,继承BaseExpandableListAdapter

    REFERENCES:http://www.eoeandroid.com/code/2011/1202/220.html

  • 相关阅读:
    E. You Are Given Some Strings...
    神奇函数
    AC自动机再加强版
    AC自动机2
    AC自动机
    three arrays
    permutation 2
    string matching
    permutation 1
    equation
  • 原文地址:https://www.cnblogs.com/anee/p/2918957.html
Copyright © 2011-2022 走看看