Java Code Examples for com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions#withCrossFade()

The following examples show how to use com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions#withCrossFade() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserRowHolder.java    From DelegateAdapter with Apache License 2.0 6 votes vote down vote up
public UserRowHolder(View itemView) {
    super(itemView);

    profileIv = findViewById(R.id.user_row_profile);
    nameTv = findViewById(R.id.user_row_name);
    locationTv = findViewById(R.id.user_row_location);
    bioTv = findViewById(R.id.user_row_bio);

    moreView = findViewById(R.id.user_row_more);
    socialView = findViewById(R.id.user_row_social_layout);
    emailIv = findViewById(R.id.user_row_email);
    twitterIv = findViewById(R.id.user_row_twitter);
    insIv = findViewById(R.id.user_row_instagram);

    fadeInOptions = DrawableTransitionOptions.withCrossFade();
    mCircleCropOption = RequestOptions.circleCropTransform();
}
 
Example 2
Source File: PhotoMiniHolder.java    From DelegateAdapter with Apache License 2.0 4 votes vote down vote up
public PhotoMiniHolder(View itemView) {
    super(itemView);

    thumbIv = findViewById(R.id.photo_mini_thumb);
    mOptions = DrawableTransitionOptions.withCrossFade();
}