title: How to position a view so the click works after an animation
body: <p>I'm currently using Nine Old Androids to animate a RelativeLayout like a slider menu, which slides down form the top. I've tried in many ways, Can someone make a suggestion?</p>
  
  <p>Here is the animation code:</p>
  
  <pre><code>  private OnClickListener slideClick = new OnClickListener(){
      @Override
      public void onClick(View v) {
          slideGroups.bringToFront();
  
          if(!mPulledDown) {
              ObjectAnimator oa = ObjectAnimator.ofFloat(slideGroups, "translationY", slideGroups.getHeight()-80);
              oa.addListener(new AnimatorListener() {
                  @Override
                  public void onAnimationStart(Animator arg0) {}
  
                  @Override
                  public void onAnimationRepeat(Animator arg0) {}
  
                  @Override
                  public void onAnimationEnd(Animator arg0) {
                      arrow.setImageResource(R.drawable.arrowup);
                      if(Application.getAndroidAPILevel() &lt; 11) {
                          // only if pre 3.0 (api level 11)
                          Toast.makeText(FriendsActivity.this, String.format("api level %s", 
                                  Application.getAndroidAPILevel()), Toast.LENGTH_SHORT).show();
                          //RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) slideGroups.getLayoutParams();
  
                          // clear animation to prevent flicker
                          slideGroups.clearAnimation();
  
                          // set new "real" position of wrapper
                          RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, slideGroups.getWidth());
                          //lp.addRule(RelativeLayout.BELOW, R.id.branchFinderIncludeHeader);
                          slideGroups.setLayoutParams(lp);
  
                      }
                  }
  
                  @Override
                  public void onAnimationCancel(Animator arg0) {}
              });
              oa.start();
          }
          else 
          {
              ObjectAnimator oa = ObjectAnimator.ofFloat(slideGroups, "translationY", 0);
              oa.addListener(new AnimatorListener() {
                  @Override
                  public void onAnimationStart(Animator arg0) {}
  
                  @Override
                  public void onAnimationRepeat(Animator arg0) {}
  
                  @Override
                  public void onAnimationEnd(Animator arg0) {
                      arrow.setImageResource(R.drawable.arrowdown);
                      if(Application.getAndroidAPILevel() &lt; 11) {
                          // only if pre 3.0 (api level 11)
                          Toast.makeText(FriendsActivity.this, String.format("api level %s", 
                                  Application.getAndroidAPILevel()), Toast.LENGTH_SHORT).show();
                      }
                  }
  
                  @Override
                  public void onAnimationCancel(Animator arg0) {}
              });
              oa.start();
          }
  
          mPulledDown = !mPulledDown;         
      }
  };
  </code></pre>
  
  <p>I just need something to work with sdk level 4 and newer. Currently, touching/tapping passes that event to the list underneath the slider when expanded. Please let me know if any other information is needed. slideGroups is the RelativeLayout. arrow is an imageview. groupsButton is a LinearLayout with text and an image button. groupsButton should be clickable; that's what expands and is supposed to collapse it.</p>
  
  <p>Thanks in advance.</p>