I am creating an app for Tailoring shop owners. They can save measurements of customer. For this I have created pojo for each item,like Shirt class, Trouser class (pojo). But I want to add feature like if shop owner decides to add extra field like front, shoulder,etc. I am using Firebase RT DB to store data.
DatabaseReference rootRef;
rootRef = FirebaseDatabase.getInstance().getReference();
Shirtpojo shirt = new Shirtpojo (height, chest);
rootRef.child("shirt").setValue(shirt);
Here, parameters in Shirtpojo are predefined like,
class Shirtpojo{
String height,chest;
getHeight(){...}
setHeight{...}
}
But if tailor wants to add fields of his own he cant do it.
Also to save the subsequent values of this new parameter I will need new layout(new edittext) in xml as well.
How can I achieve this ?