title: Glide Not Loading Image
body: <p>I have saved my drawables in an integer array in a resource file but when i try reading it and loading it using the glide library i am unable to dispaly an image.</p>
  
  <p>Adapter</p>
  
  <pre><code>public class CuisineAdapter extends RecyclerView.Adapter&lt;ViewHolder_Cuisine&gt; {
  
  private Context context;
  private TypedArray pictures;
  private ArrayList&lt;Integer&gt; images;
  
  public CuisineAdapter(Context context) {
      this.context = context;
      this.images = new ArrayList&lt;&gt;();
  
      /*images.add(R.drawable.africa);
      images.add(R.drawable.bahamas);
      images.add(R.drawable.brazil);
      images.add(R.drawable.china);
      images.add(R.drawable.denmark);
      images.add(R.drawable.france);
      images.add(R.drawable.germany);
      images.add(R.drawable.great_britain);
      images.add(R.drawable.greece);
      images.add(R.drawable.india);
      images.add(R.drawable.ireland);
      images.add(R.drawable.israel);
      images.add(R.drawable.italy);
      images.add(R.drawable.japan);
      images.add(R.drawable.korea);
      images.add(R.drawable.mexico);
      images.add(R.drawable.russia);
      images.add(R.drawable.spain);
      images.add(R.drawable.thailand);
      images.add(R.drawable.united_arab_emirates);
      images.add(R.drawable.united_states_of_america);
      images.add(R.drawable.vietnam);*/
  
      pictures = context.getResources().obtainTypedArray(R.array.country_flags);
      Log.i("data", pictures.toString() + "");
  }
  
  @Override
  public ViewHolder_Cuisine onCreateViewHolder(ViewGroup parent, int viewType) {
      LayoutInflater inflater = LayoutInflater.from(parent.getContext());
      View view = inflater.inflate(R.layout.cuisine_type, parent, false);
      return new ViewHolder_Cuisine(view);
  }
  
  @Override
  public void onBindViewHolder(final ViewHolder_Cuisine holder, int position) {
  
      int image = images.get(position);
      Glide.with(context)
              .load(image)
              .override(150, 150)
              .into(holder.getImageView());
      //holder.getImageView().setImageResource(image);
  }
  
  @Override
  public int getItemCount() {
      return images.size();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>If i use holder.getImageView().setImageResource(image); instead of glide everything works well and i can display the image but this takes a lot of memory so i wanted to use glide.</p>
  
  <pre><code>&lt;integer-array name="country_flags"&gt;
      &lt;item&gt;@drawable/africa&lt;/item&gt;
      &lt;item&gt;@drawable/bahamas&lt;/item&gt;
      &lt;item&gt;@drawable/brazil&lt;/item&gt;
      &lt;item&gt;@drawable/china&lt;/item&gt;
      &lt;item&gt;@drawable/denmark&lt;/item&gt;
      &lt;item&gt;@drawable/france&lt;/item&gt;
      &lt;item&gt;@drawable/germany&lt;/item&gt;
      &lt;item&gt;@drawable/great_britain&lt;/item&gt;
      &lt;item&gt;@drawable/greece&lt;/item&gt;
      &lt;item&gt;@drawable/india&lt;/item&gt;
      &lt;item&gt;@drawable/ireland&lt;/item&gt;
      &lt;item&gt;@drawable/israel&lt;/item&gt;
      &lt;item&gt;@drawable/italy&lt;/item&gt;
      &lt;item&gt;@drawable/japan&lt;/item&gt;
      &lt;item&gt;@drawable/korea&lt;/item&gt;
      &lt;item&gt;@drawable/mexico&lt;/item&gt;
      &lt;item&gt;@drawable/russia&lt;/item&gt;
      &lt;item&gt;@drawable/spain&lt;/item&gt;
      &lt;item&gt;@drawable/thailand&lt;/item&gt;
      &lt;item&gt;@drawable/united_arab_emirates&lt;/item&gt;
      &lt;item&gt;@drawable/united_states_of_america&lt;/item&gt;
      &lt;item&gt;@drawable/vietnam&lt;/item&gt;
  &lt;/integer-array&gt;
  </code></pre>
  
  <p>I tried using typed array but that for unsuccessful so i shifted to an arraylist</p>