conradchen 71bfaca706 [ProgressIndicator] Fix ProgressIndicator's size under a complex measurement
When a ProgressIndicator doesn't have a preferred width or height, its size will be calculated incorrectly as we rely on its super class, ProgressBar's onMeasure() method to decide its size. But ProgressBar doesn't support "unspecified" preferred width/height, in this case it will set measured dimensions to fixed values based on the incorrect "preferred size".

Fixes this issue by fallback to the default View.onMeasure() logic when no preferred width or height is specified.

Resolves https://github.com/material-components/material-components-android/issues/2163

PiperOrigin-RevId: 452795304
2022-06-03 12:10:03 -07:00
2016-12-12 16:01:31 -08:00
2017-05-08 16:48:53 -07:00
2020-09-18 14:05:08 -07:00
2022-05-24 13:51:19 -04:00
2020-07-10 11:50:37 -07:00
2020-06-26 14:00:54 -04:00

Build Status Chat

Material Components for Android

Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android apps.

Material Components for Android is a drop-in replacement for Android's Design Support Library.

Getting Started

For information on how to get started with Material Components for Android, take a look at our Getting Started guide.

Submitting Bugs or Feature Requests

For usage questions: ask on Stack Overflow.

Bugs or feature requests should be submitted at our GitHub Issues section.

Documentation

Description
Modular and customizable Material Design UI components for Android
Readme Apache-2.0 191 MiB
Languages
Java 99.9%
Kotlin 0.1%