code: private void initAttributes(Context context, AttributeSet attributeSet) {
  		
  		TypedArray typedArray = context.obtainStyledAttributes(attributeSet, R.styleable.MotionView);
  		
  		friction = typedArray.getFloat(R.styleable.MotionView_friction, 0.75f) * 1000;
  			
  		typedArray.recycle();
  	}
docs: <p>Initializes the view with the custom attributes which were declared
  in the XML layout. This
  
  @param context
  the {@link Context} in which this component is instantiated
  
  @param attributeSet
  the {@link AttributeSet} given in the layout declaration