repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
slider layout height attribute be completely ignore
Bug
description the height of the slider can not be adjust whatsoever expect behavior the height of the slider can be adjust and the value of android layout height be respect source code xml android api version any support api version material library version 1 6 0 alpha02 device any device source of problem the dimension of the slider be store in private variable in baseslider and load from library resource the xml attribute be ignore
materialcomponentsmaterialcomponentsandroid
materialcardview nullpointerexception when apply setonclicklistener
Bug
description when I attach a setonclicklistener to a materialcardview inside a recycler view I get a nullpointerexception this issue happen in release version 1 5 0 and 1 6 0 alpha and in android api version 26 27 and 28 I ve not try it on version below 26 when use release 1 4 0 it work as expect on all api version test up to 30 haven t test on 31 yet the error I get be java lang nullpointerexception attempt to invoke virtual method void android graphic drawable drawable setcallback android graphic drawable drawable callback on a null object reference at android graphic drawable layerdrawable layerdrawable java 141 at android graphic drawable layerdrawable layerdrawable java 119 at com google android material card materialcardviewhelper getclickableforeground materialcardviewhelper java 634 at com google android material card materialcardviewhelper updateclickable materialcardviewhelper java 274 at com google android material card materialcardview setclickable materialcardview java 365 at android view view setonclicklistener view java 6107 expect behavior no exception get throw and the recycler view build fine source code inside a recyclerview adapter I have inner class restaurantviewholder itemview view recyclerview viewholder itemview var restaurantname textview private val onmenuitemclicklistener menuitem onmenuitemclicklistener menuitemclicklistener this oncontextmenuitemclicklistener init log d tag create restaurantviewholder restaurantname itemview findviewbyid r i d restaurant name itemview setonclicklistener this be where the error happen android api version 26 28 material library version 1 5 0 and 1 6 0 alpha device test on several emulator and phone pixel mi etc
materialcomponentsmaterialcomponentsandroid
topappbaractionbardemoactivity actionmode function error
Bug
topappbar display misalign and actionmode menu function don t work screenshot 20220211 112526 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 dia 30 31 de janeiro de 2022 n o aparece no calend rio
Bug
description quando o calend rio aberto pela primeira vez e seleciono o m s de janeiro de 2022 os dias 30 31 n o s o exibido preciso fazer a rolagem da tela para que esse dias apare be screenshot 20220210 110227
materialcomponentsmaterialcomponentsandroid
dynamiccolor call getdecorview in f6c8fa5aefc84a1543eca3056a538120de0b4297 break certain app
Bug
description in a call to window getdecorview be add the problem with this though be that it will as document lock in certain characteristic of the window if an embed app have any call to for example window setflag or window requestfeature after dynamiccolor have execute those call will either be ignore or cause the app to crash with androidruntimeexception requestfeature must be call before add content since one way to initialize dynamiccolor be to let it use an activitylifecyclecallback and its onactivityprecreated method there be a very high chance this will happen before the embed application start tweak the window characteristic note there be no guarantee at all at which point an app will have initialize the decor view it be not enforce by the framework to happen at any specific time as far as I remember expect behavior avoid use getdecorview since it will break embed app in surprising way source code
materialcomponentsmaterialcomponentsandroid
bottomsheet windowisfloate don t work
Bug
description when I use material 1 3 0 windowisfloate false could make dialog expand to navigator bar right but when I use material 1 4 0 or material 1 5 0 windowisfloate false have no affect leave expect behavior 1 rlbf6fptfwhxqntollj0cq image from source code android api version android api version here material library version 1 4 0 or 1 5 0
materialcomponentsmaterialcomponentsandroid
materialautocompletetextview ime obscure dropdown list
Bug
whether I choose android windowsoftinputmode adjustpan or adjustresize on the main activity androidmanif xml the dropdown window list the completion option be obscure by the ime input method editor keyboard pop up this be most prevalent on control within a bottom dialog or at the bottom of a screen fragment activity when the dropdown be open by click the open close icon the lookup window open towards the top on control near the bottom of the screen but when the lookup window be activate as a response to keypresse via ime then it open to the bottom and be hide by the keyboard I can see the lookup window appear for brief moment before it be obscure by the ime pop up com google android material material 1 5 0 com android tool build gradle 7 1 0 org jetbrain kotlin kotlin gradle plugin 1 6 10 android studio bumblebee 2021 1 1 build ai 211 7628 21 2111 8092744 build on january 19 2022 runtime version 11 0 11 9 b60 7590822 amd64 vm openjdk 64 bit server vm by oracle corporation window 10 10 0 gc g1 young generation g1 old generation memory 1280 m core 12 registry external system auto import disabled true non bundle plugin wu seal tool jsontokotlin 3 7 2 org jetbrain kotlin 211 1 6 10 release 923 as7442 40
materialcomponentsmaterialcomponentsandroid
m3 dynamiccolor dynamic color not apply when splashscreen api be use
Bug
description when application or activity launcher theme inherit from theme splashscreen and we set postsplashscreentheme to a theme that inherit from material3 it do not apply dynamic color when we call dynamiccolor applytoactivitiesifavailable this on the application class expect behavior apply dynamic color source code android api version android sdk 31 android 12 material library version 1 5 0 xml androidmanif xml diff android theme style theme todometer start
materialcomponentsmaterialcomponentsandroid
materialcardview npe on api 28 android 9 when apply setonclicklistener
Bug
description when I try to apply setonclicklistener to a materialcardview it be throw a nullpointerexception expect behavior the application must not throw an npe source code just inflate a materialcardview and apply setonclicklistener on it xml kotlin mcvt setonclicklistener java lang runtimeexception unable to start activity componentinfo com sample com sample ui accessactivity java lang nullpointerexception attempt to invoke virtual method void android graphic drawable drawable setcallback android graphic drawable drawable callback on a null object reference at android app activitythread performlaunchactivity activitythread java 3122 at android app activitythread handlelaunchactivity activitythread java 3261 at android app servertransaction launchactivityitem execute launchactivityitem java 78 at android app servertransaction transactionexecutor executecallback transactionexecutor java 108 at android app servertransaction transactionexecutor execute transactionexecutor java 68 at android app activitythread h handlemessage activitythread java 1977 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 193 at android app activitythread main activitythread java 6923 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 870 cause by java lang nullpointerexception attempt to invoke virtual method void android graphic drawable drawable setcallback android graphic drawable drawable callback on a null object reference at android graphic drawable layerdrawable layerdrawable java 141 at android graphic drawable layerdrawable layerdrawable java 119 at com google android material card materialcardviewhelper getclickableforeground materialcardviewhelper java 634 at com google android material card materialcardviewhelper updateclickable materialcardviewhelper java 274 at com google android material card materialcardview setclickable materialcardview java 365 at android view view setonclicklistener view java 6408 at com sample ui accessactivity initui accessactivity kt 124 android api version target 31 min 23 material library version 1 5 0 alpha02 1 5 0 1 6 0 alpha02 device moto z3 android 9 and emulator error android 7 1 8 9 normal android 10 11 and 12
materialcomponentsmaterialcomponentsandroid
materialbutton text be not align properly with icon
Bug
description create a materialbutton with follow attribute when update the text to a short text like 123 that do not change the width of the button the icon do not align properly and may overlap the text but if the text be long enough like 123456789 to change the button s width everything be alright ezgif com gif maker this bug be more obvious when iconpadde be set to a small number like zero in the gif above iconpadde be 2 expect behavior update the text and icon padding properly even if the button s width do not change android api version api 21 26 29 material library version com google android material material 1 6 0 alpha02
materialcomponentsmaterialcomponentsandroid
m3 top app bar top app bar continue to display drop shadow when elevate
Bug
description the top app bar continue to cast a drop shadow when use the material3 against what the design guideline say expect behavior the intended behavior should be for the top app bar not to cast a shadow as the material design 3 guideline state this be how the top app bar should look note the lack of drop shadow image this be how the top app bar with appbarlayout look in my app right now note the drop shadow but pastel elevation screenshot 20220205 091803 source code I generally use this setup when make a top app bar xml android api version api 32 material library version 1 5 0 test with 1 6 0 alpha02 as well same thing occur device pixel 5 run android 12
materialcomponentsmaterialcomponentsandroid
dynamiccolor app crash when open context menu with onlongclicklistener
Bug
description after upgrade to m3 and enable dynamic color the app crash when open a context menu on android 12 this behavior happen only when I explicitly set an onlongclicklistener to trigger the context menu the app doesn t crash when dynamic color be disabled or not available old android version here be the error log message I get with the stack trace e themeutil view class androidx appcompat widget appcompatimageview be an appcompat widget that can only be use with a theme appcompat theme or descendant e themeutil view class com google android material textview materialtextview be an appcompat widget that can only be use with a theme appcompat theme or descendant e themeutil view class com google android material button materialbutton be an appcompat widget that can only be use with a theme appcompat theme or descendant d androidruntime shut down vm e androidruntime fatal exception main process org example android12 context menu issue pid 11851 android view inflateexception binary xml file line 80 in android layout alert dialog material binary xml file line 37 in android layout alert dialog button bar material error inflate class button cause by android view inflateexception binary xml file line 37 in android layout alert dialog button bar material error inflate class button cause by java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant at com google android material internal themeenforcement checktheme themeenforcement java 241 at com google android material internal themeenforcement checkmaterialtheme themeenforcement java 215 at com google android material internal themeenforcement checkcompatibletheme themeenforcement java 143 at com google android material internal themeenforcement obtainstyledattributes themeenforcement java 75 at com google android material button materialbutton materialbutton java 226 at com google android material button materialbutton materialbutton java 217 at com google android material theme materialcomponentsviewinflater createbutton materialcomponentsviewinflater java 43 at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 129 at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1566 at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1617 at android view layoutinflater trycreateview layoutinflater java 1065 at android view layoutinflater createviewfromtag layoutinflater java 1001 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 parseinclude layoutinflater java 1267 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 538 at android view layoutinflater inflate layoutinflater java 485 at com android internal policy phonewindow setcontentview phonewindow java 461 at com android internal app alertcontroller installcontent alertcontroller java 269 at android app alertdialog oncreate alertdialog java 439 at android app dialog dispatchoncreate dialog java 424 at android app dialog show dialog java 318 at com android internal view menu menudialoghelper show menudialoghelper java 89 at com android internal view menu contextmenubuilder showdialog contextmenubuilder java 90 at com android internal policy decorview showcontextmenuforchildinternal decorview java 859 at com android internal policy decorview showcontextmenuforchild decorview java 829 at android view viewgroup showcontextmenuforchild viewgroup java 978 at android view viewgroup showcontextmenuforchild viewgroup java 978 at android view viewgroup showcontextmenuforchild viewgroup java 978 at android view viewgroup showcontextmenuforchild viewgroup java 978 at android view viewgroup showcontextmenuforchild viewgroup java 978 at android view view showcontextmenu view java 7596 at android widget textview showcontextmenu textview java 11259 at org example android12 context menu issue mainactivity oncreate lambda 0 mainactivity kt 18 at org example android12 context menu issue mainactivity r8 lambda kmxowatxf np4mppc2lqyglll8u unknown source 0 at org example android12 context menu issue mainactivity externalsyntheticlambda2 onlongclick unknown source 0 e androidruntime at android view view performlongclickinternal view java 7521 at android view view performlongclick view java 7479 at android widget textview performlongclick textview java 12633 at android view view performlongclick view java 7497 at android view view checkforlongpress run view java 28635 at android os handler handlecallback handler java 938 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 7839 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 1003 expect behavior the context menu be display and the app doesn t crash source code app kt kotlin class app application override fun oncreate super oncreate dynamiccolor applytoactivitiesifavailable this mainactivity kt kotlin class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val textview textview findviewbyid r i d text view textview setonlongclicklistener v v showcontextmenu textview setoncreatecontextmenulistener menu menu add menu none r i d action show snackbar menu none show snackbar setonmenuitemclicklistener snackbar make textview hello world snackbar length long show true activity main xml xml theme xml build with xml android api version 31 material library version 1 5 0 1 6 0 alpha02 device pixel 4a physical
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 please consider attach a minimal sample app that reproduce the issue 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
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 please consider attach a minimal sample app that reproduce the issue 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
chip layout preview break for chip
Bug
description the layout preview xml inside android studio be break for all chip expect behavior show the chip in the layout preview of android studio material library version com google android material material 1 6 0 alpha02
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout title shadow do not respect maxline in expand state
Bug
when add shadow to the title text of collapsingtoolbarlayout like the title do not respect the multiline nature of the tile and behave weirdly render shadow like text be in one line only see below screenshot 20220203 090359 mushroom app use com google android material material 1 6 0 alpha02 but happen with 1 5 as well not sure when this stop work correctly but it use to in the past
materialcomponentsmaterialcomponentsandroid
adjustresize no long work in 1 6 0 alpha02 when activity have transparent navigationbarcolor
Bug
in version 1 5 0 this use to work with no problem but in 1 6 0 alpha02 it no long work step run the below project with material 1 5 0 click on the click here to open the dialog and then click on the click here to open the keyboard when the keyboard open the entirety of the dialog be move above the keyboard correctly this be the intend behavior when repeat the above with 1 6 0 alpha02 the dialog will no long move above the keyboard cause the entire dialog to be cover by the keyboard make it impossible to see what be be enter as far as I could find the issue only happen in 1 6 0 alpha02 when I use android color transparent if I remove that then the issue no long occur sample project file below mainactivity kt java class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main fun show view view roundedbottomsheetdialogfragment show supportfragmentmanager tag activity main xml xml roundedbottomsheetdialogfragment kt java class roundedbottomsheetdialogfragment bottomsheetdialogfragment override fun gettheme int r style bottomsheetdialogthemenofloate override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setstyle style normal r style bottomsheetdialogthemenofloate override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle view return inflater inflate r layout dialog container false override fun oncreatedialog savedinstancestate bundle dialog val bottomsheetdialog bottomsheetdialog requirecontext theme bottomsheetdialog behavior isdraggable false return bottomsheetdialog theme xml xml dialog xml xml
materialcomponentsmaterialcomponentsandroid
color some attribute have be mark as private
Bug
description on use certain attribute such as colorprimarycontainer and colorsecondartcontainer I get the follow warning in android studio the resource attr colorprimarycontainer be mark as private in com google android material material 1 6 0 alpha02 this warning however do not affect the build application expect behavior these attribute be not suppose to be private source code this warning show in resource file xml android color attr colorprimarycontainer as well as in code java materialcolors getcolor context r attr colorprimarycontainer 0 android api version android api 31 material library version 1 6 0 alpha02 device ubuntu 20 04 run android studio bumblebee 2021 1 1
materialcomponentsmaterialcomponentsandroid
transition materialcontainertransition not follow child scroll
Bug
description when use a materialcontainertransition on fragment go back and scroll immediately cause the share element to stick in its original position instead of scroll with the content it belong to expect behavior scroll on a child should cause the share element to follow the scrolled child as if it be already part of it source code the catalog can be use to reproduce this issue more specifically the branch master be use to reproduce this bug with the catalog the commit 3cf23e4 be the late at the time I m write this issue in the video include below the bug be produce by the materialcontainertransform use here l71 l75 android api version android 12 sdk 31 material library version master v1 6 0 alpha02 all commit until 3cf23e4 device pixel 6 pro additional information here s a video of the bug in action use the m3 catalog
materialcomponentsmaterialcomponentsandroid
attribute coloronsurfacevariant be set as private
Bug
I be wonder why be the attribute coloronsurfacevariant set as private shouldn t this one be public
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton shrink break in android light mode
Bug
description extendedfloatingactionbutton shrink work differently in light dark mode in android in dark mode it work correctly but in light mode it be move to the right side dark mode image light mode image the same thing happen when I remove the text from element image source code material library version material android library version 1 5 0
materialcomponentsmaterialcomponentsandroid
system navigation bar get intransparent due to white bottom bar
Bug
description I m use a viewpager2 together with a t ablayout and an edge to edge design with a transparent system navigation bar as child of the viewpager2 a recyclerview list be implement when scroll down the list a white bar at the bottom appear as soon as the tab disappear at the top this cause the initially transparent system navigation bar to be intransparent again it s not possible to keep this bar hide by use android cliptopadde false when scroll down it seem to be a bug as the logic maybe use a wrong layout height I m use material design m3 1 6 0 alpha02 I ve briefly describe the issue in the google issue tracker include a video but didn t get a feedback yet maybe the reason for the miss feedback be that the issue be not relate to viewpager2 but to material design what do you think expect behavior android cliptopadde false will prevent the white bar at the bottom to appear when scroll down the list android api version 10 11 12 material library version com google android material material 1 6 0 alpha02 device test on multiple real device and android version but I mainly test on a pixel 5 emulator with android 11
materialcomponentsmaterialcomponentsandroid
bottom navigationbar icon get reverse with late update
Bug
implementation com google android material material 1 6 0 alpha02 from 1 5 0 bottom navigation icon get reverse title get on top of image screenshot 1643097186
materialcomponentsmaterialcomponentsandroid
materialcardview attempt to invoke virtual method void android graphic drawable drawable setcallback android graphic drawable drawable callback on a null object reference
Bug
version 1 5 0 and above and android 9 and below only app checkedicon null cause crash when click listener be set I use actionmode and need to mark item in the list as check I do not want to show checkedicon so I set it to null as below this set it to null cause crash when I set click listener to the card issue be not present on 1 4 0 crash log java lang nullpointerexception attempt to invoke virtual method void android graphic drawable drawable setcallback android graphic drawable drawable callback on a null object reference at android graphic drawable layerdrawable layerdrawable java 141 at android graphic drawable layerdrawable layerdrawable java 119 at com google android material card materialcardviewhelper getclickableforeground materialcardviewhelper java 611 at com google android material card materialcardviewhelper updateclickable materialcardviewhelper java 267 at com google android material card materialcardview setclickable materialcardview java 319 at android view view setonclicklistener view java 6462 at com test example ui viewpager recordings adapter recordingdbitemviewholder bind recordingdbitemviewholder kt 45 at com test example ui viewpager recordings adapter recordingdbadapter onbindviewholder recordingdbadapter kt 182 at androidx recyclerview widget recyclerview adapter onbindviewholder recyclerview java 7403 at androidx recyclerview widget recyclerview adapter bindviewholder recyclerview java 7486 at androidx recyclerview widget recyclerview recycler trybindviewholderbydeadline recyclerview java 6343 at androidx recyclerview widget recyclerview recycler trygetviewholderforpositionbydeadline recyclerview java 6609 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6449 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6445 at androidx recyclerview widget linearlayoutmanag layoutstate next linearlayoutmanager java 2330 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1631 at androidx recyclerview widget linearlayoutmanager fill linearlayoutmanager java 1591 at androidx recyclerview widget linearlayoutmanag onlayoutchildren linearlayoutmanag java 668 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4447 at androidx recyclerview widget recyclerview dispatchlayout recyclerview java 4150 at androidx recyclerview widget recyclerview onlayout recyclerview java 4716 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget framelayout layoutchildren framelayout java 325 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at androidx coordinatorlayout widget coordinatorlayout layoutchild coordinatorlayout java 1248 at androidx coordinatorlayout widget coordinatorlayout onlayoutchild coordinatorlayout java 934 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java 954 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget framelayout layoutchildren framelayout java 325 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at androidx recyclerview widget recyclerview layoutmanager layoutdecoratedwithmargin recyclerview java 10027 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1689 at androidx recyclerview widget linearlayoutmanager fill linearlayoutmanager java 1591 at androidx recyclerview widget linearlayoutmanag onlayoutchildren linearlayoutmanag java 668 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4447 at androidx recyclerview widget recyclerview dispatchlayout recyclerview java 4150 at androidx recyclerview widget recyclerview onlayout recyclerview java 4716 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 2022 01 24 20 11 12 004 18577 18577 com test example e androidruntime at androidx viewpager2 widget viewpager2 onlayout viewpager2 java 533 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at com google android material appbar headerscrollingviewbehavior layoutchild headerscrollingviewbehavior java 148 at com google android material appbar viewoffsetbehavior onlayoutchild viewoffsetbehavior java 43 at com google android material appbar appbarlayout scrollingviewbehavior onlayoutchild appbarlayout java 2122 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java 953 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget relativelayout onlayout relativelayout java 1083 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget framelayout layoutchildren framelayout java 325 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget framelayout layoutchildren framelayout java 325 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget framelayout layoutchildren framelayout java 325 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget linearlayout setchildframe linearlayout java 1842 at android widget linearlayout layoutvertical linearlayout java 1686 at android widget linearlayout onlayout linearlayout java 1595 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android widget framelayout layoutchildren framelayout java 325 at android widget framelayout onlayout framelayout java 261 at com android internal policy decorview onlayout decorview java 902 at android view view layout view java 20948 at android view viewgroup layout viewgroup java 6279 at android view viewrootimpl performlayout viewrootimpl java 3037 at android view viewrootimpl performtraversal viewrootimpl java 2545 at android view viewrootimpl dotraversal viewrootimpl java 1636 at android view viewrootimpl traversalrunnable run viewrootimpl java 7946 at android view choreographer callbackrecord run choreographer java 1092 at android view choreographer docallback choreographer java 893 at android view choreographer doframe choreographer java 812 at android view choreographer framedisplayeventreceiver run choreographer java 1078 at android os handler handlecallback handler java 907 at android os handler dispatchmessage handler java 105 at android os looper loop looper java 216 at android app activitythread main activitythread java 7625 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 524 at com android internal os zygoteinit main zygoteinit java 987
materialcomponentsmaterialcomponentsandroid
textinputlayout android studio preview weight be out of range of 0 1000 too low
Bug
java lang illegalargumentexception weight be out of range of 0 1000 too low at com android internal util precondition checkargumentinrange precondition java 527 at android graphic typeface create original typeface java 979 at android graphic typeface delegate create typeface delegate java 123 at android graphic typeface create typeface java 979 at com google android material internal collapsingtexthelper maybeclonewithadjustment collapsingtexthelper java 532 at com google android material internal collapsingtexthelper setcollapsedtypefaceinternal collapsingtexthelper java 475 at com google android material internal collapsingtexthelper setcollapsedtypeface collapsingtexthelper java 447 at com google android material internal collapsingtexthelp 1 apply collapsingtexthelper java 403 at com google android material resource cancelablefontcallback updateifnotcancelled cancelablefontcallback java 69 at com google android material resource cancelablefontcallback onfontretrieve cancelablefontcallback java 49 at com google android material resource textappearance getfontasync textappearance java 187 at com google android material internal collapsingtexthelper setcollapsedtextappearance collapsingtexthelper java 407 at com google android material textfield textinputlayout sethinttextappearance textinputlayout java 1815 at com google android material textfield textinputlayout textinputlayout java 625 at com google android material textfield textinputlayout textinputlayout java 432 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 336 at org jetbrains android uipreview viewloader loadclass viewloader java 173 at org jetbrains android uipreview viewloader loadview viewloader java 133 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 301 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater inflate layoutinflater java 660 at android view layoutinflater inflate layoutinflater java 538 at com eygraber date time input xml timeinputview timeinputview kt 125 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 336 at org jetbrains android uipreview viewloader loadclass viewloader java 173 at org jetbrains android uipreview viewloader loadview viewloader java 133 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 301 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 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 363 at com android layoutlib bridge bridge createsession bridge java 436 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 739 at com android tool idea render rendertask lambda inflate 8 rendertask java 895 at com android tool idea render renderexecutor runasyncactionwithtimeout 2 run renderexecutor kt 187 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829
materialcomponentsmaterialcomponentsandroid
textinputlayout preview linearlayout can not be cast to class textinputlayout
Bug
I have a custom view that use textinputlayout the follow code result in the follow error in android studio s preview run the code doesn t have a problem class timeinputview jvmoverloads constructor context context attrs attributeset null constraintlayout context attrs private val hourcontainerview textinputlayout init hourcontainerview findviewbyid r i d hourcontainer java lang classcastexception class android widget linearlayout can not be cast to class com google android material textfield textinputlayout android widget linearlayout be in unnamed module of loader com intellij ide plugin cl pluginclassloader 117a8e11 com google android material textfield textinputlayout be in unnamed module of loader org jetbrains android uipreview moduleclassloader 67f5f66 at com eygraber date time input xml timeinputview timeinputview kt 128 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 336 at org jetbrains android uipreview viewloader loadclass viewloader java 173 at org jetbrains android uipreview viewloader loadview viewloader java 133 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 301 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 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 363 at com android layoutlib bridge bridge createsession bridge java 436 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 739 at com android tool idea render rendertask lambda inflate 8 rendertask java 895 at com android tool idea render renderexecutor runasyncactionwithtimeout 2 run renderexecutor kt 187 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829
materialcomponentsmaterialcomponentsandroid
navigationbaritem navigationbaritem can not set indication
Bug
description navigationbaritem can not set indication android api version 12 material library version material3 1 0 0 alpha03 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
textinputlayout setendiconmode clear the current end icon drawable
Bug
description when call setendiconmode the current end icon drawable be set to null expect behavior any previously set icon will still be present source code kotlin textinputlayout setendicondrawable r drawable ic validation pass textinputlayout endiconmode end icon custom end icon drawable be remove textinputlayout endiconcontentdescription validationpassdescription android api version android api 30 material library version 1 5 0 device emulator api 29 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
navigationrailview fab shadow be on the left instead of bottom
Bug
description when set a navigationrailview headerlayout contain a floatingactionbutton it s shadow be cast on the wrong side leave instead of bottom expect behavior the shadow be cast on the bottom side screenshot 1642580893 source code small sample navigationrailissue zip android api version 12l material library version 1 5 0 1 6 0 alpha02 device emulator
materialcomponentsmaterialcomponentsandroid
chipdrawable settext method seem not applicable with spannablestring
Bug
description as title chipdrawable settext seem not work with spannablestring expect behavior expect chipdrawable settext be applicable with spannablestring or give more chip text style set method like pr 1165 request source code make a chip xml in res xml xml kotlin val chipdrawable chipdrawable createfromresource context r xml chip val chiptext text start set span val textcolorspan foregroundcolorspan getcolor android r color holo red light chipdrawable text spannablestringbuilder chiptext apply setspan textcolorspan 0 chiptext length 0 not work unlike any other component such as textview above code will work android api version 11 material library version 1 4 0 I try it in 1 5 0 too the problem still exist device any
materialcomponentsmaterialcomponentsandroid
theme material3 light dynamiccolor applytoactivitiesifavailable affect on forcedarkallowe true behavior
Bug
hi description the app use theme material3 light noactionbar theme with android forcedarkallowe true attribute also apply dynamic color feature through dynamiccolor applytoactivitiesifavailable in app color don t tailor to the enabled dark theme exclude dialog with disabled dynamic color feature all work fine it be expect behavior expect behavior color must be change accord to the forcedarkallowe true attribute source code android api version 31 material library version 1 5 0 rc01 or 1 6 0 alpha01 device pixel 4a thank
materialcomponentsmaterialcomponentsandroid
materialtimepicker ui test support for materialtimepicker
Bug
description I want to replace the default android timepicker with the new materialtimepicker but test it be difficult compare to the normal timepicker espresso picker action be not work for the new time picker what be the way to set the time for a new time picker for the ui test old way set a time in a time picker widget onview isassignablefrom timepicker class java perform settime calendar get calendar hour of day calendar get calendar minute
materialcomponentsmaterialcomponentsandroid
main activity go to background as a result of morph animation
Bug
I have multiple activity include multiple fragment I try to display morph animation from a recyclerview item in 1st fragment to an imageview in 2nd fragment 1st fragment go to background it become a bit dark and when I return back from 2nd fragment when view lay out in its place in recyclerview 1st fragment come to foreground it become light it look like a blink in whole screen in 1st activity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate window requestfeature window feature activity transition setexitsharedelementcallback materialcontainertransformsharedelementcallback in 1st fragment override fun onclick t t poster view val intent intent activity detailactivity class java apply putextras bundle apply putparcelable extra tmdb item t putparcelable extra nav type navtype val option activityoption makescenetransitionanimation activity poster t name startactivity intent option tobundle in 2nd activity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate window requestfeature window feature activity transition set up share element transition setentersharedelementcallback materialcontainertransformsharedelementcallback window sharedelemententertransition getcontenttransform window sharedelementreturntransition getcontenttransform get a material container arc transform private fun getcontenttransform materialcontainertransform return materialcontainertransform apply addtarget r i d detail poster duration 450 pathmotion materialarcmotion in 2nd fragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view super oncreateview inflater container savedinstancestate viewcompat settransitionname bind detailsposter tmdbitem name source code can be find here do you know how can I avoid 1st fragment in 1st activity go to background
materialcomponentsmaterialcomponentsandroid
slider ripple be draw underneath the slider
Bug
description this issue occur while use wavelet play store it be a mirror of this issue which I encounter use the app however I be not the developer so I doubt I will be able to properly address this issue and cite specific the app be open source so that might be helpful in diagnosis expect behavior the ripple be render over the slider android api version test and observe on api version 30 android 11 material library version not sure device this bug be observe on a curtana miatoll redmi note 9 pro india redmi note 9s run lineage os official
materialcomponentsmaterialcomponentsandroid
divid extra space when lastitemdecorate false
Bug
description extra space for a separator be allocate under the last element even if lastitemdecorate false expect behavior if lastitemdecorate false there should be neither a separator nor a space allocate for a separator under the last element how to check open divideritemdecorationdemofragment java from catalog project configure divider as follow materialdivideritemdecoration divid new materialdivideritemdecoration getcontext linearlayoutmanag vertical divider setlastitemdecorate false divid setdividerthickness 128 for a more noticeable effect recyclerview additemdecoration divider material library version 1 6 0 beta01
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment top inset not apply after configuration change
Bug
description bottomsheetdialogfragment do not apply any top inset after a configuration change when the bottom sheet be expand and lay out edge to edge this cause content to be draw behind the status bar the top inset get apply only when the user start scroll the bottomsheet content expect behavior after a configuration change the top inset for a bottomsheetdialogfragment should be apply directly source code android api version test on api 28 and up material library version 1 4 0 and up device device independent
materialcomponentsmaterialcomponentsandroid
textinputlayout render problem 1 6 0 alpha01
Bug
description I be face a crash at textinputlayout after update my material android library to version 1 6 0 alpha01 from 1 5 0 rc01 expect behavior 1 5 render good 1 5 1 6 render problem 1 6 source code font use google inter regular theme xml
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder unable to set different body text size
Bug
description the text size of the body in materialalertdialogbuilder can t be change by define a textsize via materialalertdialogbodytextstyle and textappearance materialcomponent body2 the text size of the body always seem to fallback to a small default size of 12sp see source code below expect behavior I would expect the body text size to change with textsize but although I ve define a large textsize of 30sp for testing purpose the size doesn t change at all on the other hand the text size of the title be work as expect and be set to 16sp screenshot source code I m change the appearance of all dialog in my app by implement the follow styling in the base theme and as override I m use the the follow styling to create the dialog I m use the follow java code materialalertdialogbuilder dialogbuilder new materialalertdialogbuilder mcontext I be search in the forum and be try different various but non of they be work in my case be this a bug or do I have to change the text size a different way android api version 10 11 12 material library version com google android material material 1 4 0 com google android material material 1 5 0 rc01 com google android material material 1 6 0 alpha01 device test on multiple real device and android version but I mainly test on a pixel 5 emulator with android 11
materialcomponentsmaterialcomponentsandroid
textinputlayout setboxbackgroundcolor ffffffff but auto change color to violet my gallery color efefef
Bug
image image
materialcomponentsmaterialcomponentsandroid
tablayout tabbackground with drawable crash in pre lollipop
Bug
description I implement page dot indicator by use tablayout it be perfectly work in lollipop but in pre lolllipop device it fail with these log android view inflateexception binary xml file line 27 error inflate class com google android material tab tablayout at android view layoutinflater createview layoutinflater java 621 at android view layoutinflater createviewfromtag layoutinflater java 697 cause by android content re resource notfoundexception file re drawable indicator selector xml from drawable resource i d 0x7f080083 at android content re resource loaddrawable resource java 2101 at android content re resource getdrawable resource java 700 I use app tabbackground to put circle drawable in indicator selector xml I m do to support backward compatibility for vector drawable in build gradle defaultconfig vectordrawable usesupportlibrary true expect behavior dot indicator with drawable lolipop and beyond be work perfectly fine image android api version 16 material library version 1 4 0 device emulator nexus 5
materialcomponentsmaterialcomponentsandroid
textinputlayout I use errorenable true but it not show red border
Bug
image image
materialcomponentsmaterialcomponentsandroid
time picker ui bug in negative button
Bug
description in time picker I have encounter that design of positive and negative button be different from expect default value in addition negative button prevent click of keyboard icon in the layout expect behavior button design must be same as expect design source code bind edittextdialogtime clickwiththrottle val timepicker materialtimepicker builder sethour gatherhourfromdate calendarevent timeinmillis setminute gatherminutefromdate calendarevent timeinmillis settitletext context resource getstre r string dialog group page event time picker title settheme com hms referenceapp eventtracker common r style customtimepicker build timepicker addonpositivebuttonclicklistener calendarevent set calendar hour of day timepicker hour calendarevent set calendar minute timepicker minute bind textinputlayoutdialogtime placeholdertext convertlongtotimewithdot calendarevent timeinmillis timepicker show this parentfragmentmanager hms device problematic behaviour gms device expect behaviour android api version 29 material library version com google android material material 1 4 0 device huawei p40 lite jny lx1 have a nice day
materialcomponentsmaterialcomponentsandroid
dynamiccolor manufacturer list block use dynamic color
Bug
description from 1 5 0 beta01 manufacturere list be add to check if dynamic color be available or not this condition block use dynamic color on some device even think it run on android 12 expect behavior 1 sufficient explanation about the manufacturer list be need on material component home page 2 the way to add new manufacturer to the list must be guide 3 what be the contact point to discuss add new manufacturer to the list source code private static final set dynamic color support manufacturer new hashset array aslist oppo realme oneplus vivo xiaomi motorola itel tecno mobile limited infinix mobility limit hmd global sharp sony tcl lenovo google robolectric public static boolean isdynamiccoloravailable return version sdk int version code s dynamic color support manufacturer contain build manufacturer tolowercase android api version 31 material library version 1 5 0 beta01 or late device device of manufacturer except for the dynamic color support manufacturer list 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
textinputlayout talkback focus prefix text after edit
Bug
description on a textinputlayout that have prefix text use the app prefixtext attribute talkback will focus and read the prefix text when the user swipe right after edit the text input the same behavior be also notice with suffix text you can observe this behavior in the material catalog app under text field prefix and suffix text field demo step enable talkback swipe right to select the text field double tap to edit text swipe right again this will select the prefix text expect behavior after editing and the user swipe right talkback will select the next control element in the view not the prefix text source code xml android api version 30 material library version 1 4 0 device multiple nokia g10 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
bottom navigation view height increase after destroy the foreground app and reopen
Bug
description full description of issue here I be work on a sample app that use material 3 bottom navigation view everything look good on the first launch but when you destroy the app and reopen it again it increase the height of the bottom nav view when height be set to wrap parent expect behavior screenshot and or description of expect behavior on first launch screenshot 1639023876 after screenshot 1639023885 source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here target 31 compile 31 material library version material android library version you be use here e g 1 1 0 alpha07 1 6 0 alpha01 device device on which the bug be encounter here 1 emulator run on api 31 2 pixel 4xl run on android 12
materialcomponentsmaterialcomponentsandroid
add theme material3 daynight noactionbar give you a throwable in you activity or app
Bug
description I have add the theme material3 daynight noactionbar theme to our app a weird exception be be throw detail below this throwable come at every screen I go to I have enable dyanamic color too update 0 103 1080x2237 gr top start center display clip vertical sim state unchanged ty application panel fmt translucent wanim 0x10302f5 surfaceinset rect 0 0 0 0 manual fl not focusable split touch flag layout attach in decor pfl will not replace on relaunch layout child window in parent frame bhv default fittype status bar navigation bar caption bar by setview java lang throwable at android view viewrootimpl setview viewrootimpl java 1060 at android view windowmanagerglobal addview windowmanagerglobal java 431 at android view windowmanagerimpl addview windowmanagerimpl java 133 at android widget popupwindow invokepopup popupwindow java 1576 at android widget popupwindow showasdropdown popupwindow java 1423 at android widget popupwindow showasdropdown popupwindow java 1379 at android widget popupwindow showasdropdown popupwindow java 1358 at com mine widget tooltip tooltipview show tooltipview java 131 at com mine widget tooltip tooltipbuilderhelper showtooltipview tooltipbuilderhelper kt 28 at com mine api tooltipbuilder showtooltipview tooltipbuilder java 59 at com mine ui component tooltipactivity oncreate 6 onclick tooltipactivity kt 69 at android view view performclick view java 7458 at com google android material button materialbutton performclick materialbutton java 1131 at android view view performclickinternal view java 7435 at android view view access 3700 view java 838 at android view view performclick run view java 28766 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper looponce looper java 226 at android os looper loop looper java 329 at android app activitythread main activitythread java 8035 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 1026 expect behavior I have make custom tooltip early it be suppose to be hinge to anchorview now it just go to top of screen source code every app which implement get this error android api version 12 material library version 1 6 0 alpha01 device any android s device
materialcomponentsmaterialcomponentsandroid
bottomnavigationview item padding top bottom activeindicator not work
Bug
description full description of issue here material3 bottomnavigationview indicator not show and title text and icon be mess up the indicator be not show and pad top and bottom doesn t work screenshot 20211205 124513 test navbar even if I override the style it still doesn t work screenshot 20211205 110105 sketchware pro 2 expect behavior screenshot and or description of expect behavior this be my expect behavior from google material catalog app img 20211205 105944 android api version android api version here my api version be android 11 sdk 30 material library version material android library version you be use here e g 1 1 0 alpha07 the version I ve use be the late one 1 5 0 beta01 device device on which the bug be encounter here on my device 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
slider expose library only api cause lint error
Bug
description full description of issue here lint error when use slider listener expect behavior screenshot and or description of expect behavior no lint error see for answer from lint agp team about what material team need to change
materialcomponentsmaterialcomponentsandroid
materialcalendar wrongfragmentcontainerviolation after upgrade to androidx fragment 1 4
Bug
description after upgrade to androidx fragment 1 4 and enable the fragment strictmode check the follow violation be log androidx fragment app strictmode wrongfragmentcontainerviolation attempt to add fragment materialcalendar 5c68b97 c8f6147b f1c9 4f97 9f40 140b8b6380fe i d 0x7f090151 to container android widget framelayout 1dba184 v e I 0 0 0 0 7f090151 app i d mtrl calendar frame which be not a fragmentcontainerview at androidx fragment app strictmode fragmentstrictmode onwrongfragmentcontainer fragmentstrictmode kt 204 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 518 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 261 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1840 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1758 at androidx fragment app fragmentmanager execsingleaction fragmentmanager java 1670 at androidx fragment app backstackrecord commitnow backstackrecord java 317 at com google android material datepicker materialdatepicker startpickerfragment materialdatepicker java 344 at com google android material datepicker materialdatepicker onstart materialdatepicker java 288 at androidx fragment app fragment performstart fragment java 3053 at androidx fragment app fragmentstatemanager start fragmentstatemanager java 587 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 279 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1840 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1764 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1701 at androidx fragment app fragmentmanager 4 run fragmentmanager java 488 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 material library version 1 4 0
materialcomponentsmaterialcomponentsandroid
bottomnavigationview illegalargumentexception in preview mode
Bug
description after update from 1 4 0 to 1 5 0 or 1 6 0 bottomnavigationview can t be display in ide editor image expect behavior display without exception source code android api version 30 31 material library version 1 6 0 alpha01 device android studio layout editor stacktrace java lang illegalargumentexception motion ease theme attribute must be a string at com google android material motion motionutil resolvethemeinterpolator motionutil java 59 at com google android material navigation navigationbarmenuview navigationbarmenuview java 121 at com google android material bottomnavigation bottomnavigationmenuview bottomnavigationmenuview java 48 at com google android material bottomnavigation bottomnavigationview createnavigationbarmenuview bottomnavigationview java 215 at com google android material navigation navigationbarview navigationbarview java 162 at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 108 at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 103 at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 98 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 399 at org jetbrains android uipreview viewloader loadclass viewloader java 189 at org jetbrains android uipreview viewloader loadview viewloader java 147 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 303 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate original layoutinflater java 1121 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1095 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 499 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 353 at com android layoutlib bridge bridge createsession bridge java 431 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 141 at com android tool idea render rendertask createrendersession rendertask java 714 at com android tool idea render rendertask lambda inflate 7 rendertask java 870 at com android tool idea render renderexecutor runasyncactionwithtimeout 2 run renderexecutor kt 187 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 834
materialcomponentsmaterialcomponentsandroid
mat input autcomplete off not work
Bug
I be use autocomplete off with mat input but still show auto suggestion when I type in input box
materialcomponentsmaterialcomponentsandroid
bottomnavigationview badge background text color bug when restart activity
Bug
description when the activity be restart for example switch from light mode to dark mode the style backgroundcolor and badgetextcolor be not change and only show correctly when the app be launch in either of these theme light mode before switch to night mode image after switch to night mode image after relaunche app entirely image expect behavior when an activity be recreate it should use the appropriate style define for the light dark mode source code value style xml value night style xml android api version android s api 31 android r api 30 material library version 1 4 0 device google pixel 3a google pixel 4
materialcomponentsmaterialcomponentsandroid
materialtimepicker nullpointerexception on materialtimepicker initializeorretrieveactivepresenterformode method
Bug
description a few day ago firebase report the error fatal exception java lang nullpointerexception attempt to invoke virtual method void com google android material timepicker timepickerview addonrotatelistener com google android material timepicker clockhandview onrotatelistener on a null object reference at com google android material timepicker timepickerclockpresenter initialize timepickerclockpresenter java 78 at com google android material timepicker timepickerclockpresenter timepickerclockpresenter java 69 at com google android material timepicker materialtimepicker initializeorretrieveactivepresenterformode materialtimepicker java 311 at com google android material timepicker materialtimepicker updateinputmode materialtimepicker java 301 at com google android material timepicker materialtimepicker access 700 materialtimepicker java 59 at com google android material timepicker materialtimepicker 4 onclick materialtimepicker java 263 at android view view performclick view java 6608 at com google android material button materialbutton performclick materialbutton java 1119 at android view view performclickinternal view java 6585 at android view view access 3100 view java 785 at android view view performclick run view java 25921 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 201 at android app activitythread main activitythread java 6810 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 547 at com android internal os zygoteinit main zygoteinit java 873 firebase report this error for only once during 90 day obs I could not reproduce the error expect behavior screenshot and or description of expect behavior source code I search on my app for usage of materialtimepicker and I find only one fun showtimepickerfor fragmentmanager fragmentmanager date date completion date unit val datecalendar calendar getinstance date let datecalendar time it val hour datecalendar get calendar hour of day val min datecalendar get calendar minute val timepicker materialtimepicker builder settimeformat timeformat clock 24h sethour hour setminute min settitletext r string start when build timepicker addonpositivebuttonclicklistener datecalendar set calendar hour of day timepicker hour datecalendar set calendar minute timepicker minute completion datecalendar time timepicker show fragmentmanager null android api version 28 material library version 1 4 0 device redmi note 7
materialcomponentsmaterialcomponentsandroid
m3 dialog hero icon and title alignment inconsistent with documentation
Bug
description the m3 documentation show dialog with so call hero icon above and align centrally with the title however when create a dialog with materialalertdialogbuilder the title and icon be display inline to the top leave expect behavior source code this code kotlin materialalertdialogbuilder requirecontext setitem item dialog which settitle r string pick image title seticon r drawable ic image setnegativebutton r string cancel dialog dialog dismiss show produce screenshot 20211124 163622 android api version 31 material library version 1 5 0 beta01 device android 12 emulator
materialcomponentsmaterialcomponentsandroid
calendardatepicker how to include calendardatepicker use apptheme theme appcompat noactionbar
Bug
description we be not plan to migrate apptheme from appcompat to materialcomponent theme but we be ok to inherit same theme in appcompat and use materialdatepicker when I run the application calendar cell text be not align to center expect behavior please find attach calendarviewerror where cell text be not in center and extra additional ui distortion source code I have use below style as my apptheme and invoke material calendardatepicker to select range of date please find attach sourcecode daterange zip android api version 26 material library version 1 4 0 device nexus 6p 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
material3 theme can not find material3 theme
Bug
android studio can t find material3 theme when use last version of library note also doesn t offer any autocomplete like theme material3 lib version 1 5 0 beta01 target sdk 31 min sdk 23 android studio 2020 3 1
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout huawei oneplus poco toolbar visibility issue
Bug
description collapsingtoolbarlayout work fine on most of device except huawei oneplus poco and maybe some other if there be custom layout e g framelayout with view add to toolbar inside collapsingtoolbarlayout it become empty until activity recreate method be call step to reproduce 1 setup appbar layout xml 2 add some custom view to toolbar layout in fragment oncreateoptionsmenu expect behavior expect toolbar view be visible as on samsung pixel etc device image actual toolbar be empty with app name title in app bar only on huawei oneplus poco device 1 2 screenshot 20211119 120519 screenshot 20211119 120558 android api version api 23 material library version 1 4 0 and high all version actually include 1 5 0 beta01 device huawei p40 lite oneplus 7 t pro poco x3 nfc
materialcomponentsmaterialcomponentsandroid
switch look different to setting and other android 12 app
Bug
description the switch in android 12 build in app such as clock look like this image which match up with the switch in setting image however when I make my own app with theme material3 the switch look different image expect behavior the switch be consistent with system app source code app zip android api version 31 material library version 1 5 0 beta01 device google pixel 5 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
datepicker month be cut and can t change text color
Bug
description not able to change text color see the encircled part in the image sample inconsistency ui depend on api level month name be cut see the second encircled part in the image sample expect behavior ability to have fully customization on text color source code datepickerdialog datepickerdialog new datepickerdialog this r style appdatepicker datesetlistener year month day android api version 21 material library version 1 5 0 alpha05 device samsung j120h api 21 screenshot 1636861434653 api 30 image
materialcomponentsmaterialcomponentsandroid
tab npe when viewpager dataset change in tablayout calculatescrollxfortab
Bug
description full description of issue here java lang nullpointerexception attempt to invoke virtual method int android view view getleft on a null object reference at com google android material tabs tablayout calculatescrollxfortab tablayout java 1883 at com google android material tabs tablayout setscrollposition tablayout java 689 at com google android material tabs tablayout tablayoutonpagechangelistener onpagescrolle tablayout java 3363 at androidx viewpager widget viewpager dispatchonpagescrolle viewpager java 1930 at androidx viewpager widget viewpager onpagescrolle viewpager java 1904 at androidx viewpager widget viewpager pagescrolle viewpager java 1842 at androidx viewpager widget viewpager computescroll viewpager java 1802 at android view view updatedisplaylistifdirty view java 21372 at android view view draw view java 22254 at android view viewgroup drawchild viewgroup java 4541 at android view viewgroup dispatchdraw viewgroup java 4302 at androidx constraintlayout widget constraintlayout dispatchdraw constraintlayout java 1994 at android view view updatedisplaylistifdirty view java 21380 at android view viewgroup recreatechilddisplaylist viewgroup java 4525 at android view viewgroup dispatchgetdisplaylist viewgroup java 4498 at android view view updatedisplaylistifdirty view java 21349 at android view viewgroup recreatechilddisplaylist viewgroup java 4525 at android view viewgroup dispatchgetdisplaylist viewgroup java 4498 at android view view updatedisplaylistifdirty view java 21349 at android view viewgroup recreatechilddisplaylist viewgroup java 4525 at android view viewgroup dispatchgetdisplaylist viewgroup java 4498 at android view view updatedisplaylistifdirty view java 21349 at android view viewgroup recreatechilddisplaylist viewgroup java 4525 at android view viewgroup dispatchgetdisplaylist viewgroup java 4498 at android view view updatedisplaylistifdirty view java 21349 at android view viewgroup recreatechilddisplaylist viewgroup java 4525 at android view viewgroup dispatchgetdisplaylist viewgroup java 4498 at android view view updatedisplaylistifdirty view java 21349 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 559 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 565 at android view threadedrenderer draw threadedrenderer java 647 at android view viewrootimpl draw viewrootimpl java 4448 at android view viewrootimpl performdraw viewrootimpl java 4175 at android view viewrootimpl performtraversal viewrootimpl java 3422 at android view viewrootimpl dotraversal viewrootimpl java 2206 at android view viewrootimpl traversalrunnable run viewrootimpl java 8763 at android view choreographer callbackrecord run choreographer java 1352 at android view choreographer docallback choreographer java 1149 at android view choreographer doframe choreographer java 1049 at android view choreographer framedisplayeventreceiver run choreographer java 1333 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 233 at android app activitythread main activitythread java 8068 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 631 at com android internal os zygoteinit main zygoteinit java 978 expect behavior screenshot and or description of expect behavior check null and handle selectedchild when it s null source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue java private int calculatescrollxfortab int position float positionoffset if mode mode scrollable mode mode auto final view selectedchild slidingtabindicator getchildat position final view nextchild position 1 slidingtabindicator getchildcount slidingtabindicator getchildat position 1 null final int selectedwidth selectedchild null selectedchild getwidth 0 final int nextwidth nextchild null nextchild getwidth 0 base scroll amount place center of tab in center of parent int scrollbase selectedchild getleft selectedwidth 2 getwidth 2 offset amount fraction of the distance between center of tab int scrolloffset int selectedwidth nextwidth 0 5f positionoffset return viewcompat getlayoutdirection this viewcompat layout direction ltr scrollbase scrolloffset scrollbase scrolloffset return 0 in the line below java final int selectedwidth selectedchild null selectedchild getwidth 0 final int nextwidth nextchild null nextchild getwidth 0 base scroll amount place center of tab in center of parent int scrollbase selectedchild getleft selectedwidth 2 getwidth 2 when caculate selectedwidth selectedchild null have check but when calculate scrollbase have not check npe for selectedchild android api version android api version here 31 material library version material android library version you be use here e g 1 1 0 alpha07 1 4 0 device device on which the bug be encounter here all device 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
collapsingtoolbarlayout title break after collapse expand
Bug
description the title in the collapsingtoolbarlayout be sometimes lay out in a single line but after collapse and expand the toolbar it be then lay out in 2 line and the bottom be cut off while the above video show the issue with app titlecollapsemode scale it be also reproducible with fade expect behavior the expand title should be either lay out to single line or to multiple line number of line should not change after collapse and expand and whole title should stay visible source code the issue can be reproduce in the catalog app in android api version I reproduce this on multiple version 28 and 30 in my case material library version reproduce this on 1 4 0 and also from source on current master device above video be take on an emulator with target google apis playstore google play api level 30 hw device name pixel 3 hw lcd density 440 hw lcd height 2160 hw lcd width 1080 font size be set to large and display size be set to large in the setting app let I know if I can provide any additional info
materialcomponentsmaterialcomponentsandroid
textfield crash during fragment recreaton
Bug
description hey there I work on an app that support multiple language in app setting when navigate to a screen with a com google android material textfield textinputlayout and then subsequently change the app s language specific language doesn t seem to matter when the fragment that contain the textinputlayout be reload via oncreateview the app crash with the follow log output e androidruntime cause by android view inflateexception binary xml file line 29 in com myapp android beta layout design text input end icon binary xml file line 29 in com myapp android beta layout design text input end icon error inflate class cause by android view inflateexception binary xml file line 29 in com myapp android beta layout design text input end icon error inflate class 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 858 at android view layoutinflater createviewfromtag layoutinflater java 1010 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater inflate layoutinflater java 663 at android view layoutinflater inflate layoutinflater java 538 at com google android material textfield textinputlayout textinputlayout java 613 at com google android material textfield textinputlayout textinputlayout java 428 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 inflate layoutinflater java 660 at android view layoutinflater inflate layoutinflater java 538 at com myapp android style view selectdropdown collageselectdropdown kt 40 at com myapp android style view selectdropdown collageselectdropdown kt 23 at com myapp android style view selectdropdown unknown source 11 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 parseinclude layoutinflater java 1267 at android view layoutinflater rinflate layoutinflater java 1123 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 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 rinflate layoutinflater java 1130 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 538 at com etsy android ui core listingnomapper listingfragmentnomapper oncreateview listingfragmentnomapper java 711 at androidx fragment app fragment performcreateview fragment java 2963 2021 11 05 14 15 30 398 11421 11421 com etsy android beta e androidruntime 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 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 looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7842 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 1003 cause by java lang unsupportedoperationexception fail to resolve attribute at index 13 typedvalue t 0x2 d 0x7f040002 a 1 at android content re typedarray getdrawablefordensity typedarray java 998 at android content re typedarray getdrawable typedarray java 982 at android view view view java 5520 at android widget imageview imageview java 195 at android widget imagebutton imagebutton java 86 at android widget imagebutton imagebutton java 82 at androidx appcompat widget appcompatimagebutton appcompatimagebutton java 75 at com google android material internal checkableimagebutton checkableimagebutton java 56 at com google android material internal checkableimagebutton checkableimagebutton java 52 expect behavior no crash occur source code the suspect textinputlayout android api version android 12 material library version reproduce on 1 4 0 and 1 5 0 alpha02 device pixel 5
materialcomponentsmaterialcomponentsandroid
materialalertdialog can t set full width button
Bug
description accord to the doc use dialog you can use r style themeoverlay materialcomponent materialalertdialog fullwidthbutton to use full width button but this theme overlay can t be resolve expect behavior be able to resolve this theme overlay source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 30 material library version 1 4 0 device ide never get to run
materialcomponentsmaterialcomponentsandroid
preferencefragmentcompat doesn t inflate use the m3 theme
Bug
description preferencefragmentcompat doesn t use the m3 theme switch dialogue etc note that the dialogue be make by the fragment and I can not use materialalertdialogbuilder expect behaviour right now the fragment widget and dialog look like this screenshot 20211105 113032 2 screenshot 20211105 112851 2 and I expect they to look more like this image image source code app theme xml the fragment code look like this java public static class settingsfragment extend preferencefragmentcompat override public void oncreatepreference bundle savedinstancestate string rootkey setpreferencesfromresource r xml root preference rootkey android api version 31 material library version 1 5 0 alpha05 device emulator pixel 5 api 31
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout ignore expandedtitlemarginend when both collapse and expand text size be the same
Bug
description the expandedtitlemarginend be not apply when the expand and collapse title textsize be the same even if the textsize only differ by 0 001sp it work and the marginend be correctly apply expect behavior collapsingtoolbarlayout be correctly apply the expandedtitlemarginend even if the expand and collapse title textsize be the same collapsingtoolbar expand collapse same textsize collapsingtoolbar expand collapse different textsize source code layout file expand and collapse textappearance android api version api 30 material library version 1 4 0 device emulator pixel xl api 30 sampe project collapsingtoolbarissue zip
materialcomponentsmaterialcomponentsandroid
blog typo in url on migrating to material design 3 page
Bug
description at the bottom of the page the start build with material you link be incorrect it s currently and should be
materialcomponentsmaterialcomponentsandroid
bottomnavigationview component not render in preview
Bug
description bottomnavigationview not render properly in xml design expect behavior bottomnavigationview render correctly source code xml android api version api 30 material library version 1 5 0 alpha05 try also alpha04 device pixel 3 xl api 29 pixel 5 api 30 bug
materialcomponentsmaterialcomponentsandroid
popup elevationoverlayenable doesn t apply to popup
Bug
description use the new material3 theme I ve disable elevation overlay and it seem to apply to everything except popup the solution I have now be set elevationoverlaycolor to transparent expect behavior I expect disable elevation overlay would apply to popup maybe I m mistaken app theme with true notice the slight blue tinting on the toolbar and the popup enable app theme with false notice the toolbar be no long tint but the popup still be disabled app theme with false and color transparent now both the toolbar and the popup don t have a visible elevation overlay disabled transparent android api version 12 material library version 1 5 0 alpha05 device emulator
materialcomponentsmaterialcomponentsandroid
dialog attr colorcontrolhighlight use for android background
Bug
description mtrl alert dialog xml and m3 alert dialog xml use attr colorcontrolhighlight for android background attr colorcontrolhighlight be a color value while android background expect a drawable use simple color value for android background work but use a color selector cause a crash because it s be interpret as a drawable this make it impossible to set color ripple to anything else than primitive color value a common thing be to use a color selector to apply an alpha to another color attribute as explain e g here section color with alpha so basically follow the guideline from the material design blog with material component for android lead to a crash when show dialog expect behavior no crash source code 1 create a color selector e g 2 in your app theme set colorcontrolhighlight color primary 60 xml 3 create and show a material dialog materialalertdialogbuilder context show 4 crash android api version 30 possibly all 26 and 28 possibly 28 and low 29 work fine material library version master the issue can be clearly see in source code search for colorcontrolhighlight in mrtl alert dialog xml and m3 alert dialog xml file in this repository device any reproducible on an emulator suggest fix define a proper color drawable that use attr colorcontrolhighlight and set that in android background use a different color why would a ripple color be use for background
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior anr when set state as state expand
Bug
description at android os messagequeue enqueuemessage messagequeue java 692 at android os handler enqueuemessage handler java 769 at android os handler sendmessageattime handler java 718 at android view viewrootimpl viewroothandler sendmessageattime viewrootimpl java 4380 at android os handler sendmessagedelaye handler java 688 at android os handler post handler java 405 at android view view post view java 16870 at com google android material bottomsheet bottomsheetbehavior setstate bottomsheetbehavior java 642 at android os handler handlecallback handler java 907 at android os handler dispatchmessage handler java 105 at android os looper loop looper java 216 at android app activitythread main activitythread java 7625 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 524 at com android internal os zygoteinit main zygoteinit java 987 and at android os messagequeue enqueuemessage messagequeue java 574 at android os handler enqueuemessage handler java 745 at android os handler sendmessageattime handler java 697 at android view viewrootimpl viewroothandler sendmessageattime viewrootimpl java 4795 at android os handler sendmessagedelaye handler java 667 at android os handler post handler java 395 at android view view post view java 16955 at androidx customview widget viewdraghelper continuesettle viewdraghelper java 762 at com google android material bottomsheet bottomsheetbehavior settlerunnable run bottomsheetbehavior java 922 at android view choreographer callbackrecord run choreographer java 1047 at android view choreographer docallback choreographer java 859 at android view choreographer doframe choreographer java 788 at android view choreographer framedisplayeventreceiver run choreographer java 1033 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 233 at android app activitythread main activitythread java 7212 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 499 at com android internal os zygoteinit main zygoteinit java 965 expect behavior should expand bottomsheet successfully source code class custombottomsheetbehaviour context context attrs attributeset bottomsheetbehavior context attrs private var bottomsheet view null fun setbottomsheet bottomsheet view this bottomsheet bottomsheet fun show if state state expand state state expand android api version android api 27 mostly on android api 30 material library version 1 0 0 device huawei mate 10 lite samsung galaxy a10s redmi 9a samsung galaxy a21s etc
materialcomponentsmaterialcomponentsandroid
textinputlayout hint do not fit in the outlinedbox when cornerradius be define
Bug
description you can see it in the screenshot android api version doesn t matter material library version 1 4 0 screenshot screenshot 5
materialcomponentsmaterialcomponentsandroid
m3 color theme textcolorhighlight textcolorhighlightinverse do not follow app color
Bug
description the value for textcolorhighlight and textcolorhighlightinverse be hard code with m3 sys color primary this mean that regardless of the app s theme or version the highlighted text will always appear the same purple ish color I ve attach a screenshot below the problem here s one of the offend resource in the library m3 sys color light primary correspond to m3 ref palette primary40 which be a hard code color from the default theme material3 palette expect behavior the value use for textcolorhighlight textcolorhighlightinverse like m3 highlighted text should use a reference instead of a hard code value like colorprimary and colorprimaryinverse respectively source code this occur as long as the theme be a descendent of theme material3 and if you don t override textcolorhighlight textcolorhighlightinverse android api version 31 material library version 1 5 0 alpha05 device pixel 5
materialcomponentsmaterialcomponentsandroid
doc materialdivider link go to a 404 page
Bug
description the class definition link in the materialdivider android implementation page lead to a 404 page on developer android com materialdivider link materialdivideritemdecoration link expect behavior link in documentation should go to a valid page
materialcomponentsmaterialcomponentsandroid
materialbutton s background invisible
Bug
description material button s background be invisible it become visible if I manually set theme to app s theme expect behavior source code app theme android api version api 21 material library version com google android material material 1 4 0 device huawei p30 lite
materialcomponentsmaterialcomponentsandroid
materialbutton check state not set properly when set in xml
Bug
description currently use a materialbutton with the attribute android check true use a selector drawable and a log d with materialbutton ischecke it be apparent that the check state be not true expect behavior when set android check true it should return true source code mainactivity class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val starbutton findviewbyid r i d email star button log d test starbutton as materialbutton ischecke tostring activity main xml android api version android api 31 material library version com google android material material 1 5 0 alpha04 buttonbugt zip
materialcomponentsmaterialcomponentsandroid
timepicker support different styling for the ok cancel button 2091
Bug
the datepicker allow you to set different style for the two button ok and cancel the timepicker no how can it be do make a layout similar to this for the two button screenshot 20211026 161456
materialcomponentsmaterialcomponentsandroid
no auto suggestion
Bug
description I have update version to 1 5 0 alpha05 from 1 5 0 alpha04 after update there be no theme style suggestion for material3 component in android studio early it be work fine with 1 5 0 alpha04 expect behavior should show available component style in material3 source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version 1 5 0 alpha05 device android studio 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
error for not use theme appcompat theme when not on version 1 1 0 of material
Bug
description I encounter this issue for the second time in my android app I just try to set up back4app 1 for my app while set it up my app always crash when start here be the issue on github 2 I always get this error e androidruntime fatal exception main process com jusaw curveradio pid 15273 java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at androidx appcompat app appcompatdelegateimpl createsubdecor appcompatdelegateimpl java 846 at androidx appcompat app appcompatdelegateimpl ensuresubdecor appcompatdelegateimpl java 809 at androidx appcompat app appcompatdelegateimpl onpostcreate appcompatdelegateimpl java 530 at androidx appcompat app appcompatactivity onpostcreate appcompatactivity java 151 at android app instrumentation callactivityonpostcreate instrumentation java 1373 at android app activitythread handlestartactivity activitythread java 3321 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 2016 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 214 at android app activitythread main activitythread java 7356 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 492 at com android internal os zygoteinit main zygoteinit java 930 the question be why do I get this error java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity the starting activity have this theme android api version target 30 material library version with issue 1 4 0 without issue 1 1 0 device nexus 5 api 29 stackoverflow question
materialcomponentsmaterialcomponentsandroid
checkbox checkbox md there be a wrong code guide in the document
Bug
description in the code guidance for subject checkboxe an extra symbol color attribute appear in one of the code cause an error 1634972662 1 expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue 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
textinputlayout crash when set app endiconmode dropdown menu
Bug
description I just want to show dropdown menu icon so I set app endiconmode dropdown menu but I don t want to use autocompletetextview just set icon should not crash instead of dropdown we show bottomsheetdialogfragment expect behavior set dropdown icon and allow another inner layout than autocompletetextview source code xml android api version any material library version com google android material material 1 4 0 device any
materialcomponentsmaterialcomponentsandroid
dialog materialalertdialogbuilder ignore title and message list item text appearance
Bug
description I be set a theme to the materialalertdialogbuilder and in the theme I be set text style for the title and message list item use materialalertdialogtitletextstyle and materialalertdialogbodytextstyle and it seem like the library be ignore these style and set the predefine one if I set the style for the button it work ok I be set it use buttonbarpositivebuttonstyle buttonbarneutralbuttonstyle buttonbarnegativebuttonstyle I be set the style as explain in the documentation expect behavior the dialog s title message should have the new text appearance that I be set and the new font but it doesn t change it and always look like in the screenshot below screenshot 2021 10 21 at 08 41 16 source code set the theme on dialog creation materialalertdialogbuilder context r style materialalertdialog settitle title setmessage message setpositivebutton positivetext null setview customview dialog theme from style android api version android api 30 android api24 material library version material android library version 1 4 0 last stable version check with the new version 1 5 0 alpha04 behave the same device android emulator samsung s6 edge
materialcomponentsmaterialcomponentsandroid
materialdatepicker materialdatepicker display date wrong on russian and ukrainian locale
Bug
description materialdatepicker display date wrong on russian and ukrainian locale all date on august 2021 don t fit the area and the user have to scroll up and down to select first or last day in that month but when you swipe several month back and forth everything work normally here be short video which show the difference in behavior for we and ru ua locale expect behavior as a user I want to see on ru ua locale the same behavior as on we all date of the month should fit the area without scroll source code public void startdateselectionpicker try materialdatepicker picker materialdatepicker builder datepicker setselection materialdatepicker todayinutcmillisecond settheme r style customdatepickerdialog build picker show getsupportfragmentmanager picker gettag catch illegalargumentexception e android api version android api 28 maby it s reproduce on other version as well material library version 1 2 1 1 3 0 1 4 0 1 5 0 alpha04 device android emulator with api level 31 on macbook pro with m1 chip and on device xiaomi mi a2 lite with android 9 0 I have also check this buggy behavior on current late release 1 5 0 alpha04 and it s still present please fix this thank regard serhii
materialcomponentsmaterialcomponentsandroid
tablayout tabripplecolor ignore focus state value
Bug
description when provide a color state list to the tabripplecolor property of the tablayout control only the select state state select and press state state press be observe the focused state state focus be ignore here be the code that restrict the color state list l121 that be reference here l2386 this run counter to the documentation and the default color state list provide by material expect behavior color state list item that set the focused state to true android state focus true should be select when the tab item be focus source code with the example code below when you use the keyboard to focus one of the tab item the background color be red but it should be green file name tab ripple xml android api version 30 material library version 1 4 0 device multiple 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
materialtoolbar toolbar title and menu be too close
Bug
description full description of issue here I inflate menu from fragment toolbar inflatemenu r menu menu schedule list menu be show in toolbar but title and menu action be very close please see in scree shot expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here api level 30 material library version material android library version you be use here e g 1 1 0 alpha07 1 4 0 device device on which the bug be encounter here redmi9 to help we triage fast please check to make sure you be use the late version of the library issue expect
materialcomponentsmaterialcomponentsandroid
md3 bottomnavigationbar active indicator wrong height
Bug
if I set unlabled mode active indicator get the wrong height but if you add badge then the height become normal 56565656
materialcomponentsmaterialcomponentsandroid
badgedrawable talkback not read badge count when badge be set on toolbar menu item
Bug
description full description of issue here talkback not read badge count when badge be create for an action menu item on the toolbar and the following be set setcontentdescriptionquantitystringsresource r plural attachment count plural contentdescription be correct when debug use getcontentdescription expect behavior screenshot and or description of expect behavior talkback will read the plural string with quantity source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue experimentalbadgeutil create a badgedrawable for an action item in the toolbar run badgedrawable updatebadgecount function to make badge visible with expect count param menuitemid idre action menu item to apply badge param textcolour attrre badge text color param textcolour attrre badge text color fun toolbar createbadge idre menuitemid int attrre textcolour int null attrre backgroundcolor int null badgedrawable val badge badgedrawable create this context badge maxcharactercount 3 badge badgegravity badgedrawable top end textcolour let badge badgetextcolor it backgroundcolor let badge backgroundcolor it badge isvisible false badge setcontentdescriptionquantitystringsresource r plural attachment count plural badgeutil attachbadgedrawable badge this menuitemid return badge update the count for badgedrawable param count badge count as an int fun badgedrawable updatebadgecount count int isvisible count 0 number count verticaloffset 10 offset to prevent clip horizontaloffset when count 99 24 count 9 12 else 0 android api version android api version here test on api 29 material library version material android library version you be use here e g 1 1 0 alpha07 materialversion 1 3 0 device device on which the bug be encounter here emulator pixel 4 talkback 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
snackbar setanchorview for bottomnavigationview do not work properly
Bug
description we use bottomnavigationview with snackbar as show in the screenshot below I refer to the official documentation use snackbar and use snackbar setanchorview to show the snackbar above the bottomnavigationview however snackbar do not follow the movement of the bottomnavigationview in combination with hidebottomviewonscrollbehavior as show in the follow screen record we show the screen record below expect behavior the expect behavior be that snackbar follow bottomnavigationview movement the screen record of the expect movement be as follow source code this be an example of setanchorview code in kotlin kt r i d bottomnavview be bottomnavigationview resource i d val snackbar snackbar snackbar make view snackbar message snackbar length long val bottomnavview view findviewbyid r i d bottomnavview snackbar anchorview bottomnavview snackbar show when use coordinatorlayout layoutparam setanchorid I get the expect behavior where the snackbar follow the movement of bottomnavigationview kt r i d bottomnavview be bottomnavigationview resource i d val snackbar snackbar snackbar make view snackbar message snackbar length long val param snackbar view layoutparam as coordinatorlayout layoutparams param anchorid r i d bottomnavview param gravity gravity top snackbar view layoutparam param snackbar show I consider the correct behavior be for bottomnavigationview to work with snackbar with setanchorview as well as fab without use coordinatorlayout layoutparam setanchorid android api version test on android 11 12 material library version 1 4 0 device pixel 4 4a and other device
materialcomponentsmaterialcomponentsandroid
appbarlayout the background color can not be set to 121212
Bug
description as show in the picture the wrong color be display when the color value be 121212 and the color be display correctly when 121211 edit after comparison it be not a specific color problem but the night theme background color of apppbarlayout can not be the same as the android colorbackground of apptheme expect behavior image image source code android api version 31 material library version 1 5 0 alpha04
materialcomponentsmaterialcomponentsandroid
materialtimepicker input mode be not change when click on keyboard icon when the app be return from background
Bug
description input mode doesn t change on materialtimepicker when user click on keyboard icon or clock icon when come back to foreground from background while the materialtimepicker be visible the actual behavior be different from what be expect step to reproduce the issue open implement timepicker in the app move your app to background move your app from background to foreground and click on keyboard icon or clock icon follow behavior be observe for version 1 4 0 crash occur with the follow stack trace java lang nullpointerexception attempt to invoke virtual method void com google android material timepicker timepickerview showtoggle on a null object reference at com google android material timepicker timepickerclockpresenter initialize timepickerclockpresenter java 75 at com google android material timepicker timepickerclockpresenter timepickerclockpresenter java 69 at com google android material timepicker materialtimepicker initializeorretrieveactivepresenterformode materialtimepicker java 311 at com google android material timepicker materialtimepicker updateinputmode materialtimepicker java 301 at com google android material timepicker materialtimepicker access 700 materialtimepicker java 59 at com google android material timepicker materialtimepicker 4 onclick materialtimepicker java 263 at android view view performclick view java 8160 at android widget textview performclick textview java 16222 at com google android material button materialbutton performclick materialbutton java 1119 at android view view performclickinternal view java 8137 at android view view access 3700 view java 888 at android view view performclick run view java 30236 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 246 at android app activitythread main activitythread java 8595 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 version 1 5 0 alpha04 the keyboard icon doesn t transition the picker to keyboard input mode expect behavior the timepicker should change the input mode source code the source code implementation be same as per the documentation kotlin val timepicker materialtimepicker builder settimeformat timeformat clock 12h sethour currenthour setminute currentminute build timepicker show supportfragmentmanager null also the issue can be observe with the catalog sample app in this repository android api version api 30 material library version implementation com google android material material 1 4 0 implementation com google android material material 1 5 0 alpha04 device samsung m31
materialcomponentsmaterialcomponentsandroid
tablatout ignore tabgravity fill when tab mode be auto
Bug
description I be set tabmode to auto and tabgravity to fill but the tablayout seam to ignore the tabgravity when the tab fit the screen and they be center instead of spreaded screenshot 2021 10 06 at 13 10 14 expect behavior when the tab fit the screen it be suppose to look like fix mode with fill gravity but the library be ignore the tabgravity property screenshot 2021 10 06 at 13 06 29 source code android api version api 30 api 28 material library version last stable version 1 4 0 device android emulator api30 samsung tab 3 api 28
materialcomponentsmaterialcomponentsandroid
collapsingtoolbar two line title with imagespan do not fade out when collapse
Bug
description use a collapsingtoolbar with a 2 line title with a title contain a spannablestring with imagespan if the image be on the second line and the toolbar get collapse the image do not fade out expect behavior just like the title or the text in the second line the imagespan inside the title should fade out source code val text my very very very very very very long title val spannable spannablestring text apply val imagespan imagespan context r drawable ic check alignment setspan imagespan text length 1 text length spannable span exclusive inclusive collapsingtoolbar title spannable android api version test on android 12 material library version test on stable 1 4 0 and 1 5 0 alpha02 device pixel 4a or any as a workaround I listen for collapsingtoolbar state change and set the title to 1 line when collapse and back to 2 line when expand work well but semaxline method be api restrict
materialcomponentsmaterialcomponentsandroid
tablayout padding cause scroll on fix mode
Bug
description when you set fix mode to tablayout and add padding tablayout be still scroll for the size of the padding expect behavior tablayout not to scroll at all when scroll be not enable actual behavior see video it s still possible to scroll left and right source code android api version 30 material library version 1 4 0 device emulator
materialcomponentsmaterialcomponentsandroid
range slider label not transparent
Bug
hi I need help your if you look at the last image you will see a white line like a border I want to make that line transparent style xml image xml image not transparent white line like a border image
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder wrong dialog bound after orientation change
Bug
description dialog bound be not correct after orientation change without activity recreation activity have configchange orientation attribute screenshot 1633432645336 screenshot 1633429718933 how to reproduce it 1 start app at portrait then click button to show alert dialog 2 then rotate device to landscape 3 press physical home button to exit app 4 then rotate device again to portrait 5 press physical task manager button 6 select and resume app on task manager 7 the issue appear expect behavior dialog bound be show correctly after orientation change source code testdialog zip android api version any android api version material library version 1 5 0 alpha04 device any device
materialcomponentsmaterialcomponentsandroid
materialtimepicker button overlap with inputmode imageview
Bug
description it s not work with api level 30 on nokia 7 2 but work with api level 26 on nexus 6p expect behavior screenshot show on click behavior on both button to show negativebutton be overlap to the inputmode imageview screenshot 20211004 114452 android api version 30 material library version 1 4 0 device nokia 7 2 nexus 6p
materialcomponentsmaterialcomponentsandroid
gradle
Bug
fail to resolve com google android material material 1 5 0 alpha03
materialcomponentsmaterialcomponentsandroid
bottomnavigationview could not set background to white color
Bug
description I can set the bottomnavigationview s background to any color except white color expect behavior able to set background to white my bottomnav style android api version 30 material library version 1 5 0 alpha03 the problem happen so in 1 5 0 alpha04 device samsung s20
materialcomponentsmaterialcomponentsandroid
can not find material3 theme
Bug
description aapt can t find the material3 theme result in this error at build time error aapt error resource style theme material3 daynight darkactionbar aka com example test style theme material3 daynight darkactionbar not find error resource style theme material3 daynight darkactionbar aka com example test style theme material3 daynight darkactionbar not find error fail link reference theme material3 also doesn t offer any autocomplete option but theme materialcomponent do I try invalidate cache and reset studio expect behavior the app compile fine source code test zip android api version 31 material library version 1 5 0 alpha03 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
gradle build issue
Bug
description run lint and unit test fail due to aapt conflict stacktrace failure build fail with an exception what go wrong execution fail for task app processdebugresource a failure occur while execute com android build gradle internal res linkapplicationandroidresourcestask taskaction android resource linking fail error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 3 5 94 aapt error resource android color system neutral1 1000 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 4 5 94 aapt error resource android color system neutral1 900 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 5 5 93 aapt error resource android color system neutral1 0 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 6 5 94 aapt error resource android color system neutral1 800 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 7 5 94 aapt error resource android color system neutral1 700 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 8 5 94 aapt error resource android color system neutral1 600 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 9 5 94 aapt error resource android color system neutral1 500 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 10 5 94 aapt error resource android color system neutral1 400 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 11 5 94 aapt error resource android color system neutral1 300 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 12 5 94 aapt error resource android color system neutral1 200 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 13 5 94 aapt error resource android color system neutral1 100 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 14 5 93 aapt error resource android color system neutral1 50 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 15 5 93 aapt error resource android color system neutral1 10 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 16 5 102 aapt error resource android color system neutral2 1000 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 17 5 102 aapt error resource android color system neutral2 900 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 18 5 101 aapt error resource android color system neutral2 0 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 19 5 102 aapt error resource android color system neutral2 800 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 20 5 102 aapt error resource android color system neutral2 700 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 21 5 102 aapt error resource android color system neutral2 600 not find error root gradle cache transform 3 67b80853a5ad816cafc1b3711346ad9d transform material 1 5 0 alpha03 re value v31 value v31 xml 22 5 102 aapt error resource android color system neutral2 500 not find expect behavior build execute successfully source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue gradlew lint and gradlew app testdebugunittest android api version sdk 30 material library version material android library version you be use here e g 1 1 0 alpha07 1 5 0 alpha03 device n a android gradle plugin 7 1 0 alpha05
materialcomponentsmaterialcomponentsandroid
materialcalendar navigationbutton month navigation icon bad alignment
Bug
description materialcalendar navigationbutton allow to switch select month to previous or next use navigation arrow arrow be not center see screenshot with pressed previous month and outline turn on device 2021 09 26 123807 expect behavior icon be align inside navigation button source code just use a simple datepicker like this materialdatepicker builder datepicker build show parentfragmentmanager null android api version 10 11 material library version 1 4 0 device emulator and pixel 5 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