You are using a SherlockListActivity
and not a SherlockActivity
. So, your layout must be:
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
And in your onCreate method:
public class ResultActivity extends SherlockListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.result_page);
ResultPageAdapter adapter = new ResultPageAdapter(this, resultBeanList);
setListAdapter(adapter);
//...
}
}
Set you adapter without find your id's ListView
, then it should work!