public QuestionPapersAdapter(Context c, List <Semester> items) { context = c; semesters = items; ShowCategory = QPCategories.Semester; }
public QuestionPapersAdapter(Context c, List <Year> items, string sem) { context = c; years = items; semester = sem; ShowCategory = QPCategories.Year; }
public QuestionPapersAdapter(Context c, List <QuestionPaper> items, string sem, string year) { context = c; questionPapers = items; semester = sem; this.year = year; ShowCategory = QPCategories.QuestionPaper; }
private void ShowSemesters() { qpAdapter = new QuestionPapersAdapter(this, semesters); list.Adapter = qpAdapter; list.StartLayoutAnimation(); CurrentShowingQPCategory = QPCategories.Semester; sem.Visibility = ViewStates.Visible; year.Visibility = ViewStates.Gone; questionPaper.Visibility = ViewStates.Gone; }
private void ShowFiles(int index) { qpAdapter = new QuestionPapersAdapter(this, semesters[semesterIndex].Years[index].QuestionPapers, semesters[semesterIndex].SemesterName, semesters[semesterIndex].Years[index].YearName); list.Adapter = qpAdapter; list.StartLayoutAnimation(); yearIndex = index; CurrentShowingQPCategory = QPCategories.QuestionPaper; sem.Visibility = ViewStates.Visible; year.Visibility = ViewStates.Visible; questionPaper.Visibility = ViewStates.Visible; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); OverridePendingTransition(Resource.Animation.SlideInLeft, Resource.Animation.SlideOutLeft); SetContentView(Resource.Layout.QuestionPapers); list = FindViewById <ListView>(Resource.Id.listQP); list.LayoutAnimation = AnimationUtils.LoadLayoutAnimation(this, Resource.Animation.LayoutAnimatorFade); list.ItemClick += ((sender, args) => { LaunchQP(args.Position); }); SetUpTextViews(); semesters = ParseData.ReadQuestionPapers.GetQuestionPapers(this); CurrentShowingQPCategory = QPCategories.Semester; ShowSemesters(); }