title: Glide not loads image from url
body: <p>I have <code>ListView</code>, where I have <code>ImageView</code>. I need to get the image from url and show in <code>ImageView</code>, but that's not working, the image is not visible. In that <code>ListView</code> I have a <code>TextView</code> and <code>CheckBox</code> too, but you not need it because that works. I'm using <code>Glide</code>. So what's the problem? </p>
  
  <p>I set in glide placeholders and it loads the placeholders. I've done debug and I saw that the glide gets the image URL. But the image doesn't load. </p>
  
  <p>Ok here's the item code.</p>
  
  <pre><code>public class LanguageItem {
  
  String imagePath;
  
  LanguageItem(String imagePath,) {
      this.imagePath = imagePath;
  }
  
  public String getImagePath() {
      return imagePath;
  }
  </code></pre>
  
  <p>There are textView and checkbox too, but I'm not showing it to you, because that works fine.</p>
  
  <p>Here the adapter.</p>
  
  <pre><code>public class LanguageAdapter extends BaseAdapter {
  
  private Context context;
  private LayoutInflater lInflater;
  private ArrayList&lt;LanguageItem&gt; objects;
  
  LanguageAdapter(Context context, ArrayList&lt;LanguageItem&gt; itemObj) {
      this.context = context;
      objects = itemObj;
      lInflater = (LayoutInflater) context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  }
  
  //amount of elements
  @Override
  public int getCount() {
      return objects.size();
  }
  
  //element by position
  @Override
  public Object getItem(int position) {
      return objects.get(position);
  }
  
  //id by position
  @Override
  public long getItemId(int position) {
      return position;
  }
  
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
  
      View view = convertView;
      if (view == null) {
          view = lInflater.inflate(R.layout.language_items, parent, false);
      }
  
      ImageView imageView = (ImageView) view.findViewById(R.id.imageView);
  
  Glide.with(context).load(objects.get(position).getImagePath()).thumbnail(0.5f).crossFade().into(imageView);
  
  
      return view;
  }
  </code></pre>
  
  <p>And here's the fragment. I'm doing my work in fragment.</p>
  
  <pre><code>public class FragmentLanguage extends BaseFragment {
  
  private static final String IMAGE = "IMAGE";
  private ApiClient apiClient;
  private ArrayList&lt;LanguageItem&gt; objS;
  private LanguageAdapter adapter;
  
  private View mainView;
  private ListView listView;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      mainView = inflater.inflate(R.layout.languages, container, false);
      listView = (ListView) mainView.findViewById(R.id.language_list);
  
      apiClient = ApiClient.getInstance();
  
      //calling methods
      fillData();
      showResult();
  
      return mainView;
  }
  
  public void fillData() {
  
      objS = new ArrayList&lt;&gt;();
  
      getLanguageCall();
  
  }
  
  public void getLanguageCall() {
      Call&lt;ResponseBody&gt; getLanguage = apiClient.getLanguage(SharedPreferencesManager.getInstance().getAccessToken());
      getLanguage.enqueue(new Callback&lt;ResponseBody&gt;() {
          @Override
          public void onResponse(Call&lt;ResponseBody&gt; call, Response&lt;ResponseBody&gt; response) {
              if (response.isSuccessful()) {
                  try {
                      String data = response.body().string();
                      JSONArray array = new JSONArray(data);
  
  
                      for (int i = 0; i &lt; array.length(); i++) {
                          JSONObject object = array.getJSONObject(i);
                          String languageName = object.getString("name");
                          String path = object.getString("image_path");
                          String real_path = "https://supportop.eu-gb.mybluemix.net" + path.substring(1, path.length());
  
  
                          Toast.makeText(context, real_path, Toast.LENGTH_SHORT).show();
                          objS.add(new LanguageItem(languageName,real_path, false));
                      }
                      adapter = new LanguageAdapter(getActivity(), objS);
                      listView.setAdapter(adapter);
  
                  } catch (IOException | JSONException e) {
                      e.printStackTrace();
                  }
              } 
          }
  
          @Override
          public void onFailure(Call&lt;ResponseBody&gt; call, Throwable t) {
              Toast.makeText(context, "Error", Toast.LENGTH_SHORT).show();
          }
      });
  }
  }
  </code></pre>
  
  <p>Ok here's the code. I done debug and the Image url it gets successfully, but glide not loads it. Thank you for reading.</p>
  
  <p>Ok and here's the layout.</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="50dp"
  android:background="@color/white"
  android:orientation="horizontal"&gt;
  
  &lt;ImageView
      android:id="@+id/imageView"
      android:layout_width="45dp"
      android:layout_height="30dp"
      android:layout_gravity="center"
      android:layout_marginStart="20dp" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here the listView part.</p>
  
  <pre><code>&lt;ListView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:id="@+id/language_list"
      android:layout_marginTop="10dp"
      android:layout_below="@+id/linearLayout"
      android:layout_above="@+id/bottomNavigationView"&gt;
  
  &lt;/ListView&gt;
  </code></pre>