OSDN Git Service

Tweaked the dialer screen to match the designer's PPL.
authorNicolas Catania <niko@google.com>
Tue, 29 Sep 2009 06:03:33 +0000 (23:03 -0700)
committerNicolas Catania <niko@google.com>
Tue, 29 Sep 2009 20:20:16 +0000 (13:20 -0700)
commit53f94fc219ba44e72e8b82e565b4bb13323c83b4
tree9867a0cfa36390fb45154da50ee3e9f40fbb24d3
parent1dba2b828306c823e1ffcc85b48e3941462d4176
Tweaked the dialer screen to match the designer's PPL.

Created a layout-long-finger version of the dialpad for wvga devices.
For these devices, the buttons are taller than for hvga and
the margin around the elements are also different.

Extracted the bar with the 3 buttons in a separate file that gets
included in both portrait and landscape modes.

Simplified the ButtonGridLayout. Now runs 6% faster (3 runs w/ traceview).
I hardcoded the size of the button grid because the number of columns was
already hardcoded, so why not fix everything?
Use some member to cache the calculation made during onMeasure to be reused
in onLayout.

Tested on dream and sh.... in portrait and landscape modes.

Bug:2104523
res/layout-finger/dialpad.xml
res/layout-finger/twelve_key_dialer.xml
res/layout-finger/voicemail_dial_delete.xml [new file with mode: 0644]
res/layout-land-finger/twelve_key_dialer.xml
res/layout-long-finger/dialpad.xml [new file with mode: 0644]
res/layout-long-finger/twelve_key_dialer.xml [new file with mode: 0644]
res/layout-long-finger/voicemail_dial_delete.xml [new file with mode: 0644]
res/layout-long-land-finger/twelve_key_dialer.xml [new file with mode: 0644]
src/com/android/contacts/ButtonGridLayout.java