I defined a layout and want to use it as template for my other activitys (same background color, distance to margin etc.). So i`m trying to include it by
<include layout="@layout/template"> That does work. But i want to place buttons on the included layout like this
<include layout="@layout/template" xmlns:android="http://schemas.android.com/apk/res/android"> <Button android:id="@+id/applyLeave" android:layout_alignTop="@+id/upperEdge" style="@style/buttons"/> </include> (e.g. @+id/upperEdge is part of the included layout and i want to set the button below the included component)
Is it possible and how do i do this?
No comments:
Post a Comment