Releases: hmrc/android-components
Releases · hmrc/android-components
4.0.0
Changed
- Updated
InformationMessageCardViewbutton so it has the ability to set the button to outline style usingisOutlineButton. This meansetHeadlineButtonswill need to provideInformationMessageButtoninstead ofSecondaryButton.
3.22.0
Changed
- Updated
InformationMessageCardViewbuttons so that the buttonminHeightis reset from the default 60dp to 0dp. This means that buttons now only occupy the vertical space that they need and no more.
3.21.0
Added
WarningViewhas new attributedefaultPaddingwhich removes the default padding from the component when set to false. When set to true, or not provided in the xml, component has default8dppadding.
Changed
- Updated padding on
HeadlineCardViewso that if there are no children added then the bottom padding is the same as a normal card (16dp). If children are added, this padding is increased back to 24dp automatically.
3.20.0
Changed
-
Updated
MenuPanelRowViewnotifications to add support for 'New' badge.
To show the notification you now need to provide the type of notification as a parameter:showNotification(notificationType: Notification)
Notification types:Count(val count: Int = 0),New,None.
Default for panel isNoneand this does not need to be set.
Default ofCountjust shows a dot, and a count value does not need to be provided, this is the default state ofshowNotification(). -
Refactored dependencies and updated the following:
- kotlin version: 1.5.20 -> 1.5.31
- hmrc spotless plugin: 1.0.0 -> 1.1.1
- detekt: 1.6.0 -> 1.18.1
3.19.0
- Updated
StatusViewto improve support for vectors that are more than 100dp wide
3.18.0
3.17.1
- Updated
hmrc_grey_1colour to match the GOV palette
3.17.0
Added
- Added
setOnClickListener(clickHandler: () -> Unit)andsetChevronContentDescription(description: CharSequence)methods toHeadlineCardView.
3.16.0
Added
- Exposed the
setTextFocusable(focusable: Boolean)for use inMultiColumnRowand providedisTextFocusablefor setting this in xml.