I'm using TwitterKit to load a list of tweets in an activity. I would like to add a custom ActionBar to my activity. I'm unable to find a way to extend both AppCompatActivity and ListActivity at the same time... Are there any workarounds or solutions for this? Please see code below
public class travel_info extends ListActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_travel_info);
getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
getSupportActionBar().setDisplayShowCustomEnabled(true);
getSupportActionBar().setCustomView(R.layout.custom_line_info);
View view = getSupportActionBar().getCustomView();
Twitter.initialize(this);
final UserTimeline userTimeline = new UserTimeline.Builder()
.screenName("TfLTravelAlerts")
.build();
final TweetTimelineListAdapter adapter = new TweetTimelineListAdapter.Builder(this)
.setTimeline(userTimeline)
.build();
setListAdapter(adapter);
}
}