private void initTabs() { listingListener = new TabListener<ListingListFragment>(this, "listinglist", ListingListFragment.class); ActionBar.Tab tab = actionBar.newTab().setText("Listings").setTabListener(listingListener); actionBar.addTab(tab); tab = actionBar .newTab() .setText("Requests") .setTabListener( new TabListener<RequestListFragment>( this, "requestlist", RequestListFragment.class)); actionBar.addTab(tab); myListingFrag = (ListingListFragment) listingListener.getFragment(); myListingFrag.setClient(myClient); }
@Override public void onLocationChanged(Location location) { myLocation = location; myListingFrag.updateLocation(location, myClient); }