Poll App developed using MVVM, Coroutines, LiveData, Data binding and Room Database
Functionality and How app works:
MainActivity
with two fragments:CurrentPollFragment()
andHistoryFragment()
, a Fab button to launch and create a new Poll in an activityCreatePollActivity
.- in
CreatePollActivity
, user can add a question and add up to 5 options. - After creating a new poll, it will be shown in
CurrentPollFragment()
, where user can select an option from the list of different polls. - If there's any option selected, and user navigated to the
HistoryFragment()
or will launch an activityCreatePollActivity
, poll with any options selected, will be moved to theHistory
fromCurrent
. If user exits an app after selecting any options, then also it will move to theHistory
fromCurrent
. - If there's no option is selected, it will remain in the
CurrentPollFragment()
.
Note: User can change their selection while poll is in Current Poll Tab
and moving to History/CreatePollActivity or exiting an app will be considered as Submission as there's no separate button for Submission.