material-components-android
material-components-android copied to clipboard
Modular and customizable Material Design UI components for Android
Resolves https://github.com/material-components/material-components-android/issues/4325
Closes https://github.com/material-components/material-components-android/issues/4105 Usage example: ```java TabLayout tabLayout = ...; Tab firstTab = tabLayout.newTab() .setText("Tab 1") .setOnTabClickListener((tab) -> { if (!isSomeCheckValid) { // Show some error dialog. return; } tab.select(); });...
**Description:** There is no way (when you have more sliders on one screen) which slider crash. **Expected behavior:** Show ID or line of code where crash happens. **Source code:** Just...
#3124 (To be precise, #3124 is not a duplicate of #2869.) https://github.com/material-components/material-components-android/issues/2869#issuecomment-1821123500 #3999 #3917
[Bottom Sheet] Weird animation when dismissing modal Bottom Sheet with back button/gesture on 1.10.0
Hi, there is weird animation artifact introduced on 1.10.0. I think it is related to adding predictive back press. It only happens if you use back button or gesture to...
**Description:** I have a business logic in the app to perform a certain validation when the TabView is clicked. Due to the current TabLayout implementation, I can't prevent tab selection...
**Description:** According to the source code Material buttons should be `320dp` maximum by default but this not actually working. This causes warnings in Android Studio. https://github.com/material-components/material-components-android/blob/release-1.11/lib/java/com/google/android/material/button/res/values/dimens.xml#L20 https://github.com/material-components/material-components-android/blob/release-1.11/lib/java/com/google/android/material/button/res/values/styles.xml#L39 The warning can...
**Description:** When the font-size is increased via the system accessibility settings (`fontScale`), then the subtitle is being cutoff on the bottom despite using `wrap_content` on the toolbar.  - [Current style (`22de817`)](https://github.com/material-components/material-components-android/blob/22de817c30a493fb7dda46a8bea784d5bdc1dbdb/lib/java/com/google/android/material/slider/res/values/styles.xml#L77-L83)
**Description:** When swiping the ViewPager to a page with a slider with `labelBehavior="visible"`, a label appears, but it shouldn't be there until the slider is visible (see video, starts from...