@Override
 protected void onPreExecute() {
   if (!restaurant.isCompleteDataLoaded()) {
     progressDialog =
         ProgressDialog.show(activity, restaurant.getRetaurantName(), "Recuperando información");
     progressDialog.setInverseBackgroundForced(true);
   }
 }
  private RelativeLayout createAndFillDataMovementLayout(RestaurantDao restaurant, int position) {
    RelativeLayout relativeMovementLayout =
        (RelativeLayout) inflater.inflate(R.layout.restaurant_data, null, false);

    RelativeLayout relativeMovementInfoLayout =
        (RelativeLayout) relativeMovementLayout.findViewById(R.id.restaurant_data_info_layout);

    ((TextView) relativeMovementInfoLayout.findViewById(R.id.restaurant_data_name))
        .setText(restaurant.getRetaurantName());
    ((TextView) relativeMovementInfoLayout.findViewById(R.id.restaurant_data_direction))
        .setText(restaurant.getRestaurantDisplayDirection());
    String foodType = getFoodType(restaurant);
    ((TextView) relativeMovementInfoLayout.findViewById(R.id.restaurant_data_type))
        .setText(foodType);
    ((TextView) relativeMovementInfoLayout.findViewById(R.id.restaurant_data_phone))
        .setText(restaurant.getPhoneNumber());

    LinearLayout buttonsLayout =
        (LinearLayout) relativeMovementLayout.findViewById(R.id.restaurant_data_apps_layout);
    buttonsLayout.setId(position);

    if (wazeInstalled) {
      ImageButton wazeButton =
          (ImageButton) buttonsLayout.findViewById(R.id.restaurant_data_waze_image);
      wazeButton.setVisibility(View.VISIBLE);
      wazeButton.setOnTouchListener(new TouchElementsListener<ImageButton>());
      wazeButton.setOnClickListener(new WazeClickListener(restaurant));
    }
    if (gNavigationInstalled) {
      ImageButton gNavigationButton =
          (ImageButton) buttonsLayout.findViewById(R.id.restaurant_data_nav_image);
      gNavigationButton.setVisibility(View.VISIBLE);
      gNavigationButton.setOnTouchListener(new TouchElementsListener<ImageButton>());
      gNavigationButton.setOnClickListener(new GNavClickListener(restaurant));
    }

    TextView restaurantDataClose =
        (TextView) relativeMovementInfoLayout.findViewById(R.id.restaurant_data_close);
    restaurantDataClose.setOnClickListener(
        new OnClickListener() {
          public void onClick(View v) {
            dialog.hide();
            dialog.cancel();
          }
        });

    ImageButton iButtonMaps = (ImageButton) buttonsLayout.findViewById(R.id.restaurant_data_maps);
    iButtonMaps.setOnTouchListener(new TouchElementsListener<ImageButton>());
    iButtonMaps.setOnClickListener(new GMapsClickListener(restaurant));

    return relativeMovementLayout;
  }