QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 ExperienceItemView.java 源代码,内容仅作参考
package com.tencent.mtt.file.page.toolc.resume.list;
import android.content.Context;
import android.graphics.Color;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.tencent.mtt.R;
import com.tencent.mtt.base.skin.MttResources;
import com.tencent.mtt.base.ui.widget.QBWebImageView;
import com.tencent.mtt.file.page.toolc.resume.ExtensionsKt;
import com.tencent.mtt.file.page.toolc.resume.model.Education;
import com.tencent.mtt.file.page.toolc.resume.model.ExperienceModule;
import com.tencent.mtt.newskin.SimpleSkinBuilder;
import com.tencent.mtt.view.layout.QBRelativeLayout;
public class ExperienceItemView extends QBRelativeLayout {
private TextView f62935a;
private TextView f62936b;
private QBWebImageView f62937c;
public ExperienceItemView(Context context) {
super(context);
this.f62935a = new TextView(context);
this.f62935a.setId(1);
this.f62935a.setMaxLines(1);
this.f62935a.setEllipsize(TextUtils.TruncateAt.END);
this.f62935a.setTextSize(0, MttResources.s(16));
TextView textView = this.f62935a;
textView.setTypeface(textView.getTypeface(), 1);
this.f62936b = new TextView(context);
this.f62936b.setMaxLines(1);
this.f62936b.setEllipsize(TextUtils.TruncateAt.END);
this.f62936b.setTextSize(0, MttResources.s(12));
this.f62936b.setTextColor(Color.parseColor("#8F8F8F"));
this.f62937c = new QBWebImageView(context);
this.f62937c.setUrl("https://m4.publicimg.browser.qq.com/publicimg/nav/file/toolc_text_drawable_start.png");
this.f62937c.setScaleType(ImageView.ScaleType.FIT_XY);
a();
setPadding(0, 0, 0, MttResources.s(20));
SimpleSkinBuilder.a(this.f62935a).g(R.color.theme_common_color_a1).f();
}
private void a() {
int s = MttResources.s(10);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(s, s);
layoutParams.leftMargin = MttResources.s(10);
layoutParams.topMargin = MttResources.s(7);
addView(this.f62937c, layoutParams);
int s2 = MttResources.s(12);
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(s2, s2);
ImageView imageView = new ImageView(getContext());
imageView.setImageResource(R.drawable.bai);
layoutParams2.addRule(21);
layoutParams2.topMargin = MttResources.s(7);
layoutParams2.rightMargin = MttResources.s(12);
addView(imageView, layoutParams2);
int s3 = MttResources.s(32);
RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
layoutParams3.leftMargin = s3;
addView(this.f62935a, layoutParams3);
RelativeLayout.LayoutParams layoutParams4 = new RelativeLayout.LayoutParams(layoutParams3);
layoutParams4.topMargin = MttResources.s(4);
layoutParams4.addRule(3, 1);
addView(this.f62936b, layoutParams4);
}
public void a(ExperienceModule.Experience experience) {
if (experience instanceof Education.Edu) {
Education.Edu edu = (Education.Edu) experience;
this.f62935a.setText(ExtensionsKt.a(edu.name, edu.education, R.drawable.l9));
} else {
this.f62935a.setText(experience.name);
}
this.f62936b.setText(experience.timeRange);
}
}