markamaze / FudgetBudget

0 stars 0 forks source link

Rework creation and updating of lists and list items #1

Closed markamaze closed 4 years ago

markamaze commented 4 years ago

When creating new transaction, a line item is loaded for user to modify. Currently this line item loads without onclick function, views disabled, and always into expense list. Once activity reloads it is of correct view state and in correct list.

markamaze commented 4 years ago

Currently the line items for the lists are created within the methods which create the list. Perhaps extracting this is the way to go, then i can more easily create line items as need outside the method building the complete list.

markamaze commented 4 years ago

Extracting setting of list item properties led to some restructuring of buildTransactionListView: changed signature to accept a list view group, a layout resource id for the list item view, and a data type id.

Further, will be extracting creating the list item headers as well. After these are all working, will probably want to rework the buildPeriodListView implementation.

*If possible i should be figuring out how to do all this in such a way that the lists can be immediately updated without reloading the entire activity.

*Retitle this issue to reflect working on creation of all lists and line items.

markamaze commented 4 years ago

Goal if rebuilding list creators done. Still recreating activity when data changed but that's a problem for another issue. (Will create as issue 005)