grantbow / activehabits

Android app for tracking clicks over time
http://www.activehabits.com
5 stars 1 forks source link

button visible rotate not resized fully #3

Closed grantbow closed 13 years ago

grantbow commented 13 years ago
  1. Show the buttons.
  2. Rotate the screen.

Result: The orientation is changed correctly but button sizes are not recalculated and some are not visible on the screen.

grantbow commented 13 years ago

two cases:

  1. as described above rotating while open.
  2. opening activehabits while the orientation is landscape.

Both have problems but case 1 is a little more severe than case 2.

Evidently function onResume of mark.java line 100 (below) with container.getHeight() called later isn't accurately giving me what I need.

Display container = ((WindowManager)this.getSystemService(WINDOW_SERVICE)).getDefaultDisplay();

grantbow commented 13 years ago

added onResume to onConfigurationChanged

grantbow commented 13 years ago

Seems to work OK now.