repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
material3 fade through motion example for android be divert too much from the documentation in m3 material io
Bug
the section at fade through provide an example on what kind of motion to have on top level destination on android this however be very different from the doc on m3 material here 8327d206 2a7d 423a abf0 2be86130535b I d expect there to be one motion spec for this use universally in m3 docs this have make it a bit hard to decide on the top level destination internally for our app as we be not sure what to go with
materialcomponentsmaterialcomponentsandroid
chip documentation update chip documentation to remove deprecate method
Bug
in the documentation it say chipgroup setoncheckedchangelistener group checkedid respond to child chip check unchecked but in android studio I get the warning setoncheckedchangelistener chipgroup oncheckedchangelistener unit be deprecate deprecate in java in the android documentation it say this interface be deprecate use chipgroup oncheckedstatechangelistener instead how to properly handle select chip there be no example in the android documentation
materialcomponentsmaterialcomponentsandroid
page indicator dot insufficient touch target size
Bug
description the page indicator dot be by default clickable the touch target size for the dot be insufficient expect behavior the touch target size for the page indicator should be at least 44 dp x 44 dp minimal sample app repro img 20230821 150339 android api version 33 material library version 1 9 0 device pixel 3a
materialcomponentsmaterialcomponentsandroid
checkbox incorrect uncheck animation
Bug
description I face a bug with checkbox animation first checbox on gif animation for state indeterminate unchecked and check unchecked be visually skip seem the problem be in mtrl checkbox button check unchecked xml animation preview in android studio also show I immediate disappearing of the rectangle inside the box expect behavior animate disappearing of rectangle as for 2 and 3 cheboxe on gif source code xml minimal sample app repro in material catalog app I also didn t see uncheck animation android api version test on 30 and 33 material library version 1 8 0 device xiaomi 13 xiaomi mi 9 lite ezgif com video to gif
materialcomponentsmaterialcomponentsandroid
material carousel null pointer exception
Bug
description it be work fine but when I make an app for someone he publish on playstore we get this error attempt to invoke virtual method com google android material carousel keylinestate com google android material carousel keylinestatelist getdefaultstate on a null object reference app simply crash because carousel be on main activity complete log attempt to invoke virtual method com google android material carousel keylinestate com google android material carousel keylinestatelist getdefaultstate on a null object reference at com google android material carousel carousellayoutmanager computehorizontalscrollextent carousellayoutmanager java 1024 at androidx recyclerview widget recyclerview computehorizontalscrollextent recyclerview java 2027 at android view view canscrollhorizontally view java 21461 at androidx recyclerview widget recyclerview layoutmanager oninitializeaccessibilitynodeinfo recyclerview java 10378 at androidx recyclerview widget recyclerview layoutmanager oninitializeaccessibilitynodeinfo recyclerview java 10348 at androidx recyclerview widget recyclerviewaccessibilitydelegate oninitializeaccessibilitynodeinfo recyclerviewaccessibilitydelegate java 74 at androidx core view accessibilitydelegatecompat accessibilitydelegateadapter oninitializeaccessibilitynodeinfo accessibilitydelegatecompat java 91 at android view view oninitializeaccessibilitynodeinfo view java 9095 at android view view createaccessibilitynodeinfointernal view java 9056 at android view view accessibilitydelegate createaccessibilitynodeinfo view java 32408 at android view view createaccessibilitynodeinfo view java 9039 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1520 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchaccessibilitynodeinfos accessibilityinteractioncontroller java 1309 at android view accessibilityinteractioncontroller findaccessibilitynodeinfobyaccessibilityiduithread accessibilityinteractioncontroller java 416 at android view accessibilityinteractioncontroller nest mfindaccessibilitynodeinfobyaccessibilityiduithread unknown source 0 at android view accessibilityinteractioncontroller privatehandler handlemessage accessibilityinteractioncontroller java 1713 at android os handler dispatchmessage handler java 106 at android os looper looponce looper java 226 at android os looper loop looper java 313 at android app activitythread main activitythread java 8757 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 604 at com android internal os zygoteinit main zygoteinit java 1067
materialcomponentsmaterialcomponentsandroid
appbarlayout status bar color not change dynamically anymore
Bug
description in my app I m use appbarlayout incl materialtoolbar and tablayout and a viewpager2 incl a recyclerview list I m dynamically change the color of the status bar when the user be scroll up and down the list and I m use a compress effect for the toolbar in order to dynamically change the status bar color I m use setstatusbarforeground together with createwithelevationoverlay see below code snippet and the follow complete code example since I ve upgrade from material 1 11 0 alpha 01 to material 1 11 0 alpha 02 the color of the status bar doesn t dynamically change anymore in the example app when scroll up and down the list the color of the status bar switch between white and light grey material 1 11 0 alpha 01 expect behavior but it keep to be white all the time when use material 1 11 0 alpha 02 it seem to I as if the follow commit have somehow change the behavior expect behavior the color of the status bar should change dynamically when scroll up and down the list as in material 1 11 0 alpha 01 source code code of mainactivity java appbarlayout appbarlayout findviewbyid r i d appbar appbarlayout setstatusbarforeground materialshapedrawable createwithelevationoverlay mainactivity this minimal sample app repro android api version android api 29 34 material library version 1 11 0 alpha02 device various pixel emulator and nokia 7 2
materialcomponentsmaterialcomponentsandroid
navigation drawer navigation drawer have square corner on pre q device because colorstatelistdrawable be not support
Bug
description the navigation drawer 1 11 0 alpha02 have square corner screenshot 20230818 133510 expect behavior the navigation drawer have round corner like the navigation drawer 1 11 0 alpha01 screenshot 20230818 133417 minimal sample app repro catalog app android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 14 api 32
materialcomponentsmaterialcomponentsandroid
material3 have no equvalent
Bug
material 2 have shape define in xml in re that be usefull to create for instance an empty drawable like and where those drawable be use when an empty image be need be there any replacement for this behavior
materialcomponentsmaterialcomponentsandroid
button button md
Bug
as mention in the file I would like to modify all button style to have a green background and black font wrong xml right xml and my colorprimary can not be use correctly maybe my theme only use theme testapllication and no borderlessbuttonstyle materialbuttonoutlinedstyle materialbuttonstyle use theme testapllication and wrong themeoverlay app button use theme testapllication and right themeoverlay app button complete theme xml xml android api version 33 material library version 1 9 0 device redmi note 11 5 g
materialcomponentsmaterialcomponentsandroid
topappbar background color of action bar and collapse top app bar be slightly different from background color of top app bar
Bug
description the background color of the action bar and the collapse top app bar be slightly different from the background color of the top app bar and the bottom app bar screenshot 20230816 090428 the background color of the action bar be f6ebe3 screenshot 20230816 090323 the background color of the collapse top app bar be f4e8df screenshot 20230816 090202 screenshot 20230816 090218 the background color of the top app bar and the bottom app bar be ffeade expect behavior the background color of the action bar and the collapse top app bar be the same as the background color of the top app bar and the bottom app bar minimal sample app repro catalog app android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 14 api 32
materialcomponentsmaterialcomponentsandroid
topappbar manual lifting of app bar not work
Bug
description hi I think 2b476b3 have break manual lifting functionality in 1 11 0 alpha02 in alpha01 it s work as expect with liftonscroll disabled and a custom scroll behavior apply which call setlifte on specific scroll state the app bar stay unelevated now screenshot 20230815 010407 expect behavior the app bar should be liftable even without liftonscroll be turn on source code java appbar setliftonscroll false turn off auto lifting appbar setlifte true topappbar should be elevate now minimal sample app repro test appbar I ve create a demonstration of the issue with a small test app simply turn off the lift on scroll switch and notice that it doesn t matter now what state the lift switch have the topappbar stay unelevated when you change the mdc version to 1 11 0 alpha01 in libs version toml it work as expect android api version 34 material library version 1 11 0 alpha02 device pixel 6
materialcomponentsmaterialcomponentsandroid
modalbottomsheet on api 34 modal bottom sheet do not render shadow
Bug
description when run on android api 34 modal bottom sheet be not render the shadow on the content below when run on android api 33 and low shadow render as usual wrong behavior expect behavior source code class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main mybottomsheet show supportfragmentmanager mybottomsheet tag class mybottomsheet bottomsheetdialogfragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view inflater inflate r layout modal bottom sheet content container false companion object const val tag modalbottomsheet minimal sample app repro android api version android api 34 material library version 1 11 0 alpha01 device android studo pixel 7 api 34 emulator
materialcomponentsmaterialcomponentsandroid
bottomsheet modal bottom sheet no dim scrim of content underneath
Bug
description follow the basic description on how to use the modal bottom sheet there be no dimming of the content underneath the bottom sheet even though the image in bottomsheet md clearly show dim this document also describe the dimming as a scrim but there be no attribute expose to set the scrim I create a barebone app use the provide code in that doc but there be no dim expect behavior there should be dim or the ability to set the scrim of the content underneath the bottom sheet source code class modalbottomsheet bottomsheetdialogfragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view inflater inflate r layout modal bottom sheet content container false companion object const val tag modalbottomsheet val modalbottomsheet modalbottomsheet modalbottomsheet show supportfragmentmanager modalbottomsheet tag minimal sample app repro see code snippet android api version 33 material library version 1 9 0 device pixel 6 emulator
materialcomponentsmaterialcomponentsandroid
dynamiccolor dynamic color don t work with settheme
Bug
description dynamic theme doesn t work when use with settheme expect behavior dynamic color should work even after settheme be call source code java override protect void oncreate bundle savedinstancestate boolean amoledmode settingsrepository getsharedpreference this getboolean amoledmode false if amoledmode settheme r style theme app amole dynamiccolor applytoactivitiesifavailable this getapplication super oncreate savedinstancestate setcontentview r layout activity main the theme theme app amole have a parent base theme app which be the default theme set for the activity in the manifest minimal sample app repro na android api version 34 material library version 1 11 0 alpha01 device pixel 6 api 34
materialcomponentsmaterialcomponentsandroid
carousel hero strategy carousel alignment not find
Bug
while try to use material component carousel with hero strategy carousel alignment for xml and setcarouselalignment programmatically not find carousellayoutmanager setcarouselalignment carousellayoutmanager center material library version 1 11 0 alpha01
materialcomponentsmaterialcomponentsandroid
carousel divider be not correctly position in the vertical carousel when mid scroll
Bug
material library version
materialcomponentsmaterialcomponentsandroid
sidesheet modal sidesheet width
Bug
description currently there be no way to change the modal sidesheet width it work for standard and coplanar side sheet expect behavior modal sidesheet dialog should respect the content layout width android api version 33 material library version 1 8 0 device pixel c
materialcomponentsmaterialcomponentsandroid
error inflate class com google android material search searchbar
Bug
description can t use searchbar source code this be my layout and the basic theme theme materialcomponent light darkactionbar minimal sample app repro I ve upload an project at to reproduce this problem android api version min 31 target 33 material library version 1 9 0 device any to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
materialdivideritemdecoration null pointer issue
Bug
l327 l362 view child parent getchildat I these child might be null but it seem there be no fallback when that happen it could cause a nullpointerexception in shoulddrawdivider recyclerview getchildadapterposition child since that expect a nonnull child
materialcomponentsmaterialcomponentsandroid
rangeslider lable be stick in ui
Bug
description I be use rangeslider when I be scroll the layout rangeslider label be stick to the screen expect behavior label should not be suck source code screen recording 20230721 190518 webm screenshot 1689946328 android api version 33 material library version 1 11 0 alpha01 device pixel 6a
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder unable to configure dialog background color
Bug
description I m unable to change the background color of dialog create use materialalertdialogbuilder use the approach document at change the backgroundtint attribute as show in the example below do not change the color of the background as a side note the docs state that the default background color should be attr colorsurface whereas it appear to actually be a low opacity version of attr colorprimary be the doc incorrect here or be I misunderstand something expect behavior the background color should change base on the backgroundtint attribute in a custom materialalertdialogtheme overlay source code in the theme xml style themeoverlay app materialalertdialog the overlay xml material library version 1 10 0 alpha05
materialcomponentsmaterialcomponentsandroid
button iconbutton theme
Bug
guide do not say how to theme icon button icon button icon button button take ripple color from the app colorprimary but ignore that and any other default color property specify in materialthemeoverlay if the materialthemeoverlay be use then backgroundtint have to be set or it will error with the pink background style widget app iconbutton
materialcomponentsmaterialcomponentsandroid
bottomnavigationview constant expression require
Bug
description while I be use bottomnavigationview onnavigationitemselectedlistener get constant expression require issue in onnavigationitemselected method screenshot image source code override public boolean onnavigationitemselecte nonnull menuitem item switch item getitemid case r i d first log d tag onnavigationitemselecte 1 break case r i d second log d tag onnavigationitemselecte 2 break case r i d third log d tag onnavigationitemselecte 3 break return true android api version 11 material library version com google android material material 1 9 0 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
nestedscrollview bug nestedscrollview doesn t scroll horizontally for chip yet horizontalscrollview work fine
Bug
description full description of issue here I m try to show chip in a horizontal scroll container mean nestedscrollview with horizontal linearlayout and chip inside of the linearlayout expect behavior screenshot and or description of expect behavior to have it scrollable horizontally when I use horizontalscrollview instead it work fine studio64 2023 07 11 11 03 43 zip studio64 2023 07 11 11 08 27 zip source code the code snippet which be cause this issue same chip multiple time minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app my application zip android api version android api version here android 13 api 33 material library version material android library version you be use here e g 1 1 0 alpha07 sadly the new project wizard become a mess and I don t understand why this poor choice of use it this way and no option for we to avoid it so here version agp 8 2 0 alpha11 kotlin 1 8 21 core ktx 1 9 0 junit 4 13 2 androidx test ext junit 1 1 5 espresso core 3 5 1 appcompat 1 6 1 material 1 9 0 constraintlayout 2 1 4 navigation fragment ktx 2 6 0 navigation ui ktx 2 6 0 librarie core ktx group androidx core name core ktx version ref core ktx junit group junit name junit version ref junit androidx test ext junit group androidx test ext name junit version ref androidx test ext junit espresso core group androidx test espresso name espresso core version ref espresso core appcompat group androidx appcompat name appcompat version ref appcompat material group com google android material name material version ref material constraintlayout group androidx constraintlayout name constraintlayout version ref constraintlayout navigation fragment ktx group androidx navigation name navigation fragment ktx version ref navigation fragment ktx navigation ui ktx group androidx navigation name navigation ui ktx version ref navigation ui ktx plugin androidapplication i d com android application version ref agp kotlinandroid i d org jetbrains kotlin android version ref kotlin device device on which the bug be encounter here pixel 6
materialcomponentsmaterialcomponentsandroid
materialdivideritemdecoration it doesn t support gridlayoutmanager
Bug
description when gridlayoutmanager be use with materialdivideritemdecoration the divider be not draw base on the childview bounding but recyclerview bounding behave expect behavior expect source code bind recyclerview apply layoutmanager gridlayoutmanager this mainactivity 2 apply spansizelookup object gridlayoutmanager spansizelookup override fun getspansize position int int return when position 0 1 2 else 1 additemdecoration object materialdivideritemdecoration this mainactivity divideritemdecoration vertical override fun shoulddrawdivider position int adapter recyclerview adapter boolean return position in 1 until 1 additemdecoration object materialdivideritemdecoration this mainactivity divideritemdecoration horizontal override fun shoulddrawdivider position int adapter recyclerview adapter boolean return position 2 1 minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version 33 material library version 1 9 0 device emulator api 33 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
material 3 material 3 day night theme not inherit from system theme
Bug
I be use this theme as my app theme
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomnavigationview bottomnav get out of sync with navigationcomponent
Bug
description on the late version of the androidx navigation librarie 2 6 0 the bottom bar can become out of sync if the user quickly shift through page I ve attach a video and a sample project but the issue reproduce quite easily in the android studio template bottom navigation view activity in the video in the very last frame the navigation library have pop back to the home fragment but the bottom bar clearly indicate the notification fragment archive zip note the video may seem like an edge case but I m get this a lot it s really not hard for a user to end up in this state android api version at least android 11 android 13 both exhibit this behavior material library version 1 9 0 device reproducible on emulator and all device I have try pixel 3 pixel 6 pro etc
materialcomponentsmaterialcomponentsandroid
bottomnavigation bad link in documentation
Bug
in the documentation page for the bottomnavigation all see all state link be bad link to non exist file I have also some doubt about the information in the related table cell be up to date
materialcomponentsmaterialcomponentsandroid
bottomappbar unexpected height increase when ime be show
Bug
description whenever an ime be show bottomappbar would expand its height to cover all other ui element expect behavior there should not be any change in height source code minimal sample app repro android api version api 33 material library version 1 9 0 device google pixel emulator
materialcomponentsmaterialcomponentsandroid
textinputlayout endicon prevent textinputlayout resizing after clear multiline text
Bug
description 1 setup textinputlayout with app endiconmode clear text 2 insert or print long text without new line separator for instance aaaaaaaaaaaaa or aa dfg sdf multiple time until multiple wrapping to the next line 3 clear focus from textinputedittext textinputlayout 4 focus on textinputedittext again and clear all text via endicon or software keyboard expect result textinputlayout be resize to its initial height actual result textinputlayout be stick with current height textinputlayoutwrongresize problem happen only if textinputlayout be lose focus otherwise it s resize correctly after some researh I figure out that after lose focus edittext have wrong mminheight as far as I understand problem be in private boolean updateedittextheightbasedonicon in textinputlayout java we need to make sure that the edittext s height be at least the same as the end or start icon s height whichever be big this ensure focus work properly and there be no visual jump if the icon be enable disabled int maxiconheight math max endlayout getmeasuredheight startlayout getmeasuredheight if edittext getmeasuredheight maxiconheight edittext setminimumheight maxiconheight return true source code minimal sample app repro android api version test on api 30 32 33 material library version 1 9 0 device emulator tcl 306 motorola g9
materialcomponentsmaterialcomponentsandroid
navigation bar doesen t fire onitemselecte event
Bug
description I m use the navigation bar in my main fragment and I set the onitemselectedlistener to manage the navigation of the inner fragment when I click the menu item the navigation doesn t work in fact nothing be print in the log with the istruction in my code below source code val bottomnavview bottomnavigationview bind homebottomnavview val navcontroller childfragmentmanager findfragmentbyid r i d home nav host fragment findnavcontroller bottomnavview setonitemselectedlistener log d test it itemid tostre when it itemid r i d navigation feed showfragment feedfragment r i d navigation search showfragment searchfragment r i d navigation notification showfragment notificationfragment r i d navigation profile showfragment profilefragment else false android api version 32 material library version 1 9 0 device oneplus nord 2 5 g with android 13
materialcomponentsmaterialcomponentsandroid
app win t build against api 34 w 1 10 0 alpha03
Bug
today android s api 34 go stable however when comple with compilesdk 34 we see an issue be find when check aar metadata 1 dependency com google android material material 1 10 0 alpha03 require library and application that depend on it to compile against codename upsidedowncake of the android apis app be currently compile against android 34 recommend action use a different version of dependency com google android material material 1 10 0 alpha03 or set compilesdkpreview to upsidedowncake in your build gradle file if you intend to experiment with that preview sdk can you make an alpha 04 or whatever or be there a workaround in build gradle kts to ignore this for now
materialcomponentsmaterialcomponentsandroid
materialdatepicker unable to change current date s style
Bug
description with the source code provide below the current date s style remain unchanged compare to default expect behavior outline color width change from default source code in a module s style xml file I have the following define in my fragment if datepickerdialog null datepickerdialog materialdatepicker builder datepicker settheme r style somefragmentdatepicker setselection materialdatepicker todayinutcmillisecond build datepickerdialog addonpositivebuttonclicklistener selection todo datepickerdialog show getparentfragmentmanager somefragment note to reproduce after dialog open change the select date from any other date than today since current default be that dialog open with today select android api version android api 28 and 33 material library version material android library version 1 8 0 device pixel 4 pixel 6
materialcomponentsmaterialcomponentsandroid
materialdatepicker unable to apply rounded corner to dialog
Bug
description with the source code provide below dialog shape do not change from default expect behavior corner of dialog be more rounded out source code in a module s style xml file I have the following define in my fragment if datepickerdialog null datepickerdialog materialdatepicker builder datepicker settheme r style somefragmentdatepicker setselection materialdatepicker todayinutcmillisecond build datepickerdialog addonpositivebuttonclicklistener selection todo datepickerdialog show getparentfragmentmanager somefragment note use shapeappearancecornerextralarge as per guidance here android api version android api 28 and 33 material library version material android library version 1 8 0 device pixel 4 pixel 6
materialcomponentsmaterialcomponentsandroid
materialtimepicker keyboard be not hide after switch from keyboard to clock mode
Bug
after click the clock icon in the materialtimepickerdialog the keyboard remain open which be annoying for the user in the clock mode the keyboard be not need and it should be hide as soon as the clock screen appear
materialcomponentsmaterialcomponentsandroid
fatal exception android app remoteserviceexception badforegroundservicenotificationexception
Bug
this be a serious problem description minimal sample app repro it s only know from firebase crashlytic dashboard it be not reproduce on my device android api version android api version here min 21 target 33 error api level 33 material library version version 1 2 0 device samsung android 13 all device
materialcomponentsmaterialcomponentsandroid
material component for android short description of request
Invalid
be your feature request relate to a problem please describe a clear and concise description of what the problem be describe the solution you d like a clear and concise description of what you want to happen describe alternative you ve consider a clear and concise description of any alternative solution or feature you ve consider additional context add any other context or screenshot about the feature request here we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
how do you add change material slider range start string
Bug
hi we want to add more translation for material slider range start material slider range end and material slider value see l19 they be seem to be fix private string startorenddescription int virtualviewid l2842 can they be change at all
materialcomponentsmaterialcomponentsandroid
bottom sheet inset animation when keyboard be show should be opt in
Bug
description version 1 9 of the library be recently release and contain this change add animation for bottom sheet position when keyboard be show use windowinsetsanimationcompat api see this break our app because we already have a global inset animation that animate every view on the screen as such we have to do a special case where we see the inset animator to null with the bottom sheet the line that set the inset animator be here diff 968577e4c5ac2c623d4d51c388472c0cdd786ae7497f13cf6c26e9e11df655cd expect behavior the bottomsheetbehavior should set the inset animation only if configure to do so material library version 1 9 I open this bug to start the discussion and ask for feedback I haven t provide source code or minimal sample app repro I think the description be pretty clear but I would be happy to provide an example
materialcomponentsmaterialcomponentsandroid
can t determine type for tag attr shapeappearancecornersmall
Bug
com android build gradle task resourceexception c gradle gradle 7 0 1 cache transform 3 6f10da6a468c8477fa2a8b2862dd4178 transform material 1 9 0 re value value xml error can t determine type for tag attr shapeappearancecornersmall at com android build gradle task mergeresource dofulltaskaction mergeresource java 364 at com android build gradle task mergeresource dotaskaction mergeresource java 438 at com android build gradle internal task newincrementaltask taskaction inline recordtaskaction 1 invoke basetask kt 66 at com android build gradle internal task block recordspan block java 51 at com android build gradle internal task newincrementaltask taskaction newincrementaltask kt 45 at java base jdk internal reflect nativemethodaccessorimpl invoke0 native method at java base jdk internal reflect nativemethodaccessorimpl invoke nativemethodaccessorimpl java 62 at java base jdk internal reflect delegatingmethodaccessorimpl invoke delegatingmethodaccessorimpl java 43 at java base java lang reflect method invoke method java 566 at org gradle internal reflect javamethod invoke javamethod java 104 at org gradle api internal project taskfactory incrementalinputstaskaction doexecute incrementalinputstaskaction java 32 at org gradle api internal project taskfactory standardtaskaction execute standardtaskaction java 51 at org gradle api internal project taskfactory abstractincrementaltaskaction execute abstractincrementaltaskaction java 25 at org gradle api internal project taskfactory standardtaskaction execute standardtaskaction java 29 at org gradle api internal task execution executeactionstaskexecuter 2 run executeactionstaskexecuter java 498 at org gradle internal operation defaultbuildoperationrunner 1 execute defaultbuildoperationrunner java 29 at org gradle internal operation defaultbuildoperationrunner 1 execute defaultbuildoperationrunner java 26 at org gradle internal operation defaultbuildoperationrunner 3 execute defaultbuildoperationrunner java 75 at org gradle internal operation defaultbuildoperationrunner 3 execute defaultbuildoperationrunner java 68 at org gradle internal operation defaultbuildoperationrunner execute defaultbuildoperationrunner java 153 at org gradle internal operation defaultbuildoperationrunner execute defaultbuildoperationrunner java 68 at org gradle internal operation defaultbuildoperationrunner run defaultbuildoperationrunner java 56 at org gradle internal operation defaultbuildoperationexecutor lambda run 1 defaultbuildoperationexecutor java 71 at org gradle internal operation unmanagedbuildoperationwrapper runwithunmanagedsupport unmanagedbuildoperationwrapper java 45 at org gradle internal operation defaultbuildoperationexecutor run defaultbuildoperationexecutor java 71 at org gradle api internal task execution executeactionstaskexecuter executeaction executeactionstaskexecuter java 483 at org gradle api internal task execution executeactionstaskexecuter executeaction executeactionstaskexecuter java 466 at org gradle api internal task execution executeactionstaskexecuter access 300 executeactionstaskexecuter java 105 at org gradle api internal task execution executeactionstaskexecuter taskexecution executewithpreviousoutputfile executeactionstaskexecuter java 270 at org gradle api internal task execution executeactionstaskexecuter taskexecution execute executeactionstaskexecuter java 248 at org gradle internal execution step executestep executeinternal executestep java 83 at org gradle internal execution step executestep access 000 executestep java 37 at org gradle internal execution step executestep 1 call executestep java 50 at org gradle internal execution step executestep 1 call executestep java 47 at org gradle internal operation defaultbuildoperationrunner callablebuildoperationworker execute defaultbuildoperationrunner java 200 at org gradle internal operation defaultbuildoperationrunner callablebuildoperationworker execute defaultbuildoperationrunner java 195 at org gradle internal operation defaultbuildoperationrunner 3 execute defaultbuildoperationrunner java 75 at org gradle internal operation defaultbuildoperationrunner 3 execute defaultbuildoperationrunner java 68 at org gradle internal operation defaultbuildoperationrunner execute defaultbuildoperationrunner java 153 at org gradle internal operation defaultbuildoperationrunner execute defaultbuildoperationrunner java 68 at org gradle internal operation defaultbuildoperationrunner call defaultbuildoperationrunner java 62 at org gradle internal operation defaultbuildoperationexecutor lambda call 2 defaultbuildoperationexecutor java 76 at org gradle internal operation unmanagedbuildoperationwrapper callwithunmanagedsupport unmanagedbuildoperationwrapper java 54 at org gradle internal operation defaultbuildoperationexecutor call defaultbuildoperationexecutor java 76 at org gradle internal execution step executestep execute executestep java 47 at org gradle internal execution step executestep execute executestep java 37 at org gradle internal execution step removepreviousoutputsstep execute removepreviousoutputsstep java 68 at org gradle internal execution step removepreviousoutputsstep execute removepreviousoutputsstep java 38 at org gradle internal execution step resolveinputchangesstep execute resolveinputchangesstep java 50 at org gradle internal execution step resolveinputchangesstep execute resolveinputchangesstep java 36 at org gradle internal execution step cancelexecutionstep execute cancelexecutionstep java 41 at org gradle internal execution step timeoutstep executewithouttimeout timeoutstep java 74 at org gradle internal execution step timeoutstep execute timeoutstep java 55 at org gradle internal execution step createoutputsstep execute createoutputsstep java 51 at org gradle internal execution step createoutputsstep execute createoutputsstep java 29 at org gradle internal execution step capturestateafterexecutionstep execute capturestateafterexecutionstep java 54 at org gradle internal execution step capturestateafterexecutionstep execute capturestateafterexecutionstep java 35 at org gradle internal execution step broadcastchangingoutputsstep execute broadcastchangingoutputsstep java 60 at org gradle internal execution step broadcastchangingoutputsstep execute broadcastchangingoutputsstep java 27 at org gradle internal execution step buildcachestep executewithoutcache buildcachestep java 174 at org gradle internal execution step buildcachestep execute buildcachestep java 74 at org gradle internal execution step buildcachestep execute buildcachestep java 45 at org gradle internal execution step storeexecutionstatestep execute storeexecutionstatestep java 40 at org gradle internal execution step storeexecutionstatestep execute storeexecutionstatestep java 29 at org gradle internal execution step recordoutputsstep execute recordoutputsstep java 36 at org gradle internal execution step recordoutputsstep execute recordoutputsstep java 22 at org gradle internal execution step skipuptodatestep executebecause skipuptodatestep java 99 at org gradle internal execution step skipuptodatestep lambda execute 0 skipuptodatestep java 92 at java base java util optional map optional java 265 at org gradle internal execution step skipuptodatestep execute skipuptodatestep java 52 at org gradle internal execution step skipuptodatestep execute skipuptodatestep java 36 at org gradle internal execution step resolvechangesstep execute resolvechangesstep java 84 at org gradle internal execution step resolvechangesstep execute resolvechangesstep java 41 at org gradle internal execution step legacy marksnapshottinginputsfinishedstep execute marksnapshottinginputsfinishedstep java 37 at org gradle internal execution step legacy marksnapshottinginputsfinishedstep execute marksnapshottinginputsfinishedstep java 27 at org gradle internal execution step resolvecachingstatestep execute resolvecachingstatestep java 91 at org gradle internal execution step resolvecachingstatestep execute resolvecachingstatestep java 49 at org gradle internal execution step capturestatebeforeexecutionstep execute capturestatebeforeexecutionstep java 78 at org gradle internal execution step capturestatebeforeexecutionstep execute capturestatebeforeexecutionstep java 49 at org gradle internal execution step validatestep execute validatestep java 105 at org gradle internal execution step validatestep execute validatestep java 50 at org gradle internal execution step skipemptyworkstep lambda execute 2 skipemptyworkstep java 86 at java base java util optional orelseget optional java 369 at org gradle internal execution step skipemptyworkstep execute skipemptyworkstep java 86 at org gradle internal execution step skipemptyworkstep execute skipemptyworkstep java 32 at org gradle internal execution step legacy marksnapshottinginputsstartedstep execute marksnapshottinginputsstartedstep java 38 at org gradle internal execution step loadexecutionstatestep execute loadexecutionstatestep java 43 at org gradle internal execution step loadexecutionstatestep execute loadexecutionstatestep java 31 at org gradle internal execution step assignworkspacestep lambda execute 0 assignworkspacestep java 40 at org gradle api internal task execution executeactionstaskexecuter taskexecution 2 withworkspace executeactionstaskexecuter java 283 at org gradle internal execution step assignworkspacestep execute assignworkspacestep java 40 at org gradle internal execution step assignworkspacestep execute assignworkspacestep java 30 at org gradle internal execution step identitycachestep execute identitycachestep java 37 at org gradle internal execution step identitycachestep execute identitycachestep java 27 at org gradle internal execution step identifystep execute identifystep java 49 at org gradle internal execution step identifystep execute identifystep java 35 at org gradle internal execution impl defaultexecutionengine 1 execute defaultexecutionengine java 76 at org gradle api internal task execution executeactionstaskexecuter executeifvalid executeactionstaskexecuter java 184 at org gradle api internal task execution executeactionstaskexecuter execute executeactionstaskexecuter java 173 at org gradle api internal task execution cleanupstaleoutputsexecuter execute cleanupstaleoutputsexecuter java 109 at org gradle api internal task execution finalizepropertiestaskexecuter execute finalizepropertiestaskexecuter java 46 at org gradle api internal task execution resolvetaskexecutionmodeexecuter execute resolvetaskexecutionmodeexecuter java 51 at org gradle api internal task execution skiptaskwithnoactionsexecuter execute skiptaskwithnoactionsexecuter java 57 at org gradle api internal task execution skiponlyiftaskexecuter execute skiponlyiftaskexecuter java 56 at org gradle api internal task execution catchexceptiontaskexecuter execute catchexceptiontaskexecuter java 36 at org gradle api internal task execution eventfiringtaskexecuter 1 executetask eventfiringtaskexecuter java 77 at org gradle api internal task execution eventfiringtaskexecuter 1 call eventfiringtaskexecuter java 55 at org gradle api internal task execution eventfiringtaskexecuter 1 call eventfiringtaskexecuter java 52 at org gradle internal operation defaultbuildoperationrunner callablebuildoperationworker execute defaultbuildoperationrunner java 200 at org gradle internal operation defaultbuildoperationrunner callablebuildoperationworker execute defaultbuildoperationrunner java 195 at org gradle internal operation defaultbuildoperationrunner 3 execute defaultbuildoperationrunner java 75 at org gradle internal operation defaultbuildoperationrunner 3 execute defaultbuildoperationrunner java 68 at org gradle internal operation defaultbuildoperationrunner execute defaultbuildoperationrunner java 153 at org gradle internal operation defaultbuildoperationrunner execute defaultbuildoperationrunner java 68 at org gradle internal operation defaultbuildoperationrunner call defaultbuildoperationrunner java 62 at org gradle internal operation defaultbuildoperationexecutor lambda call 2 defaultbuildoperationexecutor java 76 at org gradle internal operation unmanagedbuildoperationwrapper callwithunmanagedsupport unmanagedbuildoperationwrapper java 54 at org gradle internal operation defaultbuildoperationexecutor call defaultbuildoperationexecutor java 76 at org gradle api internal task execution eventfiringtaskexecuter execute eventfiringtaskexecuter java 52 at org gradle execution plan localtasknodeexecutor execute localtasknodeexecutor java 74 at org gradle execution taskgraph defaulttaskexecutiongraph invokenodeexecutorsaction execute defaulttaskexecutiongraph java 408 at org gradle execution taskgraph defaulttaskexecutiongraph invokenodeexecutorsaction execute defaulttaskexecutiongraph java 395 at org gradle execution taskgraph defaulttaskexecutiongraph buildoperationawareexecutionaction execute defaulttaskexecutiongraph java 388 at org gradle execution taskgraph defaulttaskexecutiongraph buildoperationawareexecutionaction execute defaulttaskexecutiongraph java 374 at org gradle execution plan defaultplanexecutor executorworker lambda run 0 defaultplanexecutor java 127 at org gradle execution plan defaultplanexecutor executorworker execute defaultplanexecutor java 191 at org gradle execution plan defaultplanexecutor executorworker executenextnode defaultplanexecutor java 182 at org gradle execution plan defaultplanexecutor executorworker run defaultplanexecutor java 124 at org gradle internal concurrent executorpolicy catchandrecordfailure onexecute executorpolicy java 64 at org gradle internal concurrent managedexecutorimpl 1 run managedexecutorimpl java 48 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at org gradle internal concurrent threadfactoryimpl managedthreadrunnable run threadfactoryimpl java 56 at java base java lang thread run thread java 834
materialcomponentsmaterialcomponentsandroid
dynamiccolor applytoactivityifavailable result in activy restart in a loop when use together with applyoverrideconfiguration and androidx per app language on api 31 32
Bug
description give an activity that set per app language via appcompat androidx impl and use applyoverrideconfiguration in order to set a custom configuration e g set fontscale if in addition you want to set a content base dynamic color the activity be restart in a loop this happen on android 12 only since on android 13 the framework per app language support be use expect behavior it should be possible to configure an activity with a custom fontscale a custom language and a content base dynamic color interestingly combine content base dynamic color with a custom language without use applyoverrideconfiguration work and combine content base dynamic color with applyoverrideconfiguration without set a custom language work I have create a sample app that set a content base color on first launch no language and font scale customization happen both can be activate via 2 button as soon as both customization be apply app start to enter a continuous loop of recreation source code minimal sample app repro android api version 31 32 material library version 1 10 0 alpha03
materialcomponentsmaterialcomponentsandroid
search component issue
Bug
please reopen the issue list below as they definitely exist and be definitely reproducible 0 09 0 19 0 20 0 29 0 33 0 42 0 46 0 57 material library version master device pixel 4 api 27 emulator
materialcomponentsmaterialcomponentsandroid
tab tablayout render problem
Bug
description tablayout can not be preview on layout inspector edit mode when use material library version 1 7 0 render problem java lang nullpointerexception can not invoke android content re bridgetypedarray settheme android content re resource theme because ta be null at android content re resource theme delegate obtainstyledattribute resource theme delegate java 74 at android content re resource theme obtainstyledattribute resource java 1631 at android content context obtainstyledattribute context java 874 at android widget textview settextappearance textview java 3965 at androidx appcompat widget appcompattextview settextappearance appcompattextview java 216 at com google android material textview materialtextview settextappearance materialtextview java 106 at android widget textview settextappearance textview java 3954 at androidx core widget textviewcompat settextappearance textviewcompat java 289 at com google android material tabs tablayout tabview updatetab tablayout java 2824 at com google android material tabs tablayout tabview update tablayout java 2853 at com google android material tabs tablayout tabview settab tablayout java 2765 at com google android material tabs tablayout createtabview tablayout java 1725 at com google android material tabs tablayout newtab tablayout java 1008 at com google android material tabs tablayout addtabfromitemview tablayout java 876 at com google android material tabs tablayout addviewinternal tablayout java 1782 at com google android material tabs tablayout addview tablayout java 1772 at android view layoutinflater rinflate original layoutinflater java 1131 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate original layoutinflater java 1130 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 505 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 353 at com android layoutlib bridge bridge createsession bridge java 450 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 122 at com android tool idea render rendertask createrendersession rendertask java 727 at com android tool idea render rendertask lambda inflate 9 rendertask java 884 at com android tool idea render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 195 at com android tool idea render renderexecutor priorityrunnable run renderexecutor kt 293 at java base java util concurrent threadpoolexecutor runworker unknown source at java base java util concurrent threadpoolexecutor worker run unknown source at java base java lang thread run unknown source material library version 1 9 0
materialcomponentsmaterialcomponentsandroid
navigationview menu item mark as check appear with bold text since the 1 8 0 alpha03 release
Bug
description menu item mark as check appear with bold text since the 1 8 0 alpha03 release expect behaviour menu item mark as check appear without bold text as in the 1 7 0 and early release minimal sample app repro I ve put together a minimal app that demonstrate the issue here run the app as be and tap on the menu item to toggle they between check and unchecked state you ll see that check and unchecked menu item appear without bold text as follow screenshotbefore then upgrade the material library from version 1 7 0 to 1 8 0 or 1 9 0 here l39 this time you ll see that check menu item appear with bold text as follow screenshotafter android api version I be see this behaviour for app target api level 33 I e android 13 material library version I be see the change in behaviour since the 1 8 0 alpha03 release device all device the issue be agnostic of device if the change in behaviour be intentional I d appreciate it if somebody can guide I on how to instruct the navigationview to not show check menu item with bold text
materialcomponentsmaterialcomponentsandroid
component name switch not run
Bug
java java lang runtimeexception unable to start activity componentinfo com my newproject2 com my newproject2 mainactivity android view inflateexception binary xml file line 61 in com my newproject2 layout main binary xml file line 61 in com my newproject2 layout main error inflate class com google android material materialswitch materialswitch at android app activitythread performlaunchactivity activitythread java 3846 at android app activitythread handlelaunchactivity activitythread java 4022 at android app servertransaction launchactivityitem execute launchactivityitem java 85 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2336 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 246 at android app activitythread main activitythread java 8653 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 602 at com android internal os zygoteinit main zygoteinit java 1130 cause by android view inflateexception binary xml file line 61 in com my newproject2 layout main binary xml file line 61 in com my newproject2 layout main error inflate class com google android material materialswitch materialswitch cause by android view inflateexception binary xml file line 61 in com my newproject2 layout main error inflate class com google android material materialswitch materialswitch cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 852 at android view layoutinflater createviewfromtag layoutinflater java 1004 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate layoutinflater java 1121 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater rinflate layoutinflater java 1124 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater rinflate layoutinflater java 1124 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater rinflate layoutinflater java 1124 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 532 at android view layoutinflater inflate layoutinflater java 479 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 706 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 195 at com my newproject2 mainactivity oncreate mainactivity java 64 at android app activity performcreate activity java 8207 at android app activity performcreate activity java 8191 at android app instrumentation callactivityoncreate instrumentation java 1309 at android app activitythread performlaunchactivity activitythread java 3819 at android app activitythread handlelaunchactivity activitythread java 4022 at android app servertransaction launchactivityitem execute launchactivityitem java 85 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2336 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 246 at android app activitythread main activitythread java 8653 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 602 at com android internal os zygoteinit main zygoteinit java 1130 cause by java lang nosuchmethoderror no static method getuncheckedstate I I in class lcom google android material drawable drawableutil or its super class declaration of com google android material drawable drawableutil appear in base apk classes37 dex at com google android material materialswitch materialswitch oncreatedrawablestate materialswitch java 141 at android view view getdrawablestate view java 25122 at android view view setbackgrounddrawable view java 25383 at android view view setbackground view java 25312 at android view view view java 6461 at android widget textview textview java 1247 at android widget button button java 174 at android widget compoundbutton compoundbutton java 113 at android widget compoundbutton compoundbutton java 109 at androidx appcompat widget switchcompat switchcompat java 247 at com google android material materialswitch materialswitch materialswitch java 82 at com google android material materialswitch materialswitch materialswitch java 78 34 more hello when I install the switch an error occur in my project my appcompat version be 1 6 1
materialcomponentsmaterialcomponentsandroid
bottomsheet background color not work when set to white ffffff
Bug
description I be try to set the background color of the bottom sheet to ffffff but when I set this color to the colorsurface to the bottom sheet s style it be not work whereas other any color be properly set android api version 33 material library version 1 9 0 source code scenario 1 white check mark style xml xml scenario 2 x style xml xml problem as you can clearly see that in scenario 1 be bottom sheet bg color ffd5d5 be properly set but for scenario 2 the bg color be set to ffffff which be pure white but in the bottom sheet bg its showing as the light version of my app s primary color 6e37cc this issue be very weird any help would be appreciate cc drchen jakewharton
materialcomponentsmaterialcomponentsandroid
material3 dialogwhenlarge activity show as dialogue even on non large device
Bug
the dialogwhenlarge theme in material3 be break it no long behave like material2 appcompat or platform dialogwhenlarge theme use theme material3 daynight dialogwhenlarge on a pixel2 emulator I get screenshot 1684144553 expect behavior content should be show as normal window on phone as dialogue on large device tablet material library version 1 9 0 device pixel2 emulator
materialcomponentsmaterialcomponentsandroid
materialdatepicker materialdatepicker crash with mode input mode text
Bug
description step to reproduce it build a materialdatepicker with inputmode materialdatepicker input mode text crash happen expect behavior open materialdatepicker without crash source code kotlin class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontent apptheme surface modifier modifier fillmaxsize color materialtheme colorscheme background datepicker composable private fun datepicker val activity localcontext current as appcompatactivity materialdatepicker builder datepicker apply settitletext title setinputmode materialdatepick input mode text build run show activity supportfragmentmanager fragmenttag minimal sample app repro you can find a sample project here android api version android api 30 material library version material com google android material material 1 9 0 jetpack compose version 1 5 0 alpha04 jetpack compose component use com google android material datepicker materialdatepicker android studio build android studio flamingo 2022 2 1 patch 1 build ai 222 4459 24 2221 9971841 build on april 19 2023 kotlin version 1 8 20 device android device emulator with api version 30 stack trace fatal exception main process com jarroyo datepickerissue pid 7601 java lang nullpointerexception attempt to invoke virtual method android content context android view view getcontext on a null object reference at androidx core view softwarekeyboardcontrollercompat impl30 hide softwarekeyboardcontrollercompat java 220 at androidx core view softwarekeyboardcontrollercompat hide softwarekeyboardcontrollercompat java 81 at androidx core view windowinsetscontrollercompat impl30 hide windowinsetscontrollercompat java 633 at androidx core view windowinsetscontrollercompat hide windowinsetscontrollercompat java 189 at com google android material internal viewutil hidekeyboard viewutil java 91 at com google android material internal viewutil hidekeyboard viewutil java 84 at com google android material datepicker dateselector lambda showkeyboardwithautohidebehavior 0 dateselector java 142 at com google android material datepicker dateselector externalsyntheticlambda0 onfocuschange unknown source 2 at android view view onfocuschanged view java 8116 at android widget textview onfocuschanged textview java 10839 at android view view clearfocusinternal view java 7953 at android view view clearfocus view java 7932 at android view viewgroup clearfocus viewgroup java 1188 at android view viewgroup clearfocus viewgroup java 1188 at android view viewgroup clearfocus viewgroup java 1188 at android view view setflag view java 16165 at android view view setvisibility view java 11719 at androidx fragment app specialeffectscontroller fragmentstatemanageroperation onstart specialeffectscontroller java 736 at androidx fragment app specialeffectscontroller forcecompletealloperation specialeffectscontroller java 308 at androidx fragment app specialeffectscontroller executependingoperation specialeffectscontroller java 267 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 2202 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 2100 at androidx fragment app fragmentmanager execsingleaction fragmentmanager java 1971 at androidx fragment app backstackrecord commitnow backstackrecord java 305 at com google android material datepicker materialdatepicker startpickerfragment materialdatepicker java 454 at com google android material datepicker materialdatepicker onstart materialdatepicker java 353 at androidx fragment app fragment performstart fragment java 3021 at androidx fragment app fragmentstatemanager start fragmentstatemanager java 589 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 300 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 2189 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 2100 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 2002 at androidx fragment app fragmentmanager 5 run fragmentmanager java 524 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 223 at android app activitythread main activitythread java 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947 send signal pid 7601 sig 9
materialcomponentsmaterialcomponentsandroid
datepicker keyboard in landscape hide content
Bug
description datepicker for full screen on landscape work incorrectly with keyboard on it hide start date and end date field image expect behavior start date and end date field should be visible and accessible in landscape mode image android api version android api 33 material library version 1 3 0 device pixel 7 pro
materialcomponentsmaterialcomponentsandroid
localisation localisation be not change with appcompatdelegate setapplicationlocale
Bug
description I have 2 language in app I change they with appcompatdelegate setapplicationlocales localelistcompat on dialogue click on api version 33 it work as intend but on api version 28 it work like this when I choose language 1 it set localisation to language 1 but material component string stay on previous language start state on first app run it set appcompatedelegate language base on phone locale localisation language 1 material component language 1 so after first change it will be in a situation like this localisation language 2 material component language 1 on next change it will be localisation language 1 material component language 2 and so on it be always one change or one refresh behind android api version 28 material library version 1 6 1 try it with 1 9 0 and still doesn t work device pixel 3 emulator with api 28 and samsung galaxy s8 api 28
materialcomponentsmaterialcomponentsandroid
materialtheme splashscreen illegalstateexception after update from material 1 8 0 to 1 9 0
Bug
application crash at splash screen after update material dependency from 1 8 0 to 1 9 0 relate dependency splash screen androidx core core splashscreen 1 0 1 appcompat version be 1 6 1 activityktx version be 1 7 1 I have try play around with splash screen but I have not figure out what change after switch dependency to 1 9 0 fatal exception main process pid 18630 java lang runtimeexception unable to start activity componentinfo mainactivity java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at android app activitythread performlaunchactivity activitythread java 3645 at android app activitythread handlelaunchactivity activitythread java 3782 at android app servertransaction launchactivityitem execute launchactivityitem java 101 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2307 at android os handler dispatchmessage handler java 106 at android os looper looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7872 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 at com android internal os zygoteinit main zygoteinit java 936 cause by java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at androidx appcompat app appcompatdelegateimpl createsubdecor sourcefile 926 at androidx appcompat app appcompatdelegateimpl ensuresubdecor sourcefile 889 at androidx appcompat app appcompatdelegateimpl setcontentview sourcefile 772 at androidx appcompat app appcompatactivity setcontentview sourcefile 197 at mainactivity oncreate sourcefile 76 at android app activity performcreate activity java 8305 at android app activity performcreate activity java 8284 at android app instrumentation callactivityoncreate instrumentation java 1417 at android app activitythread performlaunchactivity activitythread java 3626 at android app activitythread handlelaunchactivity activitythread java 3782 at android app servertransaction launchactivityitem execute launchactivityitem java 101 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2307 at android os handler dispatchmessage handler java 106 at android os looper looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7872 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 at com android internal os zygoteinit main zygoteinit java 936 class mainactivity appcompatactivity r layout activity main override fun oncreate savedinstancestate bundle installsplashscreen setkeeponscreencondition crash here condition on view model state super oncreate savedinstancestate
materialcomponentsmaterialcomponentsandroid
ci travis ci build badge show build not find
Bug
readme include a fail travis ci badge image link to the domain be address be travis ci org and state start june 2021 travis ci org be disabled and therefore no long support please use travis ci com suggestion either remove the badge or replace it with a work badge for an active ci provider
materialcomponentsmaterialcomponentsandroid
bottomsheetscaffold not effect bottomsheetstate initialvalue to sheetvalue hide on harmonyos
Bug
description 1 define bottomsheetscaffold state in viewmodel val bottomsheetscaffoldstate bottomsheetscaffoldstate bottomsheetscaffoldstate bottomsheetstate sheetstate skippartiallyexpande false initialvalue sheetvalue hide skiphiddenstate false snackbarhoststate snackbarhoststate 3 run the app and find that sheetcontent be display at first expect behavior the sheetcontent of bottomsheetscaffold should be hide during initialization material library version androidx compose material3 material3 1 1 0 rc01 device harmonyos device
materialcomponentsmaterialcomponentsandroid
tab problem with the animation of tab switching with viewpager or viewpager2
Bug
description problem with the animation of tab switching with viewpager or viewpager2 expect behavior when tablayout be bind to viewpager or viewpager2 the transition animation have a bug that reach the end instantaneously notice this bug be not find in com google android material material 1 5 0 and be a new bug after 1 8 0 I ve find out this can t be a viewpager or viewpager2 s bug because I fallback to the dependency version com google android material material 1 5 0 would fix it here s what happen when the bug occur here s be the expect behavior source code in the viewpager s onpagechangecallback kotlin override fun onpagescrolle position int positionoffset float positionoffsetpixel int val updatetext scrollstate viewpager scroll state settle previousscrollstate viewpager scroll state drag val updateindicator scrollstate viewpager scroll state settle previousscrollstate viewpager scroll state idle bind the tab layout here tablayout setscrollposition position positionoffset updatetext updateindicator android api version android 13 api 33 material library version com google android material material 1 10 0 alpha02 already test 1 9 0 and 1 8 0
materialcomponentsmaterialcomponentsandroid
tabitem cause render problem
Bug
description I m use a tablayout in my xml and 2 tabitem s but when use material version 1 8 0 and 1 9 0 list below I get a render problem but when I comment out the tabitem s everything render fine when use version 1 7 0 this render problem be fix expect behavior xml preview should render show the tab layout with its item source code android api version android api version 33 material library version com google android material material 1 9 0 and also com google android material material 1 8 0 device not for a device for xml preview
materialcomponentsmaterialcomponentsandroid
slider new style from new mediaplayer tiramisu
Duplicate
be your feature request relate to a problem please describe no describe the solution you d like have a custom slider style that look like a slider from the new mediaplayer describe alternative you ve consider maybe the new component for it s with method for stop and start animation additional context
materialcomponentsmaterialcomponentsandroid
shadowdrawablewrapper proguard complain it can t find drawablewrapper class from appcompat
Bug
description when I use material component android 1 8 0 and appcompat 1 6 1 I will get the follow proguard error warn com google android material shadow shadowdrawablewrapper can t find superclass or interface androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference method android graphic drawable drawable getwrappeddrawable in program class com google android material shadow shadowdrawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference method android graphic rect getbound in program class com google android material shadow shadowdrawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference method void invalidateself in program class com google android material shadow shadowdrawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapperuse sandbox debug to see verbose message from the sandbox and retain the sandbox build root for debug warning com google android material shadow shadowdrawablewrapper can t find superclass or interface androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference method android graphic drawable drawable getwrappeddrawable in program class com google android material shadow shadowdrawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference method android graphic rect getbound in program class com google android material shadow shadowdrawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference method void invalidateself in program class com google android material shadow shadowdrawablewrapper warning com google android material shadow shadowdrawablewrapper can t find reference class androidx appcompat graphic drawable drawablewrapper I believe the error be that material component android currently depend on drawablewrapper from appcompat l43 however in appcompat 1 6 1 it seem like the drawablewrapper class be remove and rename to drawablewrappercompat therefore I think the solution here would be to update material component android to depend on appcompat 1 6 1 and drawablewrappercompat
materialcomponentsmaterialcomponentsandroid
carousel nullpointerexception in carousellayoutmanager java when talkback be on
Bug
description when use talkback accesibility option and carousel adapter have no item an error occur it be due keylinestatelist in carousellayoutmanager be uninitialized when talkback be off there be no problem stacktrace fatal exception main process io material catalog pid 30650 java lang nullpointerexception attempt to invoke virtual method com google android material carousel keylinestate com google android material carousel keylinestatelist getdefaultstate on a null object reference at com google android material carousel carousellayoutmanager computehorizontalscrollextent carousellayoutmanager java 1024 at androidx recyclerview widget recyclerview computehorizontalscrollextent recyclerview java 2158 at android view view canscrollhorizontally view java 21461 at androidx recyclerview widget recyclerview layoutmanager oninitializeaccessibilitynodeinfo recyclerview java 10661 at androidx recyclerview widget recyclerview layoutmanager oninitializeaccessibilitynodeinfo recyclerview java 10631 at androidx recyclerview widget recyclerviewaccessibilitydelegate oninitializeaccessibilitynodeinfo recyclerviewaccessibilitydelegate java 74 at androidx core view accessibilitydelegatecompat accessibilitydelegateadapter oninitializeaccessibilitynodeinfo accessibilitydelegatecompat java 91 at android view view oninitializeaccessibilitynodeinfo view java 9095 at android view view createaccessibilitynodeinfointernal view java 9056 at android view view accessibilitydelegate createaccessibilitynodeinfo view java 32397 at android view view createaccessibilitynodeinfo view java 9039 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1520 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchdescendantsofrealnode accessibilityinteractioncontroller java 1543 at android view accessibilityinteractioncontroller accessibilitynodeprefetcher prefetchaccessibilitynodeinfos accessibilityinteractioncontroller java 1309 at android view accessibilityinteractioncontroller findaccessibilitynodeinfobyaccessibilityiduithread accessibilityinteractioncontroller java 416 at android view accessibilityinteractioncontroller nest mfindaccessibilitynodeinfobyaccessibilityiduithread unknown source 0 at android view accessibilityinteractioncontroller privatehandler handlemessage accessibilityinteractioncontroller java 1713 at android os handler dispatchmessage handler java 106 at android os looper looponce looper java 226 at android os looper loop looper java 313 at android app activitythread main activitythread java 8757 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 571 at com android internal os zygoteinit main zygoteinit java 1067 step to reproduce activate talkback accesibility option in multibrowsedemofragment java change last line of onviewcreate from adapter submitlist carouseldata createitem updatesliderrange positionslider adapter to adapter submitlist new arraylist updatesliderrange positionslider adapter open that fragment inside catalog app android api version 33 material library version 1 9 0 rc01 device pixel 7 pro galaxy tab s6 lite
materialcomponentsmaterialcomponentsandroid
materialbutton ripple can not be remove on api level 33
Bug
description a dark color be add to materialbutton that be in focused state it would appear that the default ripple be cause the dark color and remove this by set it to null should remove this add shade however this only work for device on api level 32 and below expect behavior the gif show this issue on two emulator with expect behaviour on the left api level 32 and unexpected behaviour on the right api level 33 the arrow key be on keyboard be use to bring the button into and out of focus the text and border appear yellow when in focus but the background should remain same color focus state and ripple1 additional context the button be dynamic and configure programmatically the issue be first notice when the focus state appear dark on all emulator call setripplecolor null via this api setripplecolor android content re colorstatelist remove the unwanted darkness on api level 32 and below can t seem to remove it on api level 33 the issue might be relate to this already close issue material library version com google android material material 1 8 0
materialcomponentsmaterialcomponentsandroid
search bar mistake in documentation
Bug
description it look like there be a mistake in search bar documentation put it all together there should be app layout behavior string appbar scrolling view behavior instead of app layout behavior string searchbar scrolling view behavior otherwise first item from recyclerview be display behind the search bar
materialcomponentsmaterialcomponentsandroid
searchview backgroundtint can t be set to white
Bug
description as per the documentation I ve assign the color white to attr colorsurface but the background color of the search view isn t change when I change it to a dark color such as green 337a35 the background color change expect behavior the background color should be set to white source code android api version 31 material library version 1 8 0 device pixel 4 in emulator
materialcomponentsmaterialcomponentsandroid
exposeddropdownmenu can not remove ripple effect correctly
Bug
hi I be use autocompletetextview inside outlinedbox exposeddropdownmenu like this just spend some hour try to remove ripple effect when I be click on widget not dropdown menu item problem be when I remove ripple effect outline box it be be draw over the hint text I can remove ripple by pass backgroundtintmode and backgroundtint to autocompletetextview in xml and programatically also by set backgroundtintlist it always result in box outline crossing hint text also drop down arrow ripple effect fire double time which look not so good but I do not see how to remove that either
materialcomponentsmaterialcomponentsandroid
searchbar clicking searchbar not show keyboard
Bug
description click searchbar not show the keyboard expect behavior keyboard to appear immediatly after click source code android api version 33 material library version 1 8 0 and 1 8 0 alpha03 device samsung and pixel emulator
materialcomponentsmaterialcomponentsandroid
tab tab item selection animation be cut at the top and bottom
Bug
description when tap on a tab item there be an animation that indicate that the user have select that particular item m3 show that animation in form of a small circle that quickly grow and then disappear however when the circle reach the vertical size of the tab it get cut at the top and bottom see below video capture from the m3 catalog app tab controllable tab demo expect behavior animation be not cut at the top and bottom but always show the whole circle be there a possibility to achieve that behavior or be it eventually a bug source code see source code of the m3 catalog app tab controllable tab demo minimal sample app repro see below video capture from the m3 catalog app tab controllable tab demo android api version android api 33 material library version 1 10 0 alpha01 device various emulator e g pixel 6 and real device e g nokia 7 2
materialcomponentsmaterialcomponentsandroid
materialtextview what attribute determine the text color for materialtextview element in material design 3
Bug
in the xml layout use material design 3 I have a materialtextview element that dynamically take its color from the material design 3 theme however I be unsure which attribute be responsible for determine the text color of the materialtextview element I attempt to retrieve the current text color of the materialtextview element in java and convert it to hexadecimal but the color return do not match any value in color xml because of that I want to know which attribute be responsible for determine the text color of the materialtextview element the materialtextview exist inside the materialcardview color xml 6750a4 6750a4 ffffff eaddff 21005d 625b71 ffffff e8def8 1d192b 7d5260 ffffff ffd8e4 31111d b3261e ffffff f9dedc 410e0b 79747e fffbfe 1c1b1f fffbfe 1c1b1f e7e0ec 49454f 313033 f4eff4 d0bcff 000000 6750a4 cac4d0 000000 night color xml d0bcff 381e72 4f378b eaddff ccc2dc 332d41 4a4458 e8def8 efb8c8 492532 633b48 ffd8e4 f2b8b5 601410 8c1d18 f9dedc 938f99 1c1b1f e6e1e5 1c1b1f e6e1e5 49454f cac4d0 e6e1e5 313033 6750a4 000000 d0bcff 49454f 000000 theme xml java log w abc integer tohexstring materialtextview gettextcolor getdefaultcolor output be ffcac4d0 I change cac4d0 to another color to check if materialtextview will change or not but it do not change so the color cac4d0 do not come from md theme onsurfacevariant I want to know where this hex color cac4d0 be come from I m test the app in dark mode
materialcomponentsmaterialcomponentsandroid
textinputlayout 1 8 0 ver cursor color be always white when error situation
Bug
when I set an error in textinputlayout in version 1 8 0 the cursor color be always white both outline and filledbox be applicable and I be able to fix this by lower the version to 1 6 0 in version 1 8 0 no setting through style xml or they xml could change white
materialcomponentsmaterialcomponentsandroid
materialdatepicker a11y confirm button announce as null ok button
Bug
description because of the change in and more specifically l311 talkback now announce the confirm button as null ok button when there be no error condition I e during normal operation expect behavior the accessibility node should only contain error info if there s an actual error during normal operation it should just say ok button source code viewcompat setaccessibilitydelegate confirmbutton new accessibilitydelegatecompat override public void oninitializeaccessibilitynodeinfo nonnull view host nonnull accessibilitynodeinfocompat info super oninitializeaccessibilitynodeinfo host info string contentdescription getdateselector geterror info gettext info setcontentdescription contentdescription android api version 33 material library version 1 8 0 device pixel 6 pro
materialcomponentsmaterialcomponentsandroid
top app bar scroll on collapse title area cause the app bar to over scroll
Bug
description notice the app bar win t over scroll if the content below be scroll a little bit this be from m3 catalog app but the same issue happen on my app too android api version 33 material library version 1 9 0 beta01
materialcomponentsmaterialcomponentsandroid
materialswitch the animation of the thumb be use incorrect timing
Bug
be your feature request relate to a problem please describe ever since 1 8 0 beta01 the thumb stretch animation be use incorrect timing this be because in beta01 the switch animation be update to use motion theme accord to the changelog prior to beta01 mtrl switch thumb pre morphing duration be 100 ms and mtrl switch thumb post morphing duration be 150 m and in beta01 they be assign m3 sys motion duration short3 150ms and m3 sys motion duration medium1 250ms respectively those timing be different which result in an animation that look break and out of sync describe the solution you d like the motion duration token use in this file should be replace with those that match the old timing which would be m3 sys motion duration short2 100ms for mtrl switch thumb pre morphing duration and m3 sys motion duration short3 150ms for mtrl switch thumb post morphing duration also ideally there should be a single duration for the entire animation and the pre and post morphing duration should be use fraction of that duration 2 5 and 3 5 respectively but I be not sure if that s possible in xml additional context the animation I m talk about occur not when you interact with the switch directly but when you change its state through other mean something like switch ischecked switch ischecked video recording the animation in 1 8 0 alpha03 the broken animation in 1 8 0 beta01 and above
materialcomponentsmaterialcomponentsandroid
materialswitch thumb animation be not sync with motion
Bug
the thumb stretch animation be not sync with its motion when widget state change programmatically compare attach video I find out that this be hapenne because animation duration be change in this commit
materialcomponentsmaterialcomponentsandroid
autocompletetextview text be cut off when height be limited
Bug
description I have a autocompletetextview com google android material material 1 8 0 however when an item be select the textview inside be cut off here be my textview inside ksnip 20230406 102536 but the result when an item select be this expect behavior screenshot and or description of expect behavior expect behavior be that the text render would show as the hint do ksnip 20230406 102633 source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here 33 material library version material android library version you be use here e g 1 1 0 alpha07 com google android material material 1 8 0 device device on which the bug be encounter here emulator pixel 3a to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
materialdatepicker bug in settextinputformat date display off by 1 error
Bug
description when use settextinputformat the format date be always off by 1 change the input format use settextinputformat simpledateformat mm dd yyyy locale getdefault result in the input mode text value always be 1 day behind the actual select date the bug seem to be timezone relate when set the device to any gmt 0 timezone the bug do not happen in this video we select the date april 7th and switch to text input mode the text date show as 04 06 2023 april 6th edit the text value select the correct date but switch between input mode then subtract 1 from the date also show in the video test use different simpledateformat locale param with no effect as expect since locale should have no effect on date parse expect behavior select april 7th in input mode calendar should show as 04 07 2023 in input mode text I e the format date should match the date in the calendar header source code l716 minimal sample app repro here s the minimal reproducible example of this bug use to capture the above video android api version test on pixel 2 api 27 and pixel 5 api 32 material library version master branch and late release 1 10 0 alpha01 device test on emulator pixel 2 api 27 and pixel 5 api 32
materialcomponentsmaterialcomponentsandroid
carousel item masking be break on api 21
Bug
material library version 1 10 0 alpha01 device api 21 emulator
materialcomponentsmaterialcomponentsandroid
search searchbar show exception when searchview scroll
Bug
description searchview inner recyclverview when recyclerview scroll and click back searchbar show exception expect behavior searchbar error android api version android 31 material library version 1 8 0 device emulator
materialcomponentsmaterialcomponentsandroid
toolbar eat touch
Bug
hi how to disable eat touch on toolbar toolbar always eat touch event but should still respect the touch event dispatch
materialcomponentsmaterialcomponentsandroid
materialcheckbox unchecked container color not update with custom theme instruction
Bug
as per the spec e5e04d30 10bc 4297 a67a c38bcece5e56 unchecked container color be suppose to be base on coloronsurface but it remain unchanged after apply the custom theme instruction implement checkbox theming or change the coloronsurface on the main theme altogether other state be get the update color as expect android api version 33 material library version 1 9 0 beta01
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder dialog not dismiss
Bug
description when I click positive button of materialalertdialogbuilder it didn t dismiss expect behavior I want dialog dismiss after click and navigate to another fragment but dialog not dismiss and still appear when I move to another fragment but if I don t use wincontext everything will be ok source code set up for materialalertdialogbuilder withcontext dispatcher main handledialog title message message getstre r string session expire actionone actiontwo sign in desone null destwo r i d action chatscreen to signin cancelable false I call my function in withcontext dispatcher main private fun handledialog title string message string actionone string actiontwo string desone int destwo int cancelable boolean materialalertdialogbuilder requirecontext settitle title setmessage message setcancelable cancelable setnegativebutton actionone dialog if desone null navigate desone enteranim r anim enter from left exitanim r anim exit to right popenteranim r anim enter from right popexitanim r anim exit to left else dialog dismiss setpositivebutton actiontwo dialog if destwo null log e test click dialog here click navigate destination destwo enteranim r anim enter from left exitanim r anim exit to right popenteranim r anim enter from right popexitanim r anim exit to left else requireactivity finish show minimal sample app repro none android api version android api 33 material library version 1 10 0 alpha01 device poco x3 pro
materialcomponentsmaterialcomponentsandroid
sidesheet 1 10 0 alpha01 npe shapeappearancemodel not initialize before layout with workaround
Bug
runtime npe when try to layout a sidesheet 1 10 alpha01 java lang nullpointerexception attempt to invoke virtual method com google android material shape shapeappearancemodel builder com google android material shape shapeappearancemodel tobuilder on a null object reference at com google android material sidesheet sidesheetbehavior setsheetedge sidesheetbehavior java 163 at com google android material sidesheet sidesheetbehavior setsheetedge sidesheetbehavior java 158 at com google android material sidesheet sidesheetbehavior onlayoutchild sidesheetbehavior java 352 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java 918 line 163 be where it crash kotlin shapeappearancemodel builder builder shapeappearancemodel tobuilder turn out shapeapparancemodel be null hence the crash shapeapparancemodel should have be set on line 134 early kotlin if a hasvalue r styleable sidesheetbehavior layout shapeappearance this shapeappearancemodel shapeappearancemodel builder context attrs 0 def style re build but the assignment be skip as the test w a fail let s look at where a be set line 128 kotlin typedarray a context obtainstyledattribute attrs r styleable sidesheetbehavior layout we need to make sure a hasvalue r styleable sidesheetbehavior layout shapeappearance here s my workaround to set a so that it win t fail the test on 134 in app src main re value theme xml or style xml add something like this to the app s main not sure if this will work for every configuration in every case but it work in my quick little test include the new left edge stuff great job afohrman
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout when collapse drag with toolbar the toolbar be out of position and appear with wrong location
Bug
description when collapse drag with toolbar the toolbar be out of position and appear with wrong location the toolbar will move up and then return to normal expect behavior expect behavior the same as drag with recyclerview etc the toolbar will not move up source code standard example code always happen catalog app catalog app xml minimal sample app repro catalog app catalog app xml android api version 31 material library version 1 9 0 beta01 device any decive here be video to show this problem
materialcomponentsmaterialcomponentsandroid
appbarlayout if use with material toolbar the layout editor will not preview certainly
Bug
description if toolbar be surround by appbarlayout the layout editor will not properly display the preview it will display nothing if no appbarlayout sc01 if have appbarlayout sc02 expect behavior the layout editor be properly display the preview because I have to use the 1 8 0 searchbar I can t take step to downgrade be there any urgent measure or something like that source code minimal sample app repro n a android api version 33 material library version 1 8 0 device n a
materialcomponentsmaterialcomponentsandroid
tablayout serious bug viewpager2 tablayout fragment
Bug
description full description of issue here serious bug I use viewpager2 tablayout fragment do slide page if only slide the page to switch fragment no problem if you click tab to switch there will be a blank page but this blank page be not the kind of fragment code error I click on the current page at this time the current fragment page be display this should be a bug at this time I put the smoothscroll of tablayoutmediator false then this problem will not occur but at this time the slide effect be terrible and do not meet my need please fix this problem when click the tab switch the white screen sometimes the fourth will be trigger sometimes you need to click more than 10 note that it be click sequentially not randomly after load the page for the first time click the second tab will cause the fragmentstateadapter s createfragment method to execute twice position 1 and 2 and then click the other tab in turn and createfragment will become execute again follow by 3 4 it seem to be relate to this exception val count 30 mviewbinde tlchannel tabmode tablayout mode scrollable mviewbinding vp adapter object fragmentstateadapter this override fun createfragment position int fragment val fragment examplefragment fragment argument bundle apply our object be just an integer p putstre example fragment position return fragment override fun getitemcount int return count tablayoutmediator mviewbinde tlchannel mviewbinde vp true true tab position tab text t position 1 attach expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here targetsdk 33 material library version material android library version you be use here e g 1 1 0 alpha07 1 8 0 and 1 9 0 beta01 device device on which the bug be encounter here device sdk 32 to help we triage fast please check to make sure you be use the late version of the library I use 1 8 0 and 1 9 0 beta01 and both have this issue we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
search inflation error
Bug
description error inflating search expect behavior I try use search view but for some reason I can t inflate it source code and this be my bind public view oncreateview layoutinflater inflater viewgroup container bundle savedinstancestate inflate the layout for this fragment bind fragmentcategorydetailbinde inflate inflater container false return bind getroot minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version 33 material library version 1 9 0 device realme 6 here be error log androidruntime fatal exception main process com mobiledevelopment pid 25999 android view inflateexception binary xml file line 24 in com mobiledevelopment layout fragment category detail binary xml file line 24 in com mobiledevelopment layout fragment category detail error inflate class com google android material search searchbar cause by android view inflateexception binary xml file line 24 in com mobiledevelopment layout fragment category detail error inflate class com google android material search searchbar cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 852 at android view layoutinflater createviewfromtag layoutinflater java 1008 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate layoutinflater java 1138 at android view layoutinflater rinflatechildren layoutinflater java 1099 at android view layoutinflater rinflate layoutinflater java 1141 at android view layoutinflater rinflatechildren layoutinflater java 1099 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 532 at androidx databinde databindingutil inflate databindingutil java 126 at androidx databinde viewdatabinding inflateinternal viewdatabinding java 1409 at com mobiledevelopment databinde fragmentcategorydetailbinding inflate fragmentcategorydetailbinde java 43 at com mobiledevelopment databinde fragmentcategorydetailbinding inflate fragmentcategorydetailbinde java 29 at com mobiledevelopment product categorydetailfragment oncreateview categorydetailfragment java 66 at androidx fragment app fragment performcreateview fragment java 3104 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 524 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 261 at androidx fragment app fragmentstore movetoexpectedstate fragmentstore java 113 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1433 at androidx fragment app fragmentmanager dispatchstatechange fragmentmanager java 2977 at androidx fragment app fragmentmanager dispatchviewcreate fragmentmanager java 2888 at androidx fragment app fragment performviewcreate fragment java 3129 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 552 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 261 at androidx fragment app fragmentstore movetoexpectedstate fragmentstore java 113 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1433 at androidx fragment app fragmentmanager dispatchstatechange fragmentmanager java 2977 at androidx fragment app fragmentmanager dispatchactivitycreated fragmentmanager java 2895 at androidx fragment app fragmentcontroller dispatchactivitycreate fragmentcontroller java 263 at androidx fragment app fragmentactivity onstart fragmentactivity java 351 at androidx appcompat app appcompatactivity onstart appcompatactivity java 251 at android app instrumentation callactivityonstart instrumentation java 1435 at android app activity performstart activity java 8175 at android app activitythread handlestartactivity activitythread java 3761 at android app servertransaction transactionexecutor performlifecyclesequence transactionexecutor java 221 at android app servertransaction transactionexecutor cycletopath transactionexecutor java 201 at android app servertransaction transactionexecutor executelifecyclestate transactionexecutor java 173 at android app servertransaction transactionexecutor execute transactionexecutor java 97 at android app activitythread h handlemessage activitythread java 2328 e androidruntime at android os handler dispatchmessage handler java 106 at android os looper loop looper java 255 at android app activitythread main activitythread java 8212 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 632 at com android internal os zygoteinit main zygoteinit java 1049 cause by java lang illegalargumentexception com google android material search searchbar require a value for the com mobiledevelopment attr coloronsurfacevariant attribute to be set in your app theme you can either set the attribute in your theme or update your theme to inherit from theme materialcomponent or a descendant at com google android material resource materialattribute resolvetypedvalueorthrow materialattribute java 72 at com google android material resource materialattribute resolvetypedvalueorthrow materialattribute java 56 at com google android material color materialcolor getcolor materialcolor java 76 at com google android material search searchbar maybetintnavigationicon searchbar java 380 at com google android material search searchbar setnavigationicon searchbar java 360 at com google android material search searchbar initnavigationicon searchbar java 250 at com google android material search searchbar searchbar java 190 at com google android material search searchbar searchbar java 152 47 more I process send signal pid 25999 sig 9
materialcomponentsmaterialcomponentsandroid
materialdatepicker the style name materialcalendarheaderlayout do not work
Bug
description I want change the head color of calendar but when I use the style name materialcalendarheaderlayout it do not work well expect behavior qq 20230315105509 source code android api version android sdk 33 material library version implementation com google android material material 1 5 0 device android studio emulator with profile pixel 6 pro and api 33 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
jetpack compose outline button neither text nor border honor the theme
Bug
description outline button be not render the border and text accord m3 design guideline I have a complete colorscheme and theme for my app but when use outline button neither text nor border honor the theme I be rely on the hct color system to do the right thing and not have to define each for every instance of outline button in my app also these button be app and code image screen shoot 2023 03 14 at 12 54 01 pm expect behavior I expect that if the entire colorscheme be define for light and dark theme the component fully honor these color image below compare what jetpack compose render vs what I expect to see also the m3 builder have provide a component page in figma use my colorscheme but that page doesn t match the component impl compare image jetpack compose expect source code outline button example outlinedbutton border borderstroke 1 dp materialtheme colorscheme outline must specify it doesn t use the button s content color onclick text text outline color materialtheme colorscheme primary must specify it doesn t use the button s content color spacer modifier modifier width materialtheme space medium outlinedbutton border borderstroke 1 dp materialtheme colorscheme outline must specify it doesn t use the button s content color onclick icon imagevector icon outline contentcopy contentdescription outline button modifier modifier size buttondefault iconsize spacer modifier modifier size buttondefault iconspace text text icon outline color materialtheme colorscheme primary must specify it doesn t use the button s content color disabled outline button example composable fun colorscheme labeldisable color return onsurface copy alpha 0 38f outlinedbutton enable false border borderstroke 1 dp materialtheme colorscheme outlinevariant must specify it doesn t use the button s content color onclick text text outline color materialtheme colorscheme labeldisable must specify it doesn t use the button s content color spacer modifier modifier width materialtheme space medium outlinedbutton enable false border borderstroke 1 dp materialtheme colorscheme outlinevariant must specify it doesn t use the button s content color onclick icon imagevector icon outline contentcopy contentdescription outline button modifier modifier size buttondefault iconsize spacer modifier modifier size buttondefault iconspace text text icon outline color materialtheme colorscheme labeldisable must specify it doesn t use the button s content color minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app jetpack compose version 1 4 0 beta01 android studio build ai 221 6008 13 2211 9514443 build on january 20 2023 kotlin version 1 6 4 device any
materialcomponentsmaterialcomponentsandroid
jetpack compose button contentcolor should also be apply to the text
Bug
description I have create a theme use the md builder but I notice that for component such as button elevate button and fill tonal button the label text in the button doesn t use the contentcolor color to render the label text but the icon do the image below illustrate this issue this be problematic b c we have to provide the text color for every single instance of button in our app ui and rely on the new hct color system to handle this app and code image notice how the text be tint correctly but the label text isn t also if the button be disable the label text be not color correctly either screen shoot 2023 03 14 at 12 15 44 pm jetpack compose component s use fill icon button elevate button icon elevated button fill tonal button fill icon tonal button expect behavior if the entire colorscheme be define for light and dark theme the component fully honor these color enable state icon and label text use the same onprimary color disabled state icon and label text use the same onsurface copy alpha 0 38f image below compare what jetpack compose render vs what I expect to see also the m3 builder have provide a component page in figma use my colorscheme but that page doesn t match the component impl compare image jetpack compose expect source code button example button color buttondefault buttoncolor use the right color define in the theme no need to specify here onclick icon be render use the correct content color for that button icon imagevector icon outline contentcopy contentdescription icon button modifier modifier size buttondefault iconsize spacer modifier modifier size buttondefault iconspace text text with icon color materialtheme colorscheme onprimary must specify it doesn t use the button s content color tonal button example elevatedbutton color buttondefault buttoncolor use the right color define in the theme no need to specify here onclick text text elevate color materialtheme colorscheme primary must specify it doesn t use the button s content color icon tonal button example elevatedbutton color buttondefault elevatedbuttoncolor use the right color define in the theme no need to specify here onclick icon be render use the correct content color for that button icon imagevector icon outline contentcopy contentdescription with icon elevate modifier modifier size buttondefault iconsize spacer modifier modifier size buttondefault iconspace text text with icon elevate color materialtheme colorscheme primary must specify it doesn t use the button s content color jetpack compose version 1 4 0 beta01 android studio build ai 221 6008 13 2211 9514443 build on january 20 2023 kotlin version 1 6 4 device any
materialcomponentsmaterialcomponentsandroid
textinputlayout textinputedittext short description of issue
Bug
description I just create new project and I be try to use textinputedittext inside of textinputlayout I add a few text field and when I add give element of yours my android studio preview go gray I add the same element like on my other project where it render very well and it look as it should look in app expect behavior I think I do not miss anything since the layout be visible when I put tool layout my gragment layout in my navigation node it render well there then when I switch to some other layout and get back to problematic one preview render well and after 2s it go gray again interesting thing be that I can click on my view and I be navigate in my xml file like I see element source code minimal sample app repro image android api version 32 material library version 1 8 0 on my other app 1 4 0 which I have also try device android studio preview tool
materialcomponentsmaterialcomponentsandroid
materialcheckbox checkmark go missing when switch the error state
Bug
material library version 1 8 0 device api 19 emulator
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
switchcompat use wrong off color in theme material3 daynight
Bug
description the bug appear when use app theme theme material3 daynight but not appear in default theme theme materialcomponent daynight screenshot 2023 03 08 102548 note this problem relate to this issue because androidx preference preference library seem to use the same widget component by default expect behavior similar look like in app theme theme materialcomponent daynight screenshot 2023 03 08 110817 android api version 30 material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
process com livehousex lively pid 14972 java lang nullpointerexception at androidx navigation ui navigationui onnavdestinationselected navigationui kt 69 at androidx navigation ui navigationui setupwithnavcontroller lambda 6 navigationui kt 602 at androidx navigation ui navigationui r8 lambda 6wzev9qqezkdqfs1sqqy bdqvge unknown source 0 at androidx navigation ui navigationui externalsyntheticlambda2 onnavigationitemselecte unknown source 2 at com google android material navigation navigationbarview 1 onmenuitemselected navigationbarview java 291 at androidx appcompat view menu menubuilder dispatchmenuitemselecte menubuilder java 836 at androidx appcompat view menu menuitemimpl invoke menuitemimpl java 159 at androidx appcompat view menu menubuilder performitemaction menubuilder java 987 at com google android material navigation navigationbarmenuview 1 onclick navigationbarmenuview java 139 at android view view performclick view java 7506 at android view view performclickinternal view java 7483 at android view view nest mperformclickinternal unknown source 0 at android view view performclick run view java 29335 at android os handler handlecallback handler java 942 at android os handler dispatchmessage handler java 99 at android os looper looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7898 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 at com android internal os zygoteinit main zygoteinit java 936 version 1 8 0
materialcomponentsmaterialcomponentsandroid
bottomnavigationview font change to bold when select
Bug
description until the 1 8 release the navigationbaritemview be styleable with the attribute itemtextappearanceactive and itemtextappearanceinactive or textappearancetitlesmall depend from which theme we be inherit since the release there be a hardcode line which make the font bold when select expect behavior the user of the library can still decide if the font should be bold when select look at the todo one live above it seem like it should be styleable with token unfortunately the design documentation for material3 do not force select item to be bold and it do not mention how to style the font of an active inactive item do an item have to be in bold font when select how can we change the font weight in this case without material 3 or with material3 source code material library version material android library version you be use here 1 8 0 and 1 9 0 alpha2
materialcomponentsmaterialcomponentsandroid
button wrong color guide in documentation
Bug
description button actually use colorcontainer coloroncontainer and instead of colorprimary coloronprimary like documentation say search primary search name themeoverlay material3 button capture1 capture2
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
I set it up in the androidmanifest xml android theme style theme appcompat light noactionbar an error have occur and the error do not occur if switch back to the default style w resourcescompat fail to inflate colorstatelist leave it to the framework java lang unsupportedoperationexception fail to resolve attribute at index 0 typedvalue t 0x2 d 0x7f0300f7 a 1 at android content re typedarray getcolor typedarray java 529 at android content res xresources xtypedarray getcolor xresource java 1294 at androidx core content re colorstatelistinflatercompat inflate colorstatelistinflatercompat java 160 at androidx core content re colorstatelistinflatercompat createfromxmlinner colorstatelistinflatercompat java 125 at androidx core content re colorstatelistinflatercompat createfromxml colorstatelistinflatercompat java 104 at androidx core content re resourcescompat inflatecolorstatelist resourcescompat java 262 at androidx core content re resourcescompat getcolorstatelist resourcescompat java 236 at androidx core content contextcompat getcolorstatelist contextcompat java 558 at androidx appcompat content re appcompatresources getcolorstatelist appcompatresource java 48 at com google android material resource materialresource getcolorstatelist materialresource java 65 at com google android material imageview shapeableimageview shapeableimageview java 114 at com google android material imageview shapeableimageview shapeableimageview java 92 at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 858 at android view layoutinflater createviewfromtag layoutinflater java 1010 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate layoutinflater java 1127 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate layoutinflater java 1130 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate layoutinflater java 1130 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at edhooker hook unknown source 156 at android view layoutinflater inflate layoutinflater java 538 at com yi limaoyuan fragment fragmentmy oncreateview fragmentmy java 74 at androidx fragment app fragment performcreateview fragment java 2963 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 518 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 282 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 2189 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 2100 at androidx fragment app fragmentmanager execsingleaction fragmentmanager java 1971 at androidx fragment app backstackrecord commitnowallowingstateloss backstackrecord java 311 at androidx fragment app fragmentpageradapter finishupdate fragmentpageradapter java 249 at androidx viewpager widget viewpager populate viewpager java 1244 at androidx viewpager widget viewpager populate viewpager java 1092 at androidx viewpager widget viewpager 3 run viewpager java 273 at android view choreographer callbackrecord run choreographer java 1031 at android view choreographer docallback choreographer java 854 at android view choreographer doframe choreographer java 785 at android view choreographer framedisplayeventreceiver run choreographer java 1016 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 224 at android app activitythread main activitythread java 7592 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 539 at com android internal os zygoteinit main zygoteinit java 950 d forcedarkhelper updatebycheckexcludelist pkg com yi limaoyuan activity com yi limaoyuan activity tabhome 8d9277e w renderinspector dequeuebuffer time out on com yi limaoyuan com yi limaoyuan activity tabhome count 1 avg 17 ms max 17 ms
materialcomponentsmaterialcomponentsandroid
icon no long visible in
Bug
description icon be not show up in page expect behavior to show screen shoot 2023 03 02 at 9 49 21 am
materialcomponentsmaterialcomponentsandroid
checkbox setcheckedstate set wrong drawable
Bug
description when setcheckedstate be call with state indeterminate the drawable be be unchecked rather than set to indeterminate the value be actually correct source code materialcheckbox testbtn findviewbyid r i d tes testbtn setcheckedstate materialcheckbox state check system out println testbtn getcheckedstate 1 drawable be check and have the v sign testbtn setcheckedstate materialcheckbox state indeterminate system out println testbtn getcheckedstate 2 drawable be unchecked rather than be android api version 33 material library version 1 8 0 device pixel 4a emulator same thing on pixel 6a
materialcomponentsmaterialcomponentsandroid
dialog background should be tint api 19
Bug
actual behavior expect behavior material library version 1 8 0 device api 19 emulator
materialcomponentsmaterialcomponentsandroid
bottomappbar fab extra shadow
Bug
expect behavior fab should not have an extra shadow actual behavior fab have an extra shadow material library version 1 8 0 device api 19 emulator
materialcomponentsmaterialcomponentsandroid
appbarlayout topappbar become translucent if coordinatorlayout contain bottomappbar
Bug
material library version 1 8 0 device api 19 emulator
materialcomponentsmaterialcomponentsandroid
searchview unable to apply custom style
Bug
description when I try to apply a custom style nothing be happen the default style be use there be no theme secte on the doc just some element here in the spec c161dcae 266a 4705 841e b8d99ae5da2b expect behavior the style should be apply source code layout style xml android api version 30 material library version com google android material material 1 8 0 device pixel 5 z flip 4