feat: 增加联系人增删改查
This commit is contained in:
@@ -8,6 +8,7 @@ import androidx.databinding.BindingAdapter;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.ttstd.dialer.R;
|
||||
import com.ttstd.dialer.utils.GlideUtils;
|
||||
|
||||
public class ImageViewAdapter {
|
||||
@BindingAdapter("android:src")
|
||||
@@ -34,10 +35,7 @@ public class ImageViewAdapter {
|
||||
*/
|
||||
@BindingAdapter({"imageUrl", "error"})
|
||||
public static void loadImage(ImageView imageView, String url, Drawable error) {
|
||||
Glide.with(imageView.getContext())
|
||||
.load(url)
|
||||
.error(error)
|
||||
.into(imageView);
|
||||
GlideUtils.loadImageSafe(imageView.getContext(), url, imageView, error);
|
||||
}
|
||||
|
||||
@BindingAdapter({"imageAvatarUrl", "error"})
|
||||
|
||||
Reference in New Issue
Block a user