You can configure the properties of the Label element from the Properties panel on the right side.
Value: This is the field where you can type static text. Using Symbol Picker, you can dynamically display the value of another element or the result of an action.
Maxline: Allows the content to be displayed up to a certain number of lines, regardless of the text length.
Formatter: Allows the content to be displayed in a specific format or layout. You can use the following options from the drop-down menu in the Properties panel:
money Shows the amount of money in 2-digit cents after the comma (Ex: 27.99)
money-var-1: Indicates the amount of money without commas, without pennies. (Ex: 28)
money-4-decimal: Shows the amount of money in 4 digits after the comma (Ex: 27.9999)
money-tl: Shows the amount of money by adding the TL symbol (Ex: 27,99 ₺)
phone Shows the phone number (999) in 999-9999 format.
percent: Represents the percentage by adding the percent symbol. (Ex: 25%)
fractional-2: Shows a 2-digit number after the comma (Ex: 3.14)
fractional-5: Shows a number with 5 digits after the comma (Ex: 3.14159)
datetime: Shows the date and time in DD/MM/YYYYY HH:mm:ss format. (Ex: 20/10/2023 14:30:45)
Date: Shows the date in DD/MM/YYYYY format (Ex: 20/10/2023)
date-var-1: Shows the date in DD:MM:YYYYY format (Ex: 20:10:2023)
short-date Shows the date in short format (Ex: Oct 20)
time Shows time in HH:mm:ss format (Ex: 14:30:45)
time-ago: Indicates how long ago a specific date and time occurred (Ex: 2 days ago)
Tooltip: Specifies the description text that appears when the user hovers over a Label element. For example, hovering over an "Email Address ‘ label may display a description such as ’Please enter a valid email address ”.
The Label element used in Android applications now supports not only bold but also other font weight styles. This provides more flexible and customisable text style options.
The Label element allows users to quickly and clearly recognize information in an application. It also contributes to making your app look more organized and professional by presenting different types of data in a specific format.