title: use images from assets folder instead of drawable folder in a ListFragment
body: <p>im having a hard time to figure out how to use images from assets folders in the same way as in a drawable folder. i have searched and found that i can use getAssets() function, but i cant figure out how to use it, i have costume listview inside fragments. 
  i dont want to use drawable folder because my assets contains some subfolders that i need.</p>
  
  <p><a href="https://i.stack.imgur.com/in0Dd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/in0Dd.png" alt="enter image description here"></a></p>
  
  <p>this is what i have done so far, but the images are from drawable folder and i want to repace them with those in assets:</p>
  
  <pre><code>public class AfricaFragment extends ListFragment{
  
  private AssetManager assets;
  
  /** An array of items to display in ArrayList */
  String android_versions[] = new String[]{
          "flag1",
          "flag2",
          "flag3",
          "flag4"
  };
  Integer[] imgid={ 
          R.drawable.a,
          R.drawable.b,
          R.drawable.c,
          R.drawable.d
  };
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
  
      assets = getActivity().getBaseContext().getAssets();
      InputStream stream;
  
  
      CustomListAdapter adapter=new CustomListAdapter(getActivity(), android_versions, imgid);
      this.setListAdapter(adapter);
  
      return super.onCreateView(inflater, container, savedInstanceState);
  
  }
  
  @Override
  public void onStart() {
      super.onStart();
      /** Setting the multiselect choice mode for the listview */
      getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
  
  }
  }
  </code></pre>
  
  <p>Im gratful for any help.</p>