package com.google.android.m4b.maps.bu;

import android.content.Context;
import android.content.res.Resources;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import com.google.android.m4b.maps.R.dimen;
import com.google.android.m4b.maps.R.drawable;
import com.google.android.m4b.maps.R.string;

public final class g
{
  private final RelativeLayout a;
  private final Resources b;
  private final Context c;
  private cf d;
  private bd e;
  private aj f;
  private aq g;
  private m h;

  public g(Context paramContext, Resources paramResources, aq paramaq)
  {
    this.a = new RelativeLayout(paramContext);
    this.a.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
    this.c = paramContext;
    this.b = paramResources;
    this.g = paramaq;
    RelativeLayout.LayoutParams localLayoutParams1 = new RelativeLayout.LayoutParams(this.b.getDimensionPixelSize(R.dimen.btn_width), this.b.getDimensionPixelSize(R.dimen.btn_myl_height));
    localLayoutParams1.addRule(11);
    localLayoutParams1.addRule(10);
    localLayoutParams1.setMargins(0, this.b.getDimensionPixelSize(R.dimen.btn_margin), this.b.getDimensionPixelSize(R.dimen.btn_margin), 0);
    Context localContext = this.c;
    Resources localResources = this.b;
    View localView = new View(localContext);
    localView.setBackgroundDrawable(localResources.getDrawable(R.drawable.btn_myl));
    localView.setVisibility(8);
    localView.setContentDescription(localResources.getString(R.string.MY_LOCATION_ALT_TEXT));
    localView.setTag("GoogleMapMyLocationButton");
    this.e = new bd(localView);
    a(this.e.a(), 2, localLayoutParams1);
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -1);
    localLayoutParams2.addRule(11);
    localLayoutParams2.addRule(2, 1);
    localLayoutParams2.addRule(3, 2);
    localLayoutParams2.setMargins(0, this.b.getDimensionPixelSize(R.dimen.btn_margin), this.b.getDimensionPixelSize(R.dimen.btn_margin), this.b.getDimensionPixelSize(R.dimen.btn_margin));
    this.f = aj.a(this.c, this.b);
    a(this.f.a(), 3, localLayoutParams2);
    RelativeLayout.LayoutParams localLayoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams3.addRule(11);
    localLayoutParams3.addRule(12);
    localLayoutParams3.setMargins(0, 0, this.b.getDimensionPixelSize(R.dimen.btn_zoom_x_margin), this.b.getDimensionPixelSize(R.dimen.btn_zoom_y_margin));
    this.d = cf.a(this.c, this.b);
    a(this.d.a(), 1, localLayoutParams3);
    RelativeLayout.LayoutParams localLayoutParams4 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams4.addRule(0, 1);
    localLayoutParams4.alignWithParent = true;
    localLayoutParams4.addRule(12);
    localLayoutParams4.setMargins(0, 0, this.b.getDimensionPixelSize(R.dimen.btn_zoom_x_margin), this.b.getDimensionPixelSize(R.dimen.btn_zoom_y_margin));
    a(this.g.c(), 4, localLayoutParams4);
    RelativeLayout.LayoutParams localLayoutParams5 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams5.addRule(9);
    localLayoutParams5.addRule(10);
    localLayoutParams5.setMargins(this.b.getDimensionPixelSize(R.dimen.btn_margin), this.b.getDimensionPixelSize(R.dimen.btn_margin), 0, 0);
    this.h = new m(this.c);
    a(this.h, 5, localLayoutParams5);
  }

  private void a(View paramView, int paramInt, RelativeLayout.LayoutParams paramLayoutParams)
  {
    paramView.setVisibility(8);
    paramView.setId(paramInt);
    this.a.addView(paramView, paramLayoutParams);
  }

  public final View a()
  {
    return this.a;
  }

  public final void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    this.a.setPadding(paramInt1, paramInt2, paramInt3, paramInt4);
  }

  public final cf b()
  {
    return this.d;
  }

  public final bd c()
  {
    return this.e;
  }

  public final aj d()
  {
    return this.f;
  }

  public final aq e()
  {
    return this.g;
  }

  public final m f()
  {
    return this.h;
  }
}

/* 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.g
 * JD-Core Version:    0.6.2
 */