• wutao's avatar
    Styled label with mixed views · dd394d24
    wutao authored
    This cl implementation allows the client to provide custom views to
    styled label and set the horizontal alignment.
    
    Features:
    1. The client can provide any view.
    2. The client can set the horizontal alignment.
    3. All views in a line are center aligned.
    4. The custom view is one unit, cannot be wrapped into different line.
    5. If width is not wide for the custom view, the custom view will be cutoff.
    
    bug.
    
    Bug: 793414
    Test: Tested with different views and layout. Examples are posted in the
    Change-Id: Icf7d70da812c9e40362e20cbc30dc118cdf6d77b
    Reviewed-on: https://chromium-review.googlesource.com/888543
    Commit-Queue: Tao Wu <wutao@chromium.org>
    Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#534200}
    dd394d24
styled_label_unittest.cc 29.9 KB