Closed GurkomalSRao closed 6 years ago
Sample of Demo
Experiencing difficulty refactoring code to a GridView/ListView to display stocks. Existing code was hardcoded using 5 or 10 TextView-based elements (depending on widget size) rather than a data structure holding stocks so scalability is very very bad in pre-existing code.
All views and Data was hard coded. Implementing our own functionality, at this point, does not seem feasible.
Attempted the following procedures:
Scenario 1:
Scenario 2:
Scenario 3:
Scenarios 1 and 2 would not allow any connections from WidgetView and RemoteService (compilation errors) Scenario 3 not plausible due to intensive hard coding and class manipulation done by original creator of widget source code
Completely new widget view in progress.
Widget pulls stock information from another instance of original widget.
Left to do: -Make new widget layout standalone by allowing stocks to be set through new widget layout. IE. Pull up the Preferences Activity via button press, double tap, etc. -Find a way to format columns better than using string concatenation and spaces. -Write tests for new methods/functionality (if applicable)
Recommend taking another 4 story points in Sprint 3 to finish story. Original estimation was way underestimated considering Risk Level due to knowledge and lack of scalability of original app.
Story has been extended to Sprint 3 to finish as discussed in meeting on Feb. 12.
ListView widget is now standalone!
To demo: -Long press the home screen -Add any ministocks widget -Tap slightly below the widget to open preferences (Button to be added in future) -Stocks can be added/modified as usual via preferences
As a user, I want to be able to scroll through multiple stocks that have been added [SP: 10] [Priority: 1] [Risk: High]
Demo Scenario 1: User swipes horizontally to scroll through stocks added on main menu
Task Estimation (Hours) Task 1: Research how to add scroll bar to widget (.1h) Task 2: Discuss with assignee's (.5h) Task 3: Implement scroll feature (.5h) Task 4: Validate potential flaws i.e. infinite scrolling or scrolling with little to no stocks listed (1h) Task 5: Modify and review with assignee's (1.5h)
Testing Template