How to define window orientation listener that is attached only to specific view? For example if a mobile device is oriented in portrait orientation, I wouild like to show two columns of the grid, and otherwise I would show more columns.
After searching for solution, I found the idea here and here
However, I do not know how I can add listener to that event, and specifically that listener should be valid only for specific view, and not for the whole application.