posted 4 years ago
I have written an Android App that pulls lots of data from Random Lists. (For inspiring Authors and Gamers).
Categories are Names (male/female, plus surname), Furniture (Kitchen, bathroom, Lounge, Bedroom, plus material), Quests (You must <activity> the <descriptor><maguffin> before <time limit>)
The lists are defined in XML String-Arrays.
I have added a feature to allow users to add their own custom data to each list, which I store in CSV Files.
Currently, each category has its own separate Add Data Activity and Layout. This seems to be leading to long, messy code.
e.g. if "Add Data to Quests Lists" is chosen, the user is presented with "Add activity", "Add descriptor" and "Add Maguffin" boxes.
"Add data to Names Lists presents "Add Male Name", "Add Female name" and "Add Surname" options.
Is there a way to put all of the Add Data actions into one Activity/Layout, and still have it filtered by Category?