Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Enhancement] Autofit Label #1136

@felipebaltazar

Description

@felipebaltazar

Summary

A label that grows/shrinks the font size to fit entire bounds

For Android we have this native API
For IOS we have this native API
For UWP we have this example:

Ive done a PR on Xamarin Forms for this:
xamarin/Xamarin.Forms#7981

Important this will need be a new control, since we need to change TextView to AppCompatTextView... More details here

API Changes

  • (enum) AutoFitTextMode Label.AutoSizeMode{ get; set; } //Bindable Property
  • double Label.MaxAutoFitSize { get; set;} //Bindable Property
  • double Label.MinAutoFitSize {get; set;} //Bindable Property

Intended Use Case

Label to fit bounds and works as a responsive text

<AutoFitLabel AutoSizeMode="FitToWidth"/>

image

Who Will Do The Work?

  • I am willing to take this on myself
  • Just putting this out there for someone to pick up

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA request for a new feature.in-progressActively being worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions