package com.google.android.m4b.maps.bu;

import android.content.Context;
import android.content.res.Resources;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.google.android.m4b.maps.R.dimen;
import com.google.android.m4b.maps.R.drawable;

public final class bs
{
  private final RelativeLayout a;
  private final Context b;
  private ImageView c;
  private TextView d;
  private TextView e;
  private final Resources f;

  public bs(Context paramContext, Resources paramResources)
  {
    this.a = new RelativeLayout(paramContext);
    this.a.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
    this.b = paramContext;
    this.f = paramResources;
    this.a.setVisibility(8);
    this.d = c();
    this.d.setText("Report a problem");
    this.d.setId(1);
    RelativeLayout.LayoutParams localLayoutParams1 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams1.addRule(11);
    localLayoutParams1.addRule(12);
    localLayoutParams1.setMargins(10, 0, 0, 0);
    this.a.addView(this.d, localLayoutParams1);
    this.e = c();
    this.e.setId(2);
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams2.addRule(0, this.d.getId());
    localLayoutParams2.addRule(12);
    this.a.addView(this.e, localLayoutParams2);
    this.c = new ImageView(this.b);
    this.c.setImageDrawable(this.f.getDrawable(R.drawable.watermark_light));
    RelativeLayout.LayoutParams localLayoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams3.addRule(9);
    localLayoutParams3.addRule(12);
    int i = this.f.getDimensionPixelSize(R.dimen.watermark_margin);
    localLayoutParams3.setMargins(i, i, i, i);
    this.c.setLayoutParams(localLayoutParams3);
    this.c.setTag("GoogleWatermark");
    this.a.addView(this.c);
  }

  private TextView c()
  {
    TextView localTextView = new TextView(this.b);
    localTextView.setClickable(true);
    localTextView.setBackgroundColor(-1862270977);
    localTextView.setTextColor(-16777216);
    localTextView.setTextSize(10.0F);
    localTextView.setPadding(5, 0, 5, 0);
    return localTextView;
  }

  public final View a()
  {
    return this.a;
  }

  public final void a(String paramString)
  {
    this.e.setText(paramString);
  }

  public final void a(boolean paramBoolean)
  {
    RelativeLayout localRelativeLayout = this.a;
    if (paramBoolean);
    for (int i = 0; ; i = 8)
    {
      localRelativeLayout.setVisibility(i);
      return;
    }
  }

  public final TextView b()
  {
    return this.d;
  }
}

/* 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.bs
 * JD-Core Version:    0.6.2
 */