//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private ControlBar createControlBar(android.content.Context activity, int handleDrawable) throws NotActivityException private ControlBar createControlBar(Context activity, int handleDrawable) { ControlBar.Info info = new ControlBar.Info(true, null, handleDrawable); ControlBar controlBar = new CornerControlBar(activity, info); IDictionary <int?, int?> map = new SortedDictionary <int?, int?>(); map[LinearLayout.HORIZONTAL] = android.R.color.transparent; controlBar.EndImageMap = map; controlBar.Orientation = LinearLayout.HORIZONTAL; controlBar.CurrentPosition = mBarAlignment; return(controlBar); }
protected internal virtual void initControlBar(Activity activity, bool barExpanded, IDictionary <string, bool?> devicesExpanded, TypedArray array) { base.initControlBar(activity, array); int handleDrawable = array.getResourceId(R.styleable.FloatingControler_handle_drawable, 0); mBarAlignment = array.getInt(R.styleable.FloatingControler_bar_alignment, ALIGN_PARENT_TOP); ControlBar.Info info = new ControlBar.Info(true, null, handleDrawable); try { this.mControlBar = new ControlBarAnonymousInnerClassHelper(this, activity, info); IDictionary <int?, int?> map = new SortedDictionary <int?, int?>(); map[LinearLayout.HORIZONTAL] = R.drawable.ctrl_action_horiz_end; map[LinearLayout.VERTICAL] = R.drawable.ctrl_action_vert_end; mControlBar.EndImageMap = map; } catch (NotActivityException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }