For now i use include with a different id, the  in code i customize
the button.
I think it's a nice feature to be able to customize that button using
XML.

It will also be nice since it will allow for example to create a
'frame' for screens like if 3-4 screens share the same background
image, main layout and let's say, title made from TextView and
background of it's own.
So  if i could customize it's internal components only i could make
the include as the root element and then add layouts that will be
added the the main layout that is declared in the xml included from
the <include> clause, saving me a lot of copy-paste of xmls from one
to another.

On Oct 28, 12:11 pm, poohtbear <[email protected]> wrote:
> I have in many of my screens that re mostly constructed of
> LinearLayouts a FrameLayout that should take up the bottom leftovers
> of the screen (using layout_height="0dp" layout_weight="1") inside it
> there's a FrameLayout with gradients background and in it's middle
> with some padding lies a button with some text, naturally i need the
> text and onClicked properties to me different from screen to screen.
>
> I considered using <include > tag for the above compound in my
> layouts, but as far as i can see i can't really change (at least not
> in xml) the button text and callback, is that really so ?
>
> I'm running on SDK 4 and above.
>
> 10x.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to