//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; }
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(); }
/// <summary> /// @brief /// </summary> /// <param name="adapter"> </param> public AppClickedListener(OrdinalAppViewHolder outerInstance, FcAdapter adapter) { this.outerInstance = outerInstance; mAdapter = adapter; }