package com.tencent.mm.plugin.mmsight.ui;

import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bz.a;
import com.tencent.mm.plugin.mmsight.ui.SightSettingsUI.b;
import com.tencent.mm.sdk.platformtools.ah;

class SightSettingsUI$a extends BaseAdapter {
    final /* synthetic */ SightSettingsUI oDq;

    SightSettingsUI$a(SightSettingsUI sightSettingsUI) {
        this.oDq = sightSettingsUI;
    }

    public final int getCount() {
        AppMethodBeat.i(55282);
        int size = SightSettingsUI.d(this.oDq).size();
        AppMethodBeat.o(55282);
        return size;
    }

    public final Object getItem(int i) {
        AppMethodBeat.i(55283);
        Object obj = SightSettingsUI.d(this.oDq).get(i);
        AppMethodBeat.o(55283);
        return obj;
    }

    public final long getItemId(int i) {
        return 0;
    }

    public final View getView(int i, View view, ViewGroup viewGroup) {
        AppMethodBeat.i(55284);
        TextView textView = new TextView(this.oDq);
        b bVar = (b) getItem(i);
        textView.setText(bVar.oDt + "->:" + bVar.zc(((Integer) SightSettingsUI.b(bVar.oDq).get(bVar.oDw, Integer.valueOf(0))).intValue()));
        textView.setGravity(17);
        textView.setTextSize(1, 20.0f);
        textView.setHeight(a.fromDPToPix(ah.getContext(), 50));
        if (i % 2 == 1) {
            textView.setBackgroundColor(Color.parseColor("#e2efda"));
        }
        textView.setOnClickListener(new 1(this, bVar));
        AppMethodBeat.o(55284);
        return textView;
    }
}
