IT. Expert System.

Android Reference

StaticLayoutTest


android.text

Class StaticLayoutTest



  • public class StaticLayoutTest
    extends TestCase
    Tests StaticLayout vertical metrics behavior. Requires disabling access checks in the vm since this calls package-private APIs.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void testGetters1()
      Basic test showing expected behavior and relationship between font metrics and line metrics.
      void testGetters2()
      Basic test showing effect of includePad = true with 1 line.
      void testGetters3()
      Basic test showing effect of includePad = true wrapping to 2 lines.
      void testGetters4()
      Basic test showing effect of includePad = true wrapping to 3 lines.
      void testGetters5()
      Basic test showing effect of includePad = true wrapping to 3 lines and large text.
      void testGetters6()
      Basic test showing effect of includePad = true, spacingAdd = 2, wrapping to 3 lines.
      void testGetters7()
      Basic test showing effect of includePad = true, spacingAdd = 2, spacingMult = 1.5, wrapping to 3 lines.
      void testGetters8()
      Basic test showing effect of includePad = true, spacingAdd = 0, spacingMult = 0.8 when wrapping to 3 lines.
    • Constructor Detail

      • StaticLayoutTest

        public StaticLayoutTest()
    • Method Detail

      • testGetters1

        public void testGetters1()
        Basic test showing expected behavior and relationship between font metrics and line metrics.
      • testGetters2

        public void testGetters2()
        Basic test showing effect of includePad = true with 1 line. Top and bottom padding are affected, as is the line descent and height.
      • testGetters3

        public void testGetters3()
        Basic test showing effect of includePad = true wrapping to 2 lines. Ascent of top line and descent of bottom line are affected.
      • testGetters4

        public void testGetters4()
        Basic test showing effect of includePad = true wrapping to 3 lines. First line ascent is top, bottom line descent is bottom.
      • testGetters5

        public void testGetters5()
        Basic test showing effect of includePad = true wrapping to 3 lines and large text. See effect of leading. Currently, we don't expect there to even be non-zero leading.
      • testGetters6

        public void testGetters6()
        Basic test showing effect of includePad = true, spacingAdd = 2, wrapping to 3 lines.
      • testGetters7

        public void testGetters7()
        Basic test showing effect of includePad = true, spacingAdd = 2, spacingMult = 1.5, wrapping to 3 lines.
      • testGetters8

        public void testGetters8()
        Basic test showing effect of includePad = true, spacingAdd = 0, spacingMult = 0.8 when wrapping to 3 lines.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 159 / 158775756. Delta: 0.03347 с