Have you watched the video at

   http://www.youtube.com/watch?v=PAMtKVO2ch8

about creating a custom view?

- Greg

On Jul 29, 4:46 pm, Zia <[email protected]> wrote:
> I would like to create a widget that can reads its attributes from an
> XML file onCreate.
>
> I've created a CustomButton that extends Button widget. I would like
> to define its layout and styling in an XML, such that the widget can
> be reused across different views, with the same styling attributes.
>
> The notepad sample code does carry some pointers to this problem,
> however, it defines a XML layout with the component as View, inside
> LinearLayout, which is not really what I'm trying to achieve here.
>
> Any suggestions or pointers for my question?
>
> Thanks,
>
> Zia
--~--~---------~--~----~------------~-------~--~----~
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