Hi,
Can you please help me understand how android consturcts widget?
I have these 2 cases,
<com.mycompany.MyWidget android:id="@+id/mywidget_button"
style="@style/MyWidget">
<com.mycompany.MyWidget android:id="@+id/mywidget_button" >
My question is why they call the same constructors (I have print statement:
public MyToggleWidget(Context context, AttributeSet attrSet) {
super(context, attrStet, R.attr.buttonStyleMyWidget);
}
If so, How can I differentiate the case with a style attribute from
the case without a style attribute.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---