content: package com.yalantis.guillotine.sample.activity;
  
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.widget.FrameLayout;
  
  import com.jinlin.yalantis.R;
  import com.yalantis.guillotine.animation.GuillotineAnimation;
  
  import butterknife.ButterKnife;
  import butterknife.InjectView;
  
  /**
   * Created by Dmytro Denysenko on 5/4/15.
   */
  public class GuillotineMenuActivity extends AppCompatActivity {
      private static final long RIPPLE_DURATION = 250;
  
  
      @InjectView(R.id.toolbar)
      Toolbar toolbar;
      @InjectView(R.id.root)
      FrameLayout root;
      @InjectView(R.id.content_hamburger)
      View contentHamburger;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity);
          ButterKnife.inject(this);
  
  
          if (toolbar != null) {
              setSupportActionBar(toolbar);
              getSupportActionBar().setTitle(null);
          }
  
          View guillotineMenu = LayoutInflater.from(this).inflate(R.layout.guillotine, null);
          root.addView(guillotineMenu);
  
          new GuillotineAnimation.GuillotineBuilder(guillotineMenu, guillotineMenu.findViewById(R.id.guillotine_hamburger), contentHamburger)
                  .setStartDelay(RIPPLE_DURATION)
                  .setActionBarViewForAnimation(toolbar)
                  .build();
      }
  }
  