得物.apk(点击下载) / AgingHeadInfoView.java
package com.shizhuang.duapp.modules.common.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.component.module.AbsModuleView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuScaleType;
import com.shizhuang.duapp.modules.common.model.AgingFloat;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.jvm.JvmOverloads;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {}, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B'\b\u0007\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0007\u0012\b\b\u0002\u0010\t\u001a\u00020\u0003¢\u0006\u0004\b\n\u0010\u000bJ\b\u0010\u0004\u001a\u00020\u0003H\u0016¨\u0006\f"}, d2 = {"Lcom/shizhuang/duapp/modules/common/views/AgingHeadInfoView;", "Lcom/shizhuang/duapp/common/component/module/AbsModuleView;", "Lcom/shizhuang/duapp/modules/common/model/AgingFloat;", "", "getLayoutId", "Landroid/content/Context;", "context", "Landroid/util/AttributeSet;", "attrs", "defStyleAttr", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "du_order_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: AgingHeadInfoView.kt */
public final class AgingHeadInfoView extends AbsModuleView<AgingFloat> {
public static ChangeQuickRedirect changeQuickRedirect;
public HashMap b;
@JvmOverloads
public AgingHeadInfoView(@NotNull Context context) {
this(context, null, 0);
}
public View _$_findCachedViewById(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 76897, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.b == null) {
this.b = new HashMap();
}
View view = (View) this.b.get(Integer.valueOf(i));
if (view != null) {
return view;
}
View findViewById = findViewById(i);
this.b.put(Integer.valueOf(i), findViewById);
return findViewById;
}
/* renamed from: a */
public void update(@NotNull AgingFloat agingFloat) {
if (!PatchProxy.proxy(new Object[]{agingFloat}, this, changeQuickRedirect, false, 76896, new Class[]{AgingFloat.class}, Void.TYPE).isSupported) {
super.update(agingFloat);
((TextView) _$_findCachedViewById(R.id.tvTitle)).setText(agingFloat.getTitle());
((TextView) _$_findCachedViewById(R.id.tvDesc)).setText(agingFloat.getContent());
((DuImageLoaderView) _$_findCachedViewById(R.id.ivBg)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/order/order_poizon_logo.png").p0(DuScaleType.CENTER_CROP).m0(3.4f).x();
}
}
@Override // com.shizhuang.duapp.common.component.module.AbsModuleView
public int getLayoutId() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 76895, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.layout_aging_head_info;
}
@JvmOverloads
public AgingHeadInfoView(@NotNull Context context, @Nullable AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
@JvmOverloads
public AgingHeadInfoView(@NotNull Context context, @Nullable AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
}