timob-15775: Check whether it's a HW window only when it's opening/opened.
Need to consider correct dimension when setting height and width to HW windows.
Merge pull request #5012 from pingwang2011/timob-15775

timob-15775: Android: border properties broken for Label