moneymanagerex / android-money-manager-ex

Manage your finances on-the-go, encrypted for security, and sync via your cloud
http://android.moneymanagerex.org/
GNU General Public License v3.0
498 stars 188 forks source link

New Nested Category Screen #1792

Open wolfsolver opened 2 months ago

wolfsolver commented 2 months ago

I made some check and develop a mockup for multilevel category entry..

image

Comment on Usability are welcome

wolfsolver commented 2 months ago

Here a simple idea.

https://github.com/wolfsolver/exampleNestedCategory

@guanlisheng did you have any suggestions?

First switch off use method like previous one, set on use _self to handle parent as children (so parent can have total) Second switch show selection view vs report view

screen-20240827-180826.gif

wolfsolver commented 2 months ago

@guanlisheng I need your support to convert from sample project into AMMEX. Take a look to my latest deploy on https://github.com/wolfsolver/exampleNestedCategory

I try to adapt sample code into AMMEX structure. Previus category management use this this kind of declaration

public class CategoryListFragment
    extends BaseExpandableListFragment
    implements LoaderManager.LoaderCallbacks<Cursor> 

and the following hierarchy: BaseExpandableListFragment --> ExpandableListFragment --> Fragment

I need to switch from ExpandableList to new layout based on two piece of layout:

This suggest to have this new class inside project:

and put all logic for generic multilevel into BaseMultiLevelListFragment and all specifc logic into NestedCategoryListFragmentNew

It's correct? do you have any suggestion?