Butterknife: Butterknife orientation change

Created on 3 Jan 2017  ·  1Comment  ·  Source: JakeWharton/butterknife

If you are using butterknife and you want to specify two different layouts, portrait and landscape with different views, how do you do that? Cuz you don't want to try to bind a view that does not exist.

Most helpful comment

Use @Nullable on the binding or use two different objects for landscape/portrait.

>All comments

Use @Nullable on the binding or use two different objects for landscape/portrait.

Was this page helpful?
0 / 5 - 0 ratings