public TNAMyTaskListAdapter(MyTaskList myTaskList, AnimatedExpandableListView _lvMyTask, TNAMyTaskActivity _activity) : base(_activity) { MatchItems = _MyTaskList = myTaskList; _context = _activity; lvMyTask = _lvMyTask; bitopiApplication = (BitopiApplication)_context.ApplicationContext; adapter = this; }
// ================================================================================ // Constructor // ================================================================================ public ListViewAnimationHelper(BaseExpandableListAdapter adapter, ListView listView, MyTaskList dataSource) { this.adapter = adapter; this.listView = listView; this.dataSource = dataSource; }
protected override void OnCreate(Bundle savedInstanceState) { //bitopiApplication = (BitopiApplication)this.ApplicationContext; builder = new Android.App.AlertDialog.Builder(this); builder.SetMessage("Hello, World!"); builder.SetNegativeButton("Cancel", (s, e) => { /* do something on Cancel click */ }); base.OnCreate(savedInstanceState); _MyTaskList = new MyTaskList(this); _approvalType = (ApprovalType)(Convert.ToInt16(Intent.GetStringExtra("ApprovalType"))); _approvalRoleType = (ApprovalRoleType)(Convert.ToInt16(Intent.GetStringExtra("ApprovalRoleType"))); SupportRequestWindowFeature(WindowCompat.FeatureActionBar); SupportActionBar.SetDisplayShowCustomEnabled(true); SupportActionBar.SetCustomView(Resource.Layout.custom_actionbar); rltitle = FindViewById <RelativeLayout>(Resource.Id.rltitle); tvHeaderName = FindViewById <TextView>(Resource.Id.tvHeaderName); SetContentView(Resource.Layout.TNAMyTaskList); lvMyTask = FindViewById <AnimatedExpandableListView>(Resource.Id.lvMyTask); tvMsg = FindViewById <TextView>(Resource.Id.tvMsg); tvMsg.Visibility = ViewStates.Gone; _chkApproveAll = FindViewById <CheckBox>(Resource.Id.chkSelectAll); rlMsg = FindViewById <RelativeLayout>(Resource.Id.rlMsg); rlapprovalDetail = FindViewById <RelativeLayout>(Resource.Id.rlapprovalDetail); switch (bitopiApplication.MyTaskType) { case MyTaskType.UNSEEN: tvMsg.Text = "You don't have any unseen Task"; tvHeaderName.Text = "My Unseen Task"; break; case MyTaskType.SEEN: tvMsg.Text = "You don't have any seen Task"; tvHeaderName.Text = "My Seen Task"; break; case MyTaskType.COMPLETED: tvMsg.Text = "You don't have any completed Task"; tvHeaderName.Text = "My Completed Task"; break; } RLleft_drawer = FindViewById <RelativeLayout>(Resource.Id.RLleft_drawer); mDrawerLayout = FindViewById <DrawerLayout>(Resource.Id.drawer_layout); FindViewById <ImageButton>(Resource.Id.btnDrawermenu).Visibility = ViewStates.Visible; FindViewById <ImageButton>(Resource.Id.btnDrawermenu).Click += (s, e) => { if (mDrawerLayout.IsDrawerOpen(RLleft_drawer)) { mDrawerLayout.CloseDrawer(RLleft_drawer); } else { mDrawerLayout.OpenDrawer(RLleft_drawer); } }; //LoadDrawerView(); }
public void SetData(MyTaskList myTaskList) { MatchItems = _MyTaskList = myTaskList; }