Nick9500 / ministocks

Android Stocks Widget
http://niteshpatel.github.io/ministocks
MIT License
1 stars 2 forks source link

As a User, I want to scroll through multiple stocks #12

Closed GurkomalSRao closed 6 years ago

GurkomalSRao commented 6 years ago

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

Test # Input Expected Output Status
1 None None Pass/Fail
2 None None Pass/Fail
3 None None Pass/Fail
GurkomalSRao commented 6 years ago

Sample of Demo 390feature1

Nick9500 commented 6 years ago

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.

GurkomalSRao commented 6 years ago

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

Nick9500 commented 6 years ago

Completely new widget view in progress.

Nick9500 commented 6 years ago

Widget pulls stock information from another instance of original widget. stsc

Nick9500 commented 6 years ago

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)

Nick9500 commented 6 years ago

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.

Nick9500 commented 6 years ago

Story has been extended to Sprint 3 to finish as discussed in meeting on Feb. 12.

Nick9500 commented 6 years ago

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