adapter 走了构造函数后,只走getCount();不走其他方法,原因是返回的count为0,用了三目运算符给写反了; adapter只走构造函数,相当于不走adapter,检查是不是没有setAdapter();