示例#1
0
 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);
 }
示例#2
0
 @Override
 public void onLocationChanged(Location location) {
   myLocation = location;
   myListingFrag.updateLocation(location, myClient);
 }