Search code examples
androidandroid-layoutfindviewbyidbutterknife

Is Butterknife.findById() better than findViewById()?


Does using ButterKnife.findById() offer any sort of performance increase over using findViewById()? I'm guessing no--and this it's made for simplification of code only.


Solution

  • If you have a look at the source code it just does the type cast for you. So it's cleaner, but no less performant

    return (T) view.findViewById(id);