This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DrawableRequestBuilder drawableRequestBuilder = Glide.with(This | |
| .load(url) | |
| .fitCenter() | |
| .animate(android.R.anim.fade_in); | |
| if (mMediaFragmentListener.getLocalVideoUri() != null) { | |
| MediaMetadataRetriever retriever = new MediaMetadataRetriever(); | |
| Context context = getContext(); | |
| retriever.setDataSource(context, mMediaFragmentListener.getLocalVideoUri()); | |
| Bitmap frame = retriever.getFrameAtTime(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Imageview imageView = (ImageView) findViewById(R.id.image_view); | |
| Glide.with(this).load("https://an-awesome-image.com").into(imageView); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| // Your app's other dependencies | |
| compile 'com.github.bumptech.glide:glide.3.7.0' | |
| compile 'com.android.support:support-v4:23.2.1' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| // Your app's other dependencies | |
| compile 'com.github.bumptech.glide:glide.3.7.0' | |
| compile 'com.android.support:support-v4:23.2.1' | |
| } |
NewerOlder