OSDN Git Service

Hack to fix issue #2125365: Sports Trivia compatability with Eclair (do not merge)
authorDianne Hackborn <hackbod@google.com>
Tue, 29 Sep 2009 00:33:54 +0000 (17:33 -0700)
committerXavier Ducrohet <xav@android.com>
Wed, 30 Sep 2009 00:49:22 +0000 (17:49 -0700)
commite67f0c9712890f3af19d1213ff4c4b049c401226
tree0e10f07484d1a1ecedcf159e1f13b118ca8edf81
parentd135b0937875b405a20f735189040d5cb4d2546d
Hack to fix issue #2125365: Sports Trivia compatability with Eclair (do not merge)

Adds a mechanism to tell Paint the scaling factor its target
canvas will have, for it to compute font metrics based on the
correct font size.  Only TextView uses this, but that is enough
for the large majority of apps.

This is integrated from the Eclair branch.
api/current.xml
core/java/android/widget/TextView.java
core/jni/android/graphics/Paint.cpp
graphics/java/android/graphics/Paint.java