You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
Have access to TypedValue means this could support a full range of checks to figure out its type. Doing so automatically might come at the expense of flexibility (e.g. user might want to force a particular type).
The default could be to resolve the attribute based on TypedValue's type, with an optional specifier.
Alternative approach.
Simpler for code generation, but more work for the user as they would have to figure out how to mix their desired attrs with these. Would need another overload for Style, and remove the hard requirement for attributeset not to be null in the generated Barbershop#style(...) method.
privatestaticfinalint[] ATTRS = newint[]{
android.R.attr.listDivider
};
// Want to do this boilerplatefinalTypedArraya = context.obtainStyledAttributes(ATTRS);
mDivider = a.getDrawable(0);
a.recycle();
// Probable method signaturestyle(Objecttarget, int[] attrs);
The text was updated successfully, but these errors were encountered:
Not high on my priority list right now, but will consider adding if people express an interest.
Have access to
TypedValue
means this could support a full range of checks to figure out its type. Doing so automatically might come at the expense of flexibility (e.g. user might want to force a particular type).The default could be to resolve the attribute based on
TypedValue
's type, with an optional specifier.Alternative approach.
Simpler for code generation, but more work for the user as they would have to figure out how to mix their desired attrs with these. Would need another overload for
Style
, and remove the hard requirement for attributeset not to be null in the generatedBarbershop#style(...)
method.The text was updated successfully, but these errors were encountered: