OSDN Git Service

AutoSize TextView - take horizontalScrolling into account
authorAndrei Stingaceanu <stg@google.com>
Wed, 12 Apr 2017 14:57:38 +0000 (15:57 +0100)
committerAndrei Stingaceanu <stg@google.com>
Tue, 18 Apr 2017 09:49:48 +0000 (09:49 +0000)
commitf730651a22c8d057dd5a39e3a846b699e2f4d73f
tree5aec1e8d83f18e9d182fc761e1a79f071d393aa2
parentcf7cb9c99300f1c80f93aa3d55dac6db977db333
AutoSize TextView - take horizontalScrolling into account

When passing the characteristics of the current TextView
to the StaticLayout for auto-size measurements also take
the horizontallyScrolling into account similarly with how
the actual measurements are done (@ TextView#onMeasure).

Bug: 37254477
Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t\
      android.widget.cts.TextViewTest

Change-Id: I44b85e77d9b1770f188a0f59f103e3fda284e97a
core/java/android/widget/TextView.java