QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 TemplateTabViewBase.java 源代码,内容仅作参考
package com.tencent.mtt.browser.hometab.tablab.view.view;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import com.tencent.mtt.R;
import com.tencent.mtt.base.skin.MttResources;
import com.tencent.mtt.base.ui.widget.QBWebImageView;
import com.tencent.mtt.browser.setting.manager.SkinManager;
import com.tencent.mtt.view.common.QBTextView;
import com.tencent.mtt.view.widget.QBCheckBox;
import com.tencent.trpcprotocol.mtt.bottomTabManageSvr.bottomTabManageSvr.TempletInfo;
import java.util.ArrayList;
import java.util.List;
public abstract class TemplateTabViewBase extends LinearLayout {
protected final QBWebImageView f42135a;
protected final QBCheckBox f42136b;
protected final QBTextView f42137c;
private static final int e = MttResources.s(18);
protected static final List<Integer> f42134d = new ArrayList<Integer>() {
{
add(Integer.valueOf(R.id.lab_tab_card_item_1));
add(Integer.valueOf(R.id.lab_tab_card_item_2));
add(Integer.valueOf(R.id.lab_tab_card_item_3));
add(Integer.valueOf(R.id.lab_tab_card_item_4));
add(Integer.valueOf(R.id.lab_tab_card_item_5));
}
};
public TemplateTabViewBase(Context context, boolean z) {
super(context);
LayoutInflater.from(getContext()).inflate(z ? R.layout.hg : R.layout.hf, this);
this.f42135a = (QBWebImageView) findViewById(R.id.wiv_lab_tab_card_background);
this.f42135a.setUseMaskForNightMode(false);
this.f42135a.setEnableNoPicMode(false);
this.f42136b = (QBCheckBox) findViewById(R.id.cb_check);
QBCheckBox qBCheckBox = this.f42136b;
int i = e;
qBCheckBox.a(i, i);
this.f42136b.setClickable(false);
this.f42137c = (QBTextView) findViewById(R.id.tv_template_title);
}
public void setInfo(TempletInfo templetInfo) {
this.f42137c.setText(templetInfo.getTempletTitle());
}
public void setSelect(boolean z) {
QBWebImageView qBWebImageView;
String str;
boolean l = SkinManager.s().l();
if (z) {
if (l) {
qBWebImageView = this.f42135a;
str = "https://m4.publicimg.browser.qq.com/publicimg/nav/qb/lab/tab/tab_lab_card_item_select_night_v1.png";
} else {
qBWebImageView = this.f42135a;
str = "https://m4.publicimg.browser.qq.com/publicimg/nav/qb/lab/tab/tab_lab_card_item_select_day_v1.png";
}
} else if (l) {
qBWebImageView = this.f42135a;
str = "https://m4.publicimg.browser.qq.com/publicimg/nav/qb/lab/tab/tab_lab_card_item_unselect_night_v1.png";
} else {
qBWebImageView = this.f42135a;
str = "https://m4.publicimg.browser.qq.com/publicimg/nav/qb/lab/tab/tab_lab_card_item_unselect_day_v1.png";
}
qBWebImageView.setUrl(str);
this.f42136b.setChecked(z);
}
}