Skip to content

Display a defaul Image when the image is loading #24

@cloudshooterhuman

Description

@cloudshooterhuman

I need to display an indication that the image is onLoading so my solution is to setImageDrawable but didn't work.

This is what i had tried :

ArrayList images = new ArrayList();
for(final Photos photo : MainApplication.getPhotos()){
ImageView image = new ImageView(getActivity());
image.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.default_image));
image.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), ImageDisplayerActivity.class);
                intent.putExtra("url",photo.getUrl() );
                getActivity().startActivity(intent);
            }
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions