티스토리 수익 글 보기
Enum TextButtonStyle
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
-
TextButtonStyle is an enum used to specify the style for TextButton.
-
Available styles include OUTLINED (default), FILLED, FILLED_TONAL, and BORDERLESS.
-
The TEXT property is deprecated and should not be used.
-
You can set the background color for FILLED buttons using
TextButton.setBackgroundColor(). -
Enums are called using their parent class, name, and property, such as
CardService.TextButtonStyle.OUTLINED.
An enum that specifies the style for TextButton.
OUTLINED is the default; it renders a simple text button with clear background.
FILLED buttons have a background color you can set with TextButton.setBackgroundColor(backgroundColor).
To call an enum, you call its parent class, name, and property. For example,
CardService.TextButtonStyle.OUTLINED.
Properties
| Property | Type | Description |
|---|---|---|
OUTLINED | Enum | Normal text button with clear background. Default. |
TEXT | Enum | DO NOT USE. Deprecated version of OUTLINED. Do not remove the field until it is confirmed not being used by any apps. |
FILLED | Enum | Text button with colored background. |
FILLED_TONAL | Enum | Normal text button with an alternative middle ground between filled and outlined buttons. |
BORDERLESS | Enum | Normal text button with no border. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-13 UTC.