prit29 / Coders-Calendar

An android app to manage a schedule of programming contest timing of various competitive programming platforms
https://play.google.com/store/apps/details?id=com.noobsever.codingcontests
MIT License
8 stars 7 forks source link

Help Activity Layout #58

Closed HemangNakarani closed 3 years ago

HemangNakarani commented 4 years ago

image

fenu28 commented 4 years ago

@HemangNakarani I want to work on this issue.

HemangNakarani commented 4 years ago

Sure !! Assigned 👍

fenu28 commented 4 years ago

@HemangNakarani Do we have the questions ready for our app or I should put the above questions in image for now?

HemangNakarani commented 4 years ago

Not those questions specifically, bur keep some demo questions, So we can change it later, You will also need to write code for making recyclerView and Pojo class for Question-Answers.

So I'll increase points.

fenu28 commented 4 years ago

Ok cool. What I will try to do is first create a layout for the question-answers for recyclerView view holder. Then I will create a POJO class named something like "Help" or anything and it will contain the question, answer String variables and related getter, setters. Then I will also create a custom adapter for our question-answer recyclerView to populate the views. What do you think about this?

HemangNakarani commented 4 years ago

Yes Exactly, And for showing items in recycler view, just statically define ArrayList of Que-Ans objects for now.

fenu28 commented 4 years ago

I tried to implement this with the simple RecyclerView. But the problems here are:

  1. To implement the expanding functionality, we have to implement onClick() on each view holder of recycler view manually which can degrade performance.

  2. To collapse any expanded question when another question is selected, we need to check by iterating over all ArrayList questions whether they are expanded or not every time. This can also degrade performance.

Any suggestions??

HemangNakarani commented 4 years ago

Well,

HemangNakarani commented 4 years ago

@fenu28 any progress in it?

fenu28 commented 4 years ago

@HemangNakarani sorry for the delay. I have exchanged my old laptop for a new one so it's taking time # get so much data from Google Drive. And regarding this issue, only the "one at a time question" feature is to be implemented. Currently by my modification, more than one question answer can stay open.

HemangNakarani commented 3 years ago

give @fenu28 75 points