title: Error Picasso doesn't work with RecyclerView
body: <p>no image is shown from URL even if i tried one image in onCreate it actually works with the same URL but with the RecyclerView nothing is shown</p>
  
  <p>my On Create Method </p>
  
  <pre><code>    protected void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
  
          NetworkUtilites ob=new NetworkUtilites();
          ob.execute();
  
  
          /** moviesArray contains Movies with Description **/
  
          moviesArray=ob.getArrayMovies();
  
          adapter = new RecyclerViewAdapter( this,  moviesArray);
  
          mRecyclerView = findViewById(R.id.recycler_view);
          mRecyclerView.setAdapter(adapter);
          mRecyclerView.setHasFixedSize(true);
          mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
  
  
      }
  </code></pre>
  
  <p>Here is onBindViewHolder function</p>
  
  <pre><code>  public void onBindViewHolder(@NonNull ViewHolder holder, final int position) {
  
          /** MoviesArray return description of movie , getPoster_path() path return URL Of the poster film**/
  
          String moviePosterURL= moviesArray.get(position).getPoster_path();
  
          if(!TextUtils.isEmpty(moviePosterURL))
          {
              Picasso.get().load(moviePosterURL).into(holder.imageView);
          }
  
      }
  </code></pre>
  
  <p>Here is onCreateViewHolder function</p>
  
  <pre><code>    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
          View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.layoul_listitem,parent,false);
          ViewHolder holder = new ViewHolder(view);
  
  
          return holder;
      }
  </code></pre>
  
  <p>Here is ViewHolder function</p>
  
  <pre><code>
      public class ViewHolder extends RecyclerView.ViewHolder
      {
  
          ImageView imageView;
          RelativeLayout parentlayout;
  
          public ViewHolder(@NonNull View itemView)
          {
              super(itemView);
              imageView=itemView.findViewById(R.id.image);
              parentlayout =itemView.findViewById(R.id.parent_layout);
          }
      }
  
  </code></pre>
  
  <p>layout_listitem.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/parent_layout"
      &gt;
  
      &lt;ImageView
          android:layout_width="60dp"
          android:layout_height="60dp"
          android:id="@+id/image"
      /&gt;
  
  &lt;/RelativeLayout&gt;
  
  </code></pre>
  
  <p>activity_main.xml with the Recycler View</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/recycler_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>NetworkUtilites class</p>
  
  <pre><code>public class NetworkUtilites extends AsyncTask&lt;Void,Void,Void&gt;
  {
  
          private static final String MoviesURL="http://api.themoviedb.org/3/movie/popular?api_key=";
          private ArrayList &lt;ListItem&gt; arrayMovies =new ArrayList&lt;&gt;();
          private String sent=null;
  
          @Override
          protected void onPreExecute() {
              super.onPreExecute();
          }
  
  
          @Override
          protected Void doInBackground(Void... strings)
          {
  
              try
              {
  
                  URL url = new URL(MoviesURL);
                  HttpURLConnection urlConnection=(HttpURLConnection)url.openConnection();
                  InputStream in = new BufferedInputStream(urlConnection.getInputStream());
                  sent=StreamtoString(in);
                  in.close();
  
  
              }
              catch (Exception e)
              {
  
              }
              return null;
          }
  
  
          @Override
          protected void onPostExecute(Void s)
          {
  
              super.onPostExecute(s);
          }
  
  
          public String StreamtoString(InputStream inputStream)
          {
              BufferedReader bureader= new BufferedReader(new InputStreamReader(inputStream));
              String line;
              String Text = "";
              try{
                  while((line=bureader.readLine())!=null)
                  {
                      Text+=line;
                  }
              } catch (Exception e) {
  
              }
              return  Text;
          }
  
  
          public String getSent() {
              return sent;
          }
  
          public ArrayList&lt;ListItem&gt; getArrayMovies()
          {
  
              try {
  
                  JSONObject parentObject;
                  JSONArray parentArray;
                  if (!sent.equals(null))
                  {
                      parentObject = new JSONObject(sent);
                      parentArray = parentObject.getJSONArray("results");
  
                      System.out.println(parentArray.length());
                      for (int i = 0; i &lt; parentArray.length(); i++)
                      {
  
                          JSONObject movieDetails = parentArray.getJSONObject(i);
                          String poster_path="http://image.tmdb.org/t/p/w342";
                          poster_path += movieDetails.getString("poster_path");
                          String original_title=movieDetails.getString("original_title");
                          String overview= movieDetails.getString("overview");
                          int vote_average=movieDetails.getInt("vote_average");
                          String release_date=movieDetails.getString("release_date");
  
                          ListItem ob= new ListItem(original_title,poster_path,overview,vote_average,release_date);
                          arrayMovies.add(ob);
                      }
  
                  }
              }
              catch (Exception e)
              {
  
              }
  
              return arrayMovies;
          }
  
  
  
  
  
  
  }
  </code></pre>