Idle Tower v2.48版本的 MD5 值为:56f20496f6a85726b376356ed2ecee23
以下内容为反编译后的 l1.java 源代码,内容仅作参考
package com.my.target;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
public class l1 extends RelativeLayout {
public final RelativeLayout f7021a;
public final ImageView b;
public final ImageView c;
public final k9 d;
public final boolean e;
public final View.OnClickListener f;
public static class b implements View.OnClickListener {
public final Context f7022a;
public b(Context context) {
this.f7022a = context;
}
@Override
public void onClick(View view) {
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://target.my.com/"));
if (!(this.f7022a instanceof Activity)) {
intent.addFlags(268435456);
}
this.f7022a.startActivity(intent);
} catch (Throwable th) {
j9.a("FooterView$GoToMyTargetClickListener: Error - " + th.getMessage());
}
}
}
public l1(Context context, k9 k9Var, boolean z) {
super(context);
this.f7021a = new RelativeLayout(context);
ImageView imageView = new ImageView(context);
this.b = imageView;
k9.b(imageView, "logo_image");
ImageView imageView2 = new ImageView(context);
this.c = imageView2;
k9.b(imageView2, "store_image");
this.d = k9Var;
this.e = z;
this.f = new b(context);
}
public void a() {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -2);
layoutParams.addRule(12, -1);
this.f7021a.setLayoutParams(layoutParams);
this.b.setImageBitmap(m3.a(getContext()));
this.f7021a.addView(this.b);
this.f7021a.addView(this.c);
addView(this.f7021a);
}
public void a(int i, boolean z) {
int b2;
int b3;
int b4;
int b5;
int b6;
int b7;
int b8;
int i2 = i / 3;
if (this.e) {
i2 = i / 5;
}
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, i2);
int b9 = this.d.b(24);
k9 k9Var = this.d;
if (z) {
b2 = k9Var.b(4);
b3 = this.d.b(24);
b4 = this.d.b(8);
} else {
b2 = k9Var.b(16);
b3 = this.d.b(24);
b4 = this.d.b(16);
}
layoutParams.setMargins(b9, b2, b3, b4);
layoutParams.addRule(15, -1);
layoutParams.addRule(20);
this.c.setScaleType(ImageView.ScaleType.FIT_START);
this.c.setLayoutParams(layoutParams);
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-2, i2);
if (z) {
b5 = this.d.b(8);
b6 = this.d.b(4);
b7 = this.d.b(8);
b8 = this.d.b(8);
} else {
b5 = this.d.b(24);
b6 = this.d.b(16);
b7 = this.d.b(24);
b8 = this.d.b(16);
}
layoutParams2.setMargins(b5, b6, b7, b8);
layoutParams2.addRule(15, -1);
layoutParams2.addRule(21);
this.b.setScaleType(ImageView.ScaleType.FIT_END);
this.b.setLayoutParams(layoutParams2);
this.b.setOnClickListener(this.f);
}
}