public TimeEntryListItemHolder(Handler handler, LogTimeEntriesAdapter owner, View root) : base(root) { this.handler = handler; this.owner = owner; ColorView = root.FindViewById <View> (Resource.Id.ColorView); ProjectTextView = root.FindViewById <TextView> (Resource.Id.ProjectTextView).SetFont(Font.RobotoMedium); ClientTextView = root.FindViewById <TextView> (Resource.Id.ClientTextView).SetFont(Font.RobotoMedium); TaskTextView = root.FindViewById <TextView> (Resource.Id.TaskTextView).SetFont(Font.RobotoMedium); DescriptionTextView = root.FindViewById <TextView> (Resource.Id.DescriptionTextView).SetFont(Font.Roboto); TagsView = root.FindViewById <NotificationImageView> (Resource.Id.TagsIcon); BillableView = root.FindViewById <View> (Resource.Id.BillableIcon); DurationTextView = root.FindViewById <TextView> (Resource.Id.DurationTextView).SetFont(Font.RobotoLight); ContinueImageButton = root.FindViewById <ImageButton> (Resource.Id.ContinueImageButton); ContinueImageButton.SetOnTouchListener(this); }
public ExpandedListItemHolder(LogTimeEntriesAdapter adapter, View root) : base(root) { this.adapter = adapter; ColorView = root.FindViewById <View> (Resource.Id.ColorView); ProjectTextView = root.FindViewById <TextView> (Resource.Id.ProjectTextView); DescriptionTextView = root.FindViewById <TextView> (Resource.Id.DescriptionTextView); TimeTextView = root.FindViewById <TextView> (Resource.Id.TimeTextView).SetFont(Font.RobotoLight); DeleteImageButton = root.FindViewById <ImageButton> (Resource.Id.DeleteImageButton); CloseImageButton = root.FindViewById <ImageButton> (Resource.Id.CloseImageButton); EditImageButton = root.FindViewById <ImageButton> (Resource.Id.EditImageButton); DeleteImageButton.Click += OnDeleteImageButton; CloseImageButton.Click += OnCloseImageButton; EditImageButton.Click += OnEditImageButton; }
public TimeEntryListItemHolder(Handler handler, LogTimeEntriesAdapter adapter, View root) : base(root) { this.handler = handler; this.adapter = adapter; ColorView = root.FindViewById <View> (Resource.Id.ColorView); ProjectTextView = root.FindViewById <TextView> (Resource.Id.ProjectTextView).SetFont(Font.Roboto); ClientTextView = root.FindViewById <TextView> (Resource.Id.ClientTextView).SetFont(Font.Roboto); TaskTextView = root.FindViewById <TextView> (Resource.Id.TaskTextView).SetFont(Font.Roboto); DescriptionTextView = root.FindViewById <TextView> (Resource.Id.DescriptionTextView).SetFont(Font.RobotoLight); TagsView = root.FindViewById <View> (Resource.Id.TagsIcon); BillableView = root.FindViewById <View> (Resource.Id.BillableIcon); DurationTextView = root.FindViewById <TextView> (Resource.Id.DurationTextView).SetFont(Font.RobotoLight); ContinueImageButton = root.FindViewById <ImageButton> (Resource.Id.ContinueImageButton); ContinueImageButton.Click += OnContinueButtonClicked; }
public TimeEntryListItemHolder(LogTimeEntriesAdapter owner, View root) : base(root) { this.owner = owner; ColorView = root.FindViewById <View> (Resource.Id.ColorView); ProjectTextView = root.FindViewById <TextView> (Resource.Id.ProjectTextView).SetFont(Font.RobotoMedium); ClientTextView = root.FindViewById <TextView> (Resource.Id.ClientTextView).SetFont(Font.RobotoMedium); TaskTextView = root.FindViewById <TextView> (Resource.Id.TaskTextView).SetFont(Font.RobotoMedium); DescriptionTextView = root.FindViewById <TextView> (Resource.Id.DescriptionTextView).SetFont(Font.Roboto); TagsView = root.FindViewById <NotificationImageView> (Resource.Id.TagsIcon); NotSyncedView = root.FindViewById <View> (Resource.Id.NotSyncedIcon); BillableView = root.FindViewById <View> (Resource.Id.BillableIcon); DurationTextView = root.FindViewById <TextView> (Resource.Id.DurationTextView).SetFont(Font.RobotoLight); ContinueImageButton = root.FindViewById <ImageButton> (Resource.Id.ContinueImageButton); SwipeLayout = root.FindViewById <RelativeLayout> (Resource.Id.swipe_layout); PreUndoLayout = root.FindViewById <FrameLayout> (Resource.Id.pre_undo_layout); UndoButton = root.FindViewById <LinearLayout> (Resource.Id.undo_layout); UndoButton = root.FindViewById(Resource.Id.undo_button); UndoLayout = root.FindViewById(Resource.Id.undo_layout); ContinueImageButton.SetOnTouchListener(this); UndoButton.SetOnTouchListener(this); }