How to priorly get future Glide image size which will be stored in cache in Android/Java?

In MainActivity, I’m loading some images using glide into recyclerview according to imageview size. See: @Override public void onBindViewHolder(PreviewAdapter.MyViewHolder holder, int position) { …

Config Glide library for caching

How to set glide in the android project so that once images download to the app each time then displayed by the glide cache Glide.with(context).load(url).into(imageView);

I used Glide library to load image into imageView and I don’t know how to make image pinch to zoomable

public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);…