Open wolfsolver opened 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
@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:
convertView = LayoutInflater.from(DataActivityComplex.this).inflate(R.layout.data_item, null);
This suggest to have this new class inside project:
NestedCategoryListFragmentNew extends BaseMultiLevelListFragment implements LoaderManager.LoaderCallbacks<Cursor>
BaseMultiLevelListFragment extends BaseListFragment
and put all logic for generic multilevel into BaseMultiLevelListFragment and all specifc logic into NestedCategoryListFragmentNew
It's correct? do you have any suggestion?
I made some check and develop a mockup for multilevel category entry..
Comment on Usability are welcome