AvatarGenderFragment.java 4.68 KB
package com.bitstrips.imoji.abv3.gender;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.AnimationUtils;
import com.bitstrips.imoji.abv3.SpringInterpolator;

public class AvatarGenderFragment
  extends Fragment
{
  private static final SpringInterpolator a = new SpringInterpolator(0.17D, 7.0D);
  private static final SpringInterpolator b = new SpringInterpolator(0.5D, 5.0D);
  private View c;
  private View d;
  private View e;
  private View f;
  
  public static AvatarGenderFragment createFragment()
  {
    return new AvatarGenderFragment();
  }
  
  public void animate()
  {
    Object localObject = AnimationUtils.loadAnimation(getContext(), 2130968592);
    ((Animation)localObject).setDuration(200L);
    ((Animation)localObject).setStartOffset(300L);
    ((Animation)localObject).setFillAfter(true);
    Animation localAnimation4 = AnimationUtils.loadAnimation(getContext(), 2130968593);
    localAnimation4.setDuration(200L);
    localAnimation4.setStartOffset(300L);
    localAnimation4.setInterpolator(b);
    localAnimation4.setFillAfter(true);
    Animation localAnimation5 = AnimationUtils.loadAnimation(getContext(), 2130968594);
    localAnimation5.setDuration(600L);
    localAnimation5.setStartOffset(450L);
    localAnimation5.setInterpolator(a);
    localAnimation5.setFillAfter(true);
    Animation localAnimation1 = AnimationUtils.loadAnimation(getContext(), 2130968592);
    localAnimation1.setDuration(200L);
    localAnimation1.setStartOffset(550L);
    localAnimation1.setFillAfter(true);
    Animation localAnimation2 = AnimationUtils.loadAnimation(getContext(), 2130968593);
    localAnimation2.setDuration(200L);
    localAnimation2.setStartOffset(550L);
    localAnimation2.setInterpolator(b);
    localAnimation2.setFillAfter(true);
    Animation localAnimation3 = AnimationUtils.loadAnimation(getContext(), 2130968594);
    localAnimation3.setDuration(600L);
    localAnimation3.setStartOffset(700L);
    localAnimation3.setInterpolator(a);
    localAnimation3.setFillAfter(true);
    AnimationSet localAnimationSet = new AnimationSet(false);
    localAnimationSet.addAnimation((Animation)localObject);
    localAnimationSet.addAnimation(localAnimation4);
    this.d.setAnimation(localAnimationSet);
    localAnimationSet.start();
    this.f.setAnimation(localAnimation5);
    localAnimation5.start();
    localObject = new AnimationSet(false);
    ((AnimationSet)localObject).addAnimation(localAnimation1);
    ((AnimationSet)localObject).addAnimation(localAnimation2);
    this.c.setAnimation((Animation)localObject);
    ((AnimationSet)localObject).start();
    this.e.setAnimation(localAnimation3);
    localAnimation3.start();
  }
  
  public AvatarGenderFragmentListener getListener()
  {
    return (AvatarGenderFragmentListener)getActivity();
  }
  
  public void onActivityCreated(@Nullable Bundle paramBundle)
  {
    super.onActivityCreated(paramBundle);
    animate();
  }
  
  public void onCreate(@Nullable Bundle paramBundle)
  {
    super.onCreate(paramBundle);
  }
  
  @Nullable
  public View onCreateView(LayoutInflater paramLayoutInflater, @Nullable ViewGroup paramViewGroup, @Nullable Bundle paramBundle)
  {
    paramLayoutInflater = paramLayoutInflater.inflate(2130903107, paramViewGroup, false);
    paramLayoutInflater.findViewById(2131689713).setOnClickListener(new View.OnClickListener()
    {
      public final void onClick(View paramAnonymousView)
      {
        AvatarGenderFragment.this.getListener().onMaleSelected();
      }
    });
    paramLayoutInflater.findViewById(2131689710).setOnClickListener(new View.OnClickListener()
    {
      public final void onClick(View paramAnonymousView)
      {
        AvatarGenderFragment.this.getListener().onFemaleSelected();
      }
    });
    paramLayoutInflater.findViewById(2131689699).setOnClickListener(new View.OnClickListener()
    {
      public final void onClick(View paramAnonymousView)
      {
        AvatarGenderFragment.this.getListener().onGenderExit();
      }
    });
    this.e = paramLayoutInflater.findViewById(2131689714);
    this.c = paramLayoutInflater.findViewById(2131689712);
    this.f = paramLayoutInflater.findViewById(2131689711);
    this.d = paramLayoutInflater.findViewById(2131689709);
    return paramLayoutInflater;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/abv3/gender/AvatarGenderFragment.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */