把setContentView(R.layout...)
换成
View contentView = LayoutInflater.from(this.getParent()).inflate(R.layout.search_activity, null);
//setContentView(R.layout.search_activity);
setContentView(contentView);
详细讲述请看:http://www.cnblogs.com/sober/archive/2011/03/21/1990814.html