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