LayoutInflater.from(getContext()).inflate(R.layout.layout_city_picker, this); 这句话应该在onFinishInflate 之前调用吧?