diff options
| author | Raph Levien <raph@google.com> | 2015-03-25 13:18:20 -0700 |
|---|---|---|
| committer | Raph Levien <raph@google.com> | 2015-04-01 11:01:41 -0700 |
| commit | 39b4db73c3340ff955f67e4e5318159d19d1ab3a (patch) | |
| tree | 87132866cf1892b1669981789cc5b2b57aa7ece9 /tools/aapt2/java/JavaClassGenerator.cpp | |
| parent | 066be66d6060c3dd23a84690a396d1df12c6404d (diff) | |
Add breakStrategy attribute to TextView
This patch adds plumbing to TextView to control the strategy used
for breaking paragraphs into lines.
The default for TextView is "quality", while the default for EditText
is "simple", largely to avoid too much re-layout when editing.
StaticLayout now has a builder which provides access to more
functionality and is also cleaner than the old mechanism of having
lots of constructors with varying numbers of arguments. This patch
changes TextView to use that builder, and also contains cleanups
of the Builder within StaticLayout.
Change-Id: Iee3cf3a05a3e51ba0834554e4a3ec606e9cabca5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions
