android - Does findViewById has priority over ButterKnife's bind method call? -
in activity's oncreateview
have 2 different source views inflate ui elements. inflating ui elements belong 1 source view findviewbyid()
, belong other source view using butterknife's
bind method call.
but work if findviewbyid
has priority on butterknife
, otherwise first set of elements attached second source view.
so true findviewbyid
has priority on butterknife
?
under hood butterknife's bind
being executed findviewbyid
integer value of id, rather lookup r.id.something
, means both methods performing same , have same "priority", depends 1 execute first.
so answer "no, butterknife's bind has no priority, though execution can bit faster due lookup"
Comments
Post a Comment