public void addDivider(ImageView v){
  RelativeLayout.LayoutParams dividerParams=new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT);
  if (mImageView != null) {
    dividerParams.addRule(RelativeLayout.BELOW,mImageView.getId());
  }
 else   if (mMissingImage != null) {
    dividerParams.addRule(RelativeLayout.BELOW,mMissingImage.getId());
  }
 else   if (mVideoButton != null) {
    dividerParams.addRule(RelativeLayout.BELOW,mVideoButton.getId());
  }
 else   if (mAudioButton != null) {
    dividerParams.addRule(RelativeLayout.BELOW,mAudioButton.getId());
  }
 else   if (mView_Text != null) {
    dividerParams.addRule(RelativeLayout.BELOW,mView_Text.getId());
  }
 else {
    Log.e(t,"Tried to add divider to uninitialized ATVWidget");
    return;
  }
  addView(v,dividerParams);
}

public void addDivider ( ImageView v ) { RelativeLayout . LayoutParams dividerParams = new RelativeLayout . LayoutParams ( LayoutParams . FILL_PARENT , LayoutParams . WRAP_CONTENT ) ; if ( mImageView != null ) { dividerParams . addRule ( RelativeLayout . BELOW , mImageView . getId ( ) ) ; } else if ( mMissingImage != null ) { dividerParams . addRule ( RelativeLayout . BELOW , mMissingImage . getId ( ) ) ; } else if ( mVideoButton != null ) { dividerParams . addRule ( RelativeLayout . BELOW , mVideoButton . getId ( ) ) ; } else if ( mAudioButton != null ) { dividerParams . addRule ( RelativeLayout . BELOW , mAudioButton . getId ( ) ) ; } else if ( mView_Text != null ) { dividerParams . addRule ( RelativeLayout . BELOW , mView_Text . getId ( ) ) ; } else { Log . e ( t , "Tried to add divider to uninitialized ATVWidget" ) ; return ; } addView ( v , dividerParams ) ; }
this adds a divider at the bottom of this layout . used to separate fields in lists .
