I have structure like that:
preferences.xml:
... <com.example.MyCustomPreference ... myCustomMessage="@string/abc" android:inputType="..." ... /> ... preference_my_custom.xml:
<LinearLayout ...> <com.example.MyCustomView ... app:myCustomMessage="?????" ... /> </LinearLayout> view_my_custom.xml:
<GridView ...> ...EditTexts, TextViews, etc. </GridView> I would like to pass myCustomMessage's value (I omitted other attributes for simplification) from MyCustomPreference to MyCustomView using XML. MyCustomView reads custom attributes, so I would like to avoid reading attributes in MyCustomPreference programmatically, getting TextViews from MyCustomView and setting them values. However, I really don't know what to type in place of "?????".
How can i do this using XML? Is this possible?