四虎影院 v4.1.6版本的 MD5 值为:3c86dc44d368396917a29935d39af88b
以下内容为反编译后的 a.java 源代码,内容仅作参考
package g.a.b.l.n;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import cn.luckxy.vod.ui.home.Vod;
import com.blankj.utilcode.util.ColorUtils;
import com.blankj.utilcode.util.StringUtils;
import com.movie.all.R;
import g.a.b.f.c;
import g.a.b.utils.f;
import h.a.a.p.o.j;
import me.drakeet.multitype.ItemViewBinder;
import org.litepal.LitePalApplication;
public class a extends ItemViewBinder<Vod, C0119a> implements View.OnClickListener {
public c a;
public static class C0119a extends RecyclerView.ViewHolder {
@NonNull
public ImageView a;
@NonNull
public TextView b;
@NonNull
public TextView f9896c;
@NonNull
public TextView f9897d;
public C0119a(View view) {
super(view);
this.a = (ImageView) view.findViewById(R.id.item_iv_top_child_icon);
this.b = (TextView) view.findViewById(R.id.item_tv_top_child_tip);
this.f9896c = (TextView) view.findViewById(R.id.item_tv_top_child_up_title);
this.f9897d = (TextView) view.findViewById(R.id.item_tv_top_child_title);
}
}
public void a(c cVar) {
this.a = cVar;
}
@Override
public void onClick(View view) {
c cVar;
Object tag = view.getTag(R.id.itemData);
if (tag == null || (cVar = this.a) == null) {
return;
}
cVar.a(view, tag);
}
@Override
public void onBindViewHolder(@NonNull C0119a c0119a, @NonNull Vod vod) {
c0119a.itemView.setTag(R.id.itemData, vod);
c0119a.itemView.setOnClickListener(this);
c0119a.f9897d.setText(vod.L());
if (StringUtils.isEmpty(vod.x())) {
c0119a.b.setVisibility(8);
} else {
c0119a.b.setVisibility(0);
c0119a.b.setText(vod.x());
}
if (vod.getType().getTypeName().equals("电影")) {
c0119a.f9896c.setTextColor(ColorUtils.getColor(R.color.colorPrimary));
c0119a.f9896c.getPaint().setFakeBoldText(true);
c0119a.f9896c.setText(vod.v0());
} else {
c0119a.f9896c.setTextColor(ColorUtils.getColor(R.color.white));
c0119a.f9896c.setText(vod.R());
c0119a.f9896c.getPaint().setFakeBoldText(false);
}
c0119a.a.getLayoutParams().height = (int) (((f.a.b(LitePalApplication.getContext()) - f.a.a(LitePalApplication.getContext(), 4.0f)) / 3) * 1.0f);
h.a.a.c.a(c0119a.itemView).load("https://cjt521.com" + vod.H()).b(0.1f).a(j.a).a(c0119a.a);
}
@Override
@NonNull
public C0119a onCreateViewHolder(@NonNull LayoutInflater layoutInflater, @NonNull ViewGroup viewGroup) {
return new C0119a(layoutInflater.inflate(R.layout.item_top_child, viewGroup, false));
}
}