|
|
@@ -1703,7 +1703,7 @@ public class ViewUtil {
|
|
|
final View dialog_close = dialog_parent.findViewById(R.id.dialog_close);
|
|
|
final LinearLayout dialog_center_ll = dialog_parent.findViewById(R.id.dialog_center_ll);
|
|
|
View view = LayoutInflater.from(activity).inflate(R.layout.dialog_half_screen_ad, dialog_center_ll, true);
|
|
|
- setText(dialog_title, advertising.getName());
|
|
|
+// setText(dialog_title, advertising.getName());
|
|
|
|
|
|
ACache aCache = ACache.get(SheepApp.getInstance());
|
|
|
String wh = aCache.getAsString(advertising.getAd_img());
|
|
|
@@ -1727,7 +1727,7 @@ public class ViewUtil {
|
|
|
AdHelper.stat(advertising.getAd_id(), 1);
|
|
|
if (advertising.isImage()) {
|
|
|
RequestBuilder<Drawable> builder = Glide.with(activity).load(advertising.getAd_img());
|
|
|
- if (TextUtils.isEmpty(advertising.getName())) {//没有标题时 去掉下面的边距 并给图片左下理右下添加图角
|
|
|
+// if (TextUtils.isEmpty(advertising.getName())) {//没有标题时 去掉下面的边距 并给图片左下理右下添加图角
|
|
|
builder.apply(new RequestOptions().transform(new RoundedCornersTransformation(activity.getResources().getDimensionPixelSize(R.dimen.content_padding_36), 0, RoundedCornersTransformation.CornerType.BOTTOM)));
|
|
|
dialog_center_ll.setPadding(0, activity.getResources().getDimensionPixelSize(R.dimen.content_padding_54), 0, 0);
|
|
|
ViewGroup parent = (ViewGroup) dialog_center_ll.getParent();
|
|
|
@@ -1738,7 +1738,7 @@ public class ViewUtil {
|
|
|
lp.width = WindowManager.LayoutParams.MATCH_PARENT;
|
|
|
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
|
|
win.setAttributes(lp);
|
|
|
- }
|
|
|
+// }
|
|
|
builder.into(ad_iv);
|
|
|
ad_video_view.setVisibility(View.GONE);
|
|
|
} else {
|
|
|
@@ -1795,15 +1795,15 @@ public class ViewUtil {
|
|
|
}
|
|
|
});
|
|
|
setVisibility(ad_flag, advertising.getUser_type() == 2);
|
|
|
- if (TextUtils.isEmpty(advertising.getName())) {
|
|
|
+// if (TextUtils.isEmpty(advertising.getName())) {
|
|
|
ViewUtil.setVisibility(ad_msg, false);
|
|
|
//3.4.7添加 -- 不显示标题栏,不显示背景 start
|
|
|
ViewUtil.setVisibility(dialog_title, false);
|
|
|
dialog_center_ll.setBackgroundColor(Color.TRANSPARENT);
|
|
|
//3.4.7添加 -- 不显示标题栏,不显示背景 end
|
|
|
- } else {
|
|
|
- ad_msg.setText(advertising.getName());
|
|
|
- }
|
|
|
+// } else {
|
|
|
+// ad_msg.setText(advertising.getName());
|
|
|
+// }
|
|
|
try {
|
|
|
dialog.show();
|
|
|
} catch (Exception e) {
|