My portrait layout has a RecycleView that displays only the first name and last name of contacts.
I want to make it that when I change the orientation to landscape, the RecycleView now shows the first name, last name, phone number and picture. This requires me to tell the adapter that the orientation has changed so that it initializes more new views (like the imageview which wasn't in portrait mode) than it would have done in portrait mode so how do I capture the orientation and tell the adapter how to initialize?
I've already created the landscape xml file, I just need the adapter to initalize to that one instead when in landscape view, so how do I capture this event?