|
@@ -85,6 +85,7 @@ import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.model.entity.WebParams;
|
|
import com.sheep.gamegroup.model.entity.WebParams;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.module.game.fragment.FgtMyGameList;
|
|
import com.sheep.gamegroup.module.game.fragment.FgtMyGameList;
|
|
|
|
|
+import com.sheep.gamegroup.module.skin.util.SkinUtil;
|
|
|
import com.sheep.gamegroup.module.yf_shop.model.ReceiveCouponsCheckResq;
|
|
import com.sheep.gamegroup.module.yf_shop.model.ReceiveCouponsCheckResq;
|
|
|
import com.sheep.gamegroup.module.yf_shop.model.ReceiveCouponsResp;
|
|
import com.sheep.gamegroup.module.yf_shop.model.ReceiveCouponsResp;
|
|
|
import com.sheep.gamegroup.util.glide.RoundedCornersTransformation;
|
|
import com.sheep.gamegroup.util.glide.RoundedCornersTransformation;
|
|
@@ -182,7 +183,7 @@ public class ViewUtil {
|
|
|
|
|
|
|
|
GlideImageLoader.saveAndSetRqImageDisHardConfig(iv_qr, link, 800);
|
|
GlideImageLoader.saveAndSetRqImageDisHardConfig(iv_qr, link, 800);
|
|
|
Glide.with(activity)
|
|
Glide.with(activity)
|
|
|
- .load(R.drawable.icon)
|
|
|
|
|
|
|
+ .load(SkinUtil.getAppIcon())
|
|
|
.apply(new RequestOptions().disallowHardwareConfig().override(G.WIDTH / 8))
|
|
.apply(new RequestOptions().disallowHardwareConfig().override(G.WIDTH / 8))
|
|
|
.into(iv_qr_small);
|
|
.into(iv_qr_small);
|
|
|
|
|
|
|
@@ -852,7 +853,7 @@ public class ViewUtil {
|
|
|
*/
|
|
*/
|
|
|
private static void shareAction(Activity activity, String title, String content, String url, SHARE_MEDIA media, final ShareCallback callback) {
|
|
private static void shareAction(Activity activity, String title, String content, String url, SHARE_MEDIA media, final ShareCallback callback) {
|
|
|
/* 缩略图 */
|
|
/* 缩略图 */
|
|
|
- UMImage image = new UMImage(activity, R.drawable.icon);
|
|
|
|
|
|
|
+ UMImage image = new UMImage(activity, SkinUtil.getAppIcon());
|
|
|
/* URL */
|
|
/* URL */
|
|
|
UMWeb web = new UMWeb(url);
|
|
UMWeb web = new UMWeb(url);
|
|
|
/* 标题 */
|
|
/* 标题 */
|
|
@@ -1712,7 +1713,7 @@ public class ViewUtil {
|
|
|
public static void centerImage(ImageView imageView, String pictures) {
|
|
public static void centerImage(ImageView imageView, String pictures) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1738,7 +1739,7 @@ public class ViewUtil {
|
|
|
public static void setBlur(ImageView imageView, String pictures) {
|
|
public static void setBlur(ImageView imageView, String pictures) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1753,7 +1754,7 @@ public class ViewUtil {
|
|
|
if(object instanceof String) {
|
|
if(object instanceof String) {
|
|
|
String pictures = object.toString();
|
|
String pictures = object.toString();
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1769,7 +1770,7 @@ public class ViewUtil {
|
|
|
public static void setViewWH(ImageView imageView, String pictures, int width) {
|
|
public static void setViewWH(ImageView imageView, String pictures, int width) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1823,7 +1824,7 @@ public class ViewUtil {
|
|
|
public static void setImagePath(ImageView imageView, String paths) {
|
|
public static void setImagePath(ImageView imageView, String paths) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(paths)) {
|
|
if (TextUtils.isEmpty(paths)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (paths.contains(";")) {
|
|
if (paths.contains(";")) {
|
|
|
paths = paths.split(";")[0];
|
|
paths = paths.split(";")[0];
|
|
@@ -1836,7 +1837,7 @@ public class ViewUtil {
|
|
|
public static void setImagePath(ImageView imageView, String paths, int radio) {
|
|
public static void setImagePath(ImageView imageView, String paths, int radio) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(paths)) {
|
|
if (TextUtils.isEmpty(paths)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (paths.contains(";")) {
|
|
if (paths.contains(";")) {
|
|
|
paths = paths.split(";")[0];
|
|
paths = paths.split(";")[0];
|
|
@@ -1849,7 +1850,7 @@ public class ViewUtil {
|
|
|
public static void setImageLoading(ImageView imageView, String pictures) {
|
|
public static void setImageLoading(ImageView imageView, String pictures) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1862,7 +1863,7 @@ public class ViewUtil {
|
|
|
public static void setImage(ImageView imageView, String pictures, int radius) {
|
|
public static void setImage(ImageView imageView, String pictures, int radius) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1874,7 +1875,7 @@ public class ViewUtil {
|
|
|
public static void roundedCornersImage1(ImageView imageView, String pictures, int radius) {
|
|
public static void roundedCornersImage1(ImageView imageView, String pictures, int radius) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1887,7 +1888,7 @@ public class ViewUtil {
|
|
|
public static void setGameImage(ImageView imageView, String pictures) {
|
|
public static void setGameImage(ImageView imageView, String pictures) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|
|
@@ -1900,7 +1901,7 @@ public class ViewUtil {
|
|
|
public static void setGameImage(ImageView imageView, String pictures, int radius) {
|
|
public static void setGameImage(ImageView imageView, String pictures, int radius) {
|
|
|
if (imageView != null) {
|
|
if (imageView != null) {
|
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
if (TextUtils.isEmpty(pictures)) {
|
|
|
- imageView.setImageResource(R.mipmap.icon);
|
|
|
|
|
|
|
+ imageView.setImageResource(SkinUtil.getAppIcon());
|
|
|
} else {
|
|
} else {
|
|
|
if (pictures.contains(";")) {
|
|
if (pictures.contains(";")) {
|
|
|
pictures = pictures.split(";")[0];
|
|
pictures = pictures.split(";")[0];
|