/// <summary>
        /// This method sets layout of floating controller, creates control bar and puts it on its
        /// default position.
        /// </summary>
        /// <param name="barExpanded">
        ///            Whether or not control bar shall be expanded. </param>
        /// <param name="devicesExpanded">
        ///            Map describing which devices shall be expanded and which not. </param>
        private void initializeControl(TypedArray array)
        {
            int            type     = array.getInt(R.styleable.FloatingControler_type, 1);
            LayoutInflater inflater = (LayoutInflater)this.Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            int            resId;

            switch (type)
            {
            case 0:
                resId = R.layout.floating_controller_layout;
                break;

            case 1:
            default:                     // fall-through
                resId = R.layout.floating_controller_layout;
                break;
            }
            inflater.inflate(resId, this, true);
            mControlBar = (FcControlBar)findViewById(R.id.control_bar_layout);
            mControlBar.prepareView(this, array);
        }
		/// <summary>
		/// This method sets layout of floating controller, creates control bar and puts it on its
		/// default position.
		/// </summary>
		/// <param name="barExpanded">
		///            Whether or not control bar shall be expanded. </param>
		/// <param name="devicesExpanded">
		///            Map describing which devices shall be expanded and which not. </param>
		private void initializeControl(TypedArray array)
		{

			int type = array.getInt(R.styleable.FloatingControler_type, 1);
			LayoutInflater inflater = (LayoutInflater) this.Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
			int resId;
			switch (type)
			{
				case 0:
					resId = R.layout.floating_controller_layout;
					break;

				case 1:
				default: // fall-through
					resId = R.layout.floating_controller_layout;
					break;
			}
			inflater.inflate(resId, this, true);
			mControlBar = (FcControlBar) findViewById(R.id.control_bar_layout);
			mControlBar.prepareView(this, array);
		}