//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
//ORIGINAL LINE: public OrdinalAppViewHolder(final FcContext context, android.view.View itemView, FcAdapter adapter)
		public OrdinalAppViewHolder(FcContext context, View itemView, FcAdapter adapter) : base(itemView)
		{

			mDeviceAppButton = (ImageButton) itemView.findViewById(R.id.device_app_button);
			mDeviceRootLayout = (LinearLayout) itemView.findViewById(R.id.device_root_layout);
			mDeviceOpenActions = (LinearLayout) itemView.findViewById(R.id.device_open_actions);
			mDeviceActions = (LinearLayout) itemView.findViewById(R.id.device_actions);

			mDeviceVolumeActions = (LinearLayout) itemView.findViewById(R.id.device_volume_actions);
			mDeviceVolumes = (LinearLayout) itemView.findViewById(R.id.device_volumes);
			mDeviceVolumesLabel = (TextView) itemView.findViewById(R.id.device_volume_label);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final FcAnimator animator = new FcAnimator();
			FcAnimator animator = new FcAnimator();
			mExpandActionsButtonListener = new AppClickedListener(this, adapter);
			mOpenAppDirectlyButtonListener = new OnClickListenerAnonymousInnerClassHelper(this, context, animator);

			mDeviceAppButton.OnClickListener = mExpandActionsButtonListener;
		}
Пример #2
0
			public FcAnimatorListenerAnonymousInnerClassHelper(FcAnimator outerInstance, View toHide)
			{
				this.outerInstance = outerInstance;
				this.toHide = toHide;
				mCanceled = false;
			}
Пример #3
0
			public AnimatorUpdateListenerAnonymousInnerClassHelper(FcAnimator outerInstance, View toHide, int fromDimension)
			{
				this.outerInstance = outerInstance;
				this.toHide = toHide;
				this.fromDimension = fromDimension;
			}
Пример #4
0
			public FcAnimatorListenerAnonymousInnerClassHelper4(FcAnimator outerInstance, View toShow)
			{
				this.outerInstance = outerInstance;
				this.toShow = toShow;
			}
Пример #5
0
			public FcAnimatorListenerAnonymousInnerClassHelper3(FcAnimator outerInstance, View toShow, int fromWidth)
			{
				this.outerInstance = outerInstance;
				this.toShow = toShow;
				this.fromWidth = fromWidth;
			}
Пример #6
0
			public AnimatorUpdateListenerAnonymousInnerClassHelper2(FcAnimator outerInstance, View toShow, float toWidth)
			{
				this.outerInstance = outerInstance;
				this.toShow = toShow;
				this.toWidth = toWidth;
			}
Пример #7
0
		private void initView()
		{
			LayoutInflater inflater = (LayoutInflater) Context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
			inflater.inflate(R.layout.fc_control_bar, this, true);
			mRoot = (LinearLayout) findViewById(R.id.control_bar_root_layout);
			mRecyclerView = (RecyclerView)findViewById(R.id.devices_layout);

			FcItemAnimator itemAnimator = new FcItemAnimator(mRecyclerView);
			itemAnimator.AddDuration = FcConstants.DEFAULT_ANIM_DURATION;
			itemAnimator.ChangeDuration = FcConstants.DEFAULT_ANIM_DURATION;
			itemAnimator.MoveDuration = FcConstants.DEFAULT_ANIM_DURATION;
			itemAnimator.RemoveDuration = FcConstants.DEFAULT_ANIM_DURATION;

			mRecyclerView.ItemAnimator = itemAnimator;
			mModel = new FcModel(mFcContext);
			mAdapter = new FcAdapter(mFcContext, mModel);

			//
			// Temporary workaround for a bug in RecyclerView:
			//      https://code.google.com/p/android/issues/detail?id=74772
			//
			// This custom LinearLayoutManager is on Apache 2.0 licence
			//
			// Fix this when it's fixed ("targeted early 2016")
			//
			LinearLayoutManager layoutManager = new LinearLayoutManager(Context);
			layoutManager.Orientation = LinearLayoutManager.HORIZONTAL;
			mRecyclerView.LayoutManager = layoutManager;
			mRecyclerView.Adapter = mAdapter;

			mBarHandler = (ImageButton)findViewById(R.id.barhandler);
			mBarHandler.BackgroundResource = R.drawable.arrow_open;
			mBarHandler.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this);

			mMainAppImage = (ImageButton)findViewById(R.id.main_app_image);
			mMainAppImage.OnLongClickListener = new FcControlBarLongClickListener(this);
			mFcAnimator = new FcAnimator();
		}