On Sep 22, 2011, at 6:42 PM, El-Sayed Mohamed wrote:
> How to set custom attribute from axml?
You should be able to use the IAttributeSet methods; untested...
> //Code snippet is below
>
> public class CustomView : ViewGroup
> {
> public string DisplayText
> {
> get;
> set;
> }
>
> public CustomView(Context context, IAttributeSet attrs) :
> base(context, attrs)
> {
DisplayText = attrs.GetAttributeValue (null, "DisplayText");
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid