Displayed number of elections and displayed complete info of elections categorized in Total, Active, Pending and Finished elections
In this MR I have implemented the following changes:
- GET the election data and categorized that election data into Total, Active, Pending and Finished elections based on "Current Date", "Starting Date" and "Ending Date".
- Display the number of elections of each type on their corresponding card view on the home fragment.
- Created 4 activities viz, ActiveElectionsActivity, TotalElectionsActivity, PendingElectionsActivity, FinishedElectionsActivity
- Created a RecyclerView Adapter and an election item to which all the details will be displayed.
If the user clicks on any of the card views it will be directed to its corresponding activity and the user will be able to see the election details.
So ultimately I have displayed a number of elections on the home fragment and displayed complete info of elections categorized in Total, Active, Pending, and Finished elections
Here is the Demo