package com.google.android.m4b.maps.bu;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Typeface;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.google.android.m4b.maps.R.drawable;
import com.google.android.m4b.maps.R.string;

public final class av extends aw
{
  private static final int d = Color.parseColor("#4D4D4D");
  private static final int e = Color.parseColor("#E2E2E2");
  private final au f;
  private View g;

  public av(Context paramContext, Resources paramResources, ax paramax, boolean paramBoolean, au paramau)
  {
    super(paramContext, paramResources, paramax);
    this.f = paramau;
    if (paramBoolean)
    {
      LinearLayout localLinearLayout = new LinearLayout(paramContext);
      localLinearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
      localLinearLayout.setOrientation(1);
      RelativeLayout localRelativeLayout = new RelativeLayout(this.a);
      localRelativeLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
      TextView localTextView = new TextView(this.a);
      RelativeLayout.LayoutParams localLayoutParams1 = new RelativeLayout.LayoutParams(-2, -2);
      localLayoutParams1.addRule(9);
      localLayoutParams1.addRule(15);
      int i = a(11.0F);
      localTextView.setPadding(i, i, i, i);
      localTextView.setLayoutParams(localLayoutParams1);
      localTextView.setText(this.b.getString(R.string.BACK_TO_LIST));
      localTextView.setTextColor(d);
      localTextView.setTextSize(16.0F);
      localTextView.setTypeface(Typeface.DEFAULT_BOLD);
      localTextView.setCompoundDrawablesWithIntrinsicBounds(this.b.getDrawable(R.drawable.btn_back), null, null, null);
      localTextView.setOnClickListener(new View.OnClickListener()
      {
        public final void onClick(View paramAnonymousView)
        {
          av.this.c.a();
        }
      });
      this.g = localTextView;
      this.g.setTag("GoogleMapMapsEngineInfocardBackButton");
      localRelativeLayout.addView(localTextView);
      RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
      localLayoutParams2.addRule(11);
      localLayoutParams2.addRule(15);
      localRelativeLayout.addView(a(), localLayoutParams2);
      localLinearLayout.addView(localRelativeLayout);
      View localView = new View(this.a);
      localView.setLayoutParams(new LinearLayout.LayoutParams(-1, a(0.5F)));
      localView.setBackgroundColor(e);
      localLinearLayout.addView(localView);
      localLinearLayout.addView(a(paramContext, false));
      a(localLinearLayout, false);
      return;
    }
    a(a(paramContext, true), true);
  }

  private WebView a(Context paramContext, boolean paramBoolean)
  {
    WebView localWebView = new WebView(paramContext);
    LinearLayout.LayoutParams localLayoutParams;
    int i;
    if (paramBoolean)
    {
      localLayoutParams = new LinearLayout.LayoutParams(0, -2);
      localLayoutParams.weight = 1.0F;
      i = a(11.0F);
      if (!paramBoolean)
        break label102;
    }
    label102: for (int j = i; ; j = 0)
    {
      localLayoutParams.setMargins(i, i, j, i);
      localWebView.setLayoutParams(localLayoutParams);
      localWebView.setFocusable(false);
      localWebView.loadData(this.f.getDescription(), "text/html; charset=UTF-8", null);
      return localWebView;
      localLayoutParams = new LinearLayout.LayoutParams(-2, 0);
      break;
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bu.av
 * JD-Core Version:    0.6.2
 */