Is there a way that i can "convert" a Viewgroup created programatically to parcelable and then send this ViewGroup through and aidl?
I know that may not be a good design or performance, but is there a way how i can do that?
Thats how my ViewGroup is created:
public ViewGroup getViewGroup(){
LinearLayout root = new LinearLayout(getContext());
root.setPadding(getValueinPixels(16),getValueinPixels(16),getValueinPixels(16),getValueinPixels(16));
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
root.setLayoutParams(params);
root.setOrientation(LinearLayout.VERTICAL);
TextView message = new TextView(getContext());
message.setText(getMessageCorrespondentToAction());
message.setTextColor(Color.parseColor(getHexadecimalColorOfMessageView()));
message.setPadding(getValueinPixels(0),getValueinPixels(8),getValueinPixels(0),getValueinPixels(8));
TextView action = new TextView(getContext());
action.setTextColor(Color.parseColor(getHexadecimalColorOfActionView()));
action.setPadding(getValueinPixels(0),getValueinPixels(8),getValueinPixels(0),getValueinPixels(8));
root.addView(message);
root.addView(action);
return root;
}