调整弹窗
This commit is contained in:
@@ -56,4 +56,15 @@ public class PrankGiftBean extends BaseModel{
|
||||
public void setGiftId(String giftId) {
|
||||
this.giftId = giftId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PrankGiftBean{" +
|
||||
"title='" + title + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", icon='" + icon + '\'' +
|
||||
", num=" + num +
|
||||
", giftId='" + giftId + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ import com.bumptech.glide.request.RequestOptions;
|
||||
import com.bumptech.glide.request.target.CustomTarget;
|
||||
import com.bumptech.glide.request.transition.Transition;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -226,14 +227,20 @@ public class ImgLoader {
|
||||
.skipMemoryCache(SKIP_MEMORY_CACHE)
|
||||
.into(imageView);
|
||||
}
|
||||
|
||||
public static void displayDrawable(Context context, String url, final DrawableCallback callback) {
|
||||
displayDrawable(context, url, -1, -1, callback);
|
||||
}
|
||||
public static void displayDrawable(Context context, String url, int width, int height, final DrawableCallback callback) {
|
||||
|
||||
if (TextUtils.isEmpty(url) || !contextIsExist(context)) {
|
||||
if (callback != null)
|
||||
callback.onLoadFailed();
|
||||
} else {
|
||||
Glide.with(context).asDrawable().load(url).thumbnail(thumbnail).skipMemoryCache(SKIP_MEMORY_CACHE).into(new CustomTarget<Drawable>() {
|
||||
RequestBuilder<Drawable> builder = Glide.with(context).asDrawable().load(url);
|
||||
if (width != -1 && height != -1) {
|
||||
builder = builder.override(width, height);
|
||||
}
|
||||
builder.thumbnail(thumbnail).skipMemoryCache(SKIP_MEMORY_CACHE).into(new CustomTarget<Drawable>() {
|
||||
|
||||
@Override
|
||||
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
|
||||
|
||||
@@ -96,6 +96,7 @@ public class OpenAdManager {
|
||||
return;
|
||||
}
|
||||
Collections.sort(data, new AdListComparator());
|
||||
data.clear();
|
||||
list = data;
|
||||
if (isShow) {
|
||||
if (showType == 0) {
|
||||
|
||||
BIN
common/src/main/res/mipmap-xxhdpi/ic_prank_gift_add_gift_to.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/ic_prank_gift_add_gift_to.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 933 B |
BIN
common/src/main/res/mipmap-xxhdpi/ic_prank_gift_del.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/ic_prank_gift_del.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/ic_prank_gift_switch.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/ic_prank_gift_switch.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 725 B |
Reference in New Issue
Block a user