package com.tencent.mm.plugin.appbrand.widget.desktop;

import android.support.v7.widget.RecyclerView.LayoutParams;
import android.support.v7.widget.RecyclerView.v;
import android.view.View;
import android.view.View.MeasureSpec;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

public class AppBrandDesktopView$f extends v {
    final /* synthetic */ AppBrandDesktopView iXS;

    public AppBrandDesktopView$f(AppBrandDesktopView appBrandDesktopView, View view) {
        this.iXS = appBrandDesktopView;
        super(view);
        AppMethodBeat.i(133850);
        int r = AppBrandDesktopView.r(this.iXS);
        if (r == 0 && this.apJ != null) {
            this.apJ.measure(MeasureSpec.makeMeasureSpec(0, 0), MeasureSpec.makeMeasureSpec(0, 0));
            ab.i("MicroMsg.AppBrandDesktopView", "alvinluo MyAppBrandEmptyViewHolder itemHeight: %d, itemWidth: %d", new Object[]{Integer.valueOf(this.apJ.getMeasuredHeight()), Integer.valueOf(this.apJ.getMeasuredWidth())});
            r = this.apJ.getMeasuredHeight();
        }
        LayoutParams layoutParams = new LayoutParams(-1, -2);
        layoutParams.setMargins(layoutParams.leftMargin + AppBrandDesktopView.w(this.iXS), layoutParams.topMargin - r, layoutParams.rightMargin + AppBrandDesktopView.w(this.iXS), layoutParams.bottomMargin);
        if (this.apJ != null) {
            this.apJ.setLayoutParams(layoutParams);
        }
        AppMethodBeat.o(133850);
    }
}
