http://blog.csdn.net/yhaolpz/article/details/51304345 ContentProvider 詳細總結
2016-05-04
private void addTag(String contactName) {
TextView textView= (TextView) mInflater.inflate(R.layout.tag,mFlContacts,false);
}這個方法textview這一行報錯
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
TextView textView= (TextView) mInflater.inflate(R.layout.tag,mFlContacts,false);
}這個方法textview這一行報錯
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView