Android tricks - How to find view's dimensions before displaying the view?
Two days ago I had to work with some views (Surprise! Surprise!). At some point I had to get the actual views’ width and height, before actually displaying the views. Of course, they were included in my XML layout. Thus this made the task a little bit easier. After spending several minutes on Google (ALWAYS do that, when you are in trouble), I found a solution. Code Description: You can see that we can actually obtain the view’s dimensions thanks to the Display class....