I want to define two alternative layouts for one view. In both layouts, some parts are the same and one part differs. I went through the user interface Programmer's Guide but did not find a way how I can define this "same part" centrally and then refer to it in the specific layouts (I hope I did not miss it :) ).
This is how it looks like at the moment:
<resources>
<layout id="MainViewClockLayout">
<label id="ToCommandViewLabel"... />
<label id="FhemLabel" ... />
<drawable id="ClockDrawable" class="ClockDrawable">
<param name="font">Gfx.FONT_NUMBER_HOT</param>
...
</drawable>
</layout>
<layout id="MainViewStatusLayout">
<label id="ToCommandViewLabel"... />
<label id="FhemLabel" ... />
<drawable id="ClockDrawable" class="ClockDrawable">
<param name="numberOfStatusValues">3</param>
...
</drawable>
</layout>
</resources>
As you may see, the part
<label id="ToCommandViewLabel"... />
<label id="FhemLabel" ... />
occurs in both layouts.
How can I define this centrally and just reference it in the individual layouts?
Thanks in advance & regards,
Florian