app/src/main/java/cl/ucn/disc/dsm/thenews/activities/adapters/NoticiaAdapter.java
private void showImagePopup(final Noticia noticia,
      final LayoutInflater inflater, final Context context) {

    // The popupimage
    final PopupImageBinding popupImageBinding =
        PopupImageBinding.inflate(inflater);

    // The URL of the photo
    popupImageBinding.pdvFoto.setPhotoUri(Uri.parse(noticia.getUrlFoto()));

    // The Dialog
    final Dialog dialog = new Dialog(context, R.style.PopupDialog);
    dialog.setContentView(popupImageBinding.getRoot());
    dialog.show();

  }
/**
   * Show a image popup with the url.
   *
   * @param noticia  to show.
   * @param inflater used to inflate the popup.
   * @param context  used to build the dialog.
   */
Show a image popup with the url.
@param noticia  to show.
@param inflater used to inflate the popup.
@param context  used to build the dialog.
Show a image popup with the url . @param noticia to show . @param inflater used to inflate the popup . @param context used to build the dialog .
private void showImagePopup(final Noticia noticia,
      final LayoutInflater inflater, final Context context) {
    final PopupImageBinding popupImageBinding =
        PopupImageBinding.inflate(inflater);
    popupImageBinding.pdvFoto.setPhotoUri(Uri.parse(noticia.getUrlFoto()));
    final Dialog dialog = new Dialog(context, R.style.PopupDialog);
    dialog.setContentView(popupImageBinding.getRoot());
    dialog.show();
  }
private void showImagePopup ( final Noticia noticia , final LayoutInflater inflater , final Context context ) { final PopupImageBinding popupImageBinding = PopupImageBinding . inflate ( inflater ) ; popupImageBinding . pdvFoto . setPhotoUri ( Uri . parse ( noticia . getUrlFoto ( ) ) ) ; final Dialog dialog = new Dialog ( context , R . style . PopupDialog ) ; dialog . setContentView ( popupImageBinding . getRoot ( ) ) ; dialog . show ( ) ; }
Show a image popup with the url.
Show a image popup with the url .
// The popupimage // The URL of the photo // The Dialog