repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout scroll state not preserve when recreate view and exituntilcollapse scroll flag be set
Bug
description I spot multiple mention of the same issue I e here issuecomment 773056165 so I assume this be not new but since I couldn t find a proper bug report I m create a new one the issue be collapsingtoolbarlayout with app layout scrollflag scroll exituntilcollapse doesn t preserve its scroll state when the view be destroy and then recreate I e when navigate back between fragment expect behavior screenshot and or description of expect behavior the collapsingtoolbarlayout scroll state be exactly the same as it be before leave the screen expect actual the should be hide label should not be visible it be because collapsingtoolbar restore in an expand state source code my current repro be xml but the crucial part be the exituntilcollapse interesting thing be set minheight to tiptext textview seem to restore proper behavior this be very confusing minimal sample app repro full project 1 gradlew installdebug 2 launch app 3 scroll up so the should be hide label disappear 4 tap the navigate forward and back to recreate view which commit another fragment and immediately pop it back 5 should be visible now android api version 28 31 33 material library version 1 11 0 alpha01 1 9 0 device android emulator
materialcomponentsmaterialcomponentsandroid
tablayout tablayout attribute app tabselectedtextappearance
Bug
app tabtextappearance to set normal textsize but in tab select app tabselectedtextappearance not work tablayout app tabselectedtextappearance fix bug
materialcomponentsmaterialcomponentsandroid
snackbar snackbar be shake when attach to anchor and overlap gesture area
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior image source code the code snippet which be cause this issue kotlin snackbar make view findviewbyid r i d container text snackbar length indefinite apply anchorview view findviewbyid r i d anchor isanchorviewlayoutlistenerenable true show minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here api 31 material library version material android library version you be use here e g 1 1 0 alpha07 1 9 0 and 1 10 0 alpha04 device device on which the bug be encounter here emulator avdmanager create avd n shakysnackbar d pixel k system image android 31 google apis x86 64 be sure to enable gesture navigation 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
viewpager2 windowinsetsappli break inset with bottomnavigationview below api 30
Bug
description windowinsetsapplier break inset with bottomnavigationview below api 30 expect behavior windowinsetsappli will not break inset with bottomnavigationview source code on activity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate bind activitymainbinding inflate layoutinflater setcontentview bind root windowcompat setdecorfitssystemwindow window false fix the broken windowinset dispatch of old api version 30 windowinsetsappli install bind viewpager bind viewpager isuserinputenable false bottomnavigationmediator bottomnavigationviewmediator bind bottomnavview bind viewpager bottomnavigationmediator attach on layout above code will reproduce the issue below api 30 once we switch the order of viewpager2 and bottomnavigationview in xml the issue be go but with version 1 0 0 of viewpager2 or not call windowinsetsappli install no matter order be with viewpager2 and bottomnavigationview this issue will not happen minimal sample app repro viewpager2issue android api version android api 28 material library version material 1 9 0 and viewpager2 1 1 0 beta02 device avd api 28
materialcomponentsmaterialcomponentsandroid
time picker chip background color not change when switch to input mode keyboard
Bug
description full description of the issue here chip background color work in input mode clock screenshot 20230620 131601 1 when I switch to input mode keyboard the chip background color not work screenshot 20230622 113052 source code minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android 13 material library version 1 8 0 device check on pixel 4 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 snackbar bottom margin be incorrect when use window inset with padding
Bug
description snackbar with anchor have incorrect bottom margin when window inset be use that set container padding instead of margin when inset update margin snackbar be show correctly above the anchor button when inset update padding snackbar get extra bottom margin it seem that navigation bar height be use twice expect behavior snackbar should always be display right above the anchor source code the issue be most probably somewhere in basetransientbottombar but I wasn t able to identify exact place minimal sample app repro tap on to first fragment button to open firstfragment current code will use inset with margin so you will see situation on the first screenshot above correct if you comment firstfragment line 41 43 and uncomment line 45 inset will update padding and you ll end up with situation from second screenshot incorrect android api version 29 material library version 1 9 0 device pixel 4a
materialcomponentsmaterialcomponentsandroid
slider not possible recognize which slider crash
Bug
description there be no way when you have more slider on one screen which slider crash expect behavior show i d or line of code where crash happen source code just use slider and set datum incorectly or in wrong order set valueto before valuefrom or set step before range etc milion of combination will cause slider crash not so hard force into crash like this android api version any material library version any device any we need to know which slider line of code cause this crash in our code we have many slider on same screen dynamic datum from backend but how we should know which slider cause crash like this not just this one sometimes current value be out of range because condition be change but range be still in previous range there be no easy way how to invalidate all datum together valuefrom valueto and current value when you start set new valuefrom to it will crash on current value out of range when set new current value it will crash on current value out of range because we didn t set yet new range from to etc set all value together before start validation will save a life of all whale and devs but as a first step we need know which slider crash java lang illegalstateexception valuefrom 0 0 must be small than valueto 0 0 at com google android material slider baseslider validatevaluefrom baseslider java 537 at com google android material slider baseslider validateconfigurationifdirty baseslider java 625 at com google android material slider baseslider maybecalculatetickscoordinate baseslider java 1724 at com google android material slider baseslider updatetrackwidth baseslider java 1745 at com google android material slider baseslider onsizechange baseslider java 1715 at android view view sizechange view java 23391 at android view view setframe view java 23343 at android view view layout view java 23200 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1873 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget linearlayout setchildframe linearlayout java 1829 at android widget linearlayout layoutvertical linearlayout java 1673 at android widget linearlayout onlayout linearlayout java 1582 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at androidx core widget nestedscrollview onlayout nestedscrollview java 2205 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1873 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at androidx coordinatorlayout widget coordinatorlayout layoutchild coordinatorlayout java 1213 at androidx coordinatorlayout widget coordinatorlayout onlayoutchild coordinatorlayout java 899 at com google android material bottomsheet bottomsheetbehavior onlayoutchild bottomsheetbehavior java 556 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java 918 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget linearlayout setchildframe linearlayout java 1829 at android widget linearlayout layoutvertical linearlayout java 1673 at android widget linearlayout onlayout linearlayout java 1582 at android view view layout view java 23203 at android view viewgroup layout viewgroup java 6412 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at com android internal policy decorview onlayout decorview java 797 at android view view layout view java 23203 2023 06 07 11 34 09 706 androidruntime e at android view viewgroup layout viewgroup java 6412 at android view viewrootimpl performlayout viewrootimpl java 3749 at android view viewrootimpl performtraversal viewrootimpl java 3205 at android view viewrootimpl dotraversal viewrootimpl java 2179 at android view viewrootimpl traversalrunnable run viewrootimpl java 8787 at android view choreographer callbackrecord run choreographer java 1037 at android view choreographer docallback choreographer java 845 at android view choreographer doframe choreographer java 780 at android view choreographer framedisplayeventreceiver run choreographer java 1022 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 7870 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
materialcomponentsmaterialcomponentsandroid
materialdatepicker backport the crash fix in 1 10 0 alpha03 into the 1 9 0 release
Bug
there s a crash in materialdatepicker in the late stable 1 9 0 release that have be fix and this fix have be include in the late 1 10 0 alpha03 however that release have the compilesdkversion set to the upcoming android upsidedowncake which we re unable to depend on just yet be there any chance this crash fix could be backporte to the stable 1 9 0 release so that we can deploy a fix without need to update to the preview sdk
materialcomponentsmaterialcomponentsandroid
tablayout default tab text appearance be incorrectly set attribute for text appearance instead of style
Bug
description when update to 1 9 0 of material we notice an error when take paparazzi snapshot test use a tablayout there be a change from 1 7 0 1 9 0 where defaulttabtextappearance be use stacktrace jun 06 2023 3 19 08 pm app cash paparazzi internal paparazzilogger error severe null style resourcereference namespace apk res auto type attr name textappearancebutton be not of type style instead attr jun 06 2023 3 19 08 pm app cash paparazzi internal paparazzilogger error severe null style resourcereference namespace apk res auto type attr name textappearancebutton be not of type style instead attr jun 06 2023 3 19 08 pm app cash paparazzi internal paparazzilogger error severe resource resolve fail to find style with 2130969720 can not invoke android content re bridgetypedarray settheme android content re resource theme because ta be null java lang nullpointerexception can not invoke android content re bridgetypedarray settheme android content re resource theme because ta be null at android content re resource theme delegate obtainstyledattribute resource theme delegate java 74 at android content re resource theme obtainstyledattribute resource java 1631 at android content context obtainstyledattribute context java 874 at android widget textview settextappearance textview java 3965 at androidx appcompat widget appcompattextview settextappearance appcompattextview java 216 at android widget textview settextappearance textview java 3954 at androidx core widget textviewcompat settextappearance textviewcompat java 289 at com google testing junit testparameterinjector pluggabletestrunner contextmethodrule 1 evaluate pluggabletestrunner java 429 at org junit runner blockjunit4classrunner 1 evaluate blockjunit4classrunner java 100 at org junit runner parentrunner runleaf parentrunner java 366 at org junit runner blockjunit4classrunner runchild blockjunit4classrunner java 103 at org junit runner blockjunit4classrunner runchild blockjunit4classrunner java 63 at org junit runner parentrunner 4 run parentrunner java 331 at org junit runner parentrunner 1 schedule parentrunner java 79 at org junit runner parentrunner runchildren parentrunner java 329 at org junit runner parentrunner access 100 parentrunner java 66 at org junit runner parentrunner 2 evaluate parentrunner java 293 at org junit runner parentrunner 3 evaluate parentrunner java 306 at org junit runner parentrunner run parentrunner java 413 at org gradle api internal task test junit junittestclassexecutor runtestclass junittestclassexecutor java 108 at org gradle api internal task test junit junittestclassexecutor execute junittestclassexecutor java 58 at org gradle api internal task test junit junittestclassexecutor execute junittestclassexecutor java 40 at org gradle api internal task test junit abstractjunittestclassprocessor processtestclass abstractjunittestclassprocessor java 60 at org gradle api internal task testing suitetestclassprocessor processtestclass suitetestclassprocessor java 52 at java base jdk internal reflect nativemethodaccessorimpl invoke0 native method at java base jdk internal reflect nativemethodaccessorimpl invoke nativemethodaccessorimpl java 77 at java base jdk internal reflect delegatingmethodaccessorimpl invoke delegatingmethodaccessorimpl java 43 at java base java lang reflect method invoke method java 568 at org gradle internal dispatch reflectiondispatch dispatch reflectiondispatch java 36 at org gradle internal dispatch reflectiondispatch dispatch reflectiondispatch java 24 at org gradle internal dispatch contextclassloaderdispatch dispatch contextclassloaderdispatch java 33 at org gradle internal dispatch proxydispatchadapter dispatchinginvocationhandler invoke proxydispatchadapter java 94 at jdk proxy1 jdk proxy1 proxy2 processtestclass unknown source at org gradle api internal task test worker testworker 2 run testworker java 176 at org gradle api internal task test worker testworker executeandmaintainthreadname testworker java 129 at org gradle api internal task test worker testworker execute testworker java 100 at org gradle api internal task test worker testworker execute testworker java 60 at org gradle process internal worker child actionexecutionworker execute actionexecutionworker java 56 at org gradle process internal worker child systemapplicationclassloaderworker call systemapplicationclassloaderworker java 113 at org gradle process internal worker child systemapplicationclassloaderworker call systemapplicationclassloaderworker java 65 expect behavior correctly load style from attribute use something like this val attrs intarrayof defaulttabtextappearance the array of attribute we re interested in val ta context obtainstyledattributes attrs get the value reference by the attribute in the array val resid ta getresourceid 0 0 the first 0 be the index in the attrs array ta recycle don t forget that you can also use typedarray use extension from android ktx textviewcompat settextappearance textview resid utility method to set text appearance for all sdk version source code the code snippet which be cause this issue class samplet get rule val paparazzi paparazzi deviceconfig deviceconfig pixel 2 copy fontscale accessibilitytextsize scale private val context context by lazy paparazzi context wrapwiththeme design provide this test fun default val view tablayout context null println textappearancebutton i d com google android material r attr textappearancebutton textviewcompat settextappearance textview com google android material r attr textappearancebutton paparazzi snapshot view minimal sample app repro tbd android api version 32 via paparazzi material library version 1 9 0 device run via junit test with paparazzi
materialcomponentsmaterialcomponentsandroid
materialdatepicker switch to keyboard input toggle icon background never change same as tint color
Bug
description with the source code provide below I be not able to set so that the background of the switch to keyboard input toggle icon be different from the icon s tint I e outline of the pencil be one color and the fill within the same be a different color expect behavior tint apply to the pencil icon s outline color and background apply to the pencil icon s shape fill color note it may be entirely possible here that I be misunderstand the purpose of tint and background and what I be try to achieve be simply not possible if so please let I know and sincere apology for waste time source code in a module s style xml file I have the following define in my fragment if datepickerdialog null datepickerdialog materialdatepicker builder datepicker settheme r style somefragmentdatepicker setselection materialdatepicker todayinutcmillisecond build datepickerdialog addonpositivebuttonclicklistener selection todo datepickerdialog show getparentfragmentmanager somefragment android api version android api 28 and 33 material library version material android library version 1 8 0 device pixel 4 pixel 6
materialcomponentsmaterialcomponentsandroid
material card view it be not possible to apply a gradient background to a material card view with rounded corner apply only to the top
Bug
description the material card view with the material style apply only on the top do not have the gradient background apply the gradient background be only apply when the roundness be apply in all direction in the xml you may see the desire design where the gradient background be apply with rounded corner however when you run the code you be experience an issue where the roundness be not be apply to the gradient background expect behavior what I expect and the android studio preview show to I what I actually get 20230531 151518 source code the code snippet which be cause this issue xml xml style roundtop20 android api version 33 material library version 1 6 0 also test on 1 9 0 device galaxy fold2 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
materialbutton iconsize do not always match material 3 spec
Bug
description the material 3 materialbutton style widget material3 button outlinedbutton icon do not specify an iconsize so this remain at the default wrap content rather than the 18dp value define in the material 3 spec 309d928e e9ef 41dd 89fc 9bc51f78709c expect behavior material 3 button icon style or their parent should all specify a default app iconsize of 18dp source code xml the icon display by this button will be as large as the icon itself due to materialbutton use wrap content for iconsize by default material library version 1 7 0
materialcomponentsmaterialcomponentsandroid
materialdatepicker can not use as normal fragment
Bug
description can not use materialdatepicker as normal fragment to add to a fragment container expect behavior a dialogfragment should be use as a normal fragment source code when use dynamic color theme and they add materialdatepicker as a normal fragment via val picker materialdatepicker builder datepicker build picker showsdialog false supportfragmentmanager begintransaction add r i d container picker commit then we get crash com example materialdatepickerissue e androidruntime fatal exception main process com example materialdatepickerissue pid 3568 android view inflateexception binary xml file line 23 in com example materialdatepickerissue layout mtrl picker dialog binary xml file line 31 you must supply a layout width attribute theme inheritancemap i d 0x7f100268com example materialdatepickerissue style theme materialdatepickerissue i d 0x7f10022fcom example materialdatepickerissue style theme material3 dynamiccolor daynight i d 0x7f100230com example materialdatepickerissue style theme material3 dynamiccolor light i d 0x7f100231com example materialdatepickerissue style theme material3 light i d 0x7f10005bcom example materialdatepickerissue style base theme material3 light i d 0x7f1000adcom example materialdatepickerissue style base v24 theme material3 light i d 0x7f100087com example materialdatepickerissue style base v14 theme material3 light i d 0x7f100256com example materialdatepickerissue style theme materialcomponent light i d 0x7f100068com example materialdatepickerissue style base theme materialcomponent light i d 0x7f1000a1com example materialdatepickerissue style base v21 theme materialcomponent light i d 0x7f10008fcom example materialdatepickerissue style base v14 theme materialcomponent light i d 0x7f100090com example materialdatepickerissue style base v14 theme materialcomponent light bridge i d 0x7f100134com example materialdatepickerissue style platform materialcomponent light i d 0x7f100210com example materialdatepickerissue style theme appcompat light i d 0x7f100050com example materialdatepickerissue style base theme appcompat light i d 0x7f1000b3com example materialdatepickerissue style base v28 theme appcompat light i d 0x7f1000b0com example materialdatepickerissue style base v26 theme appcompat light i d 0x7f1000aacom example materialdatepickerissue style base v23 theme appcompat light i d 0x7f1000a8com example materialdatepickerissue style base v22 theme appcompat light i d 0x7f10009dcom example materialdatepickerissue style base v21 theme appcompat light i d 0x7f1000b6com example materialdatepickerissue style base v7 theme appcompat light i d 0x7f100131com example materialdatepickerissue style platform appcompat light i d 0x7f10013ccom example materialdatepickerissue style platform v25 appcompat light i d 0x1030241android style theme material light noactionbar i d 0x1030237android style theme material light i d 0x103000candroid style theme light i d 0x1030005android style theme it say that layout mtrl picker dialog be miss layout width attribute find this be miss in mtrl picker header dialog xml that control by attr materialcalendarheaderlayout which be it s odd minimal sample app repro materialdatepickerissue android api version android api 33 material library version 1 9 0 device avd api 33
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder vertical background inset be too large when soft keybard be show
Bug
materialalertdialogbuilder define a big vertical margin for dialog via attribute backgroundinsettop and backgroundinsetbottom the default be define via dimen mtrl alert dialog background inset top and mtrl alert dialog background inset bottom to be 80dp on normal screen with portrait orientation this be generally fine but give an unfortunate result when the soft keyboard be show and reduce the dialog height compare the appcompat builder with the material builder with the keyboard hide screenshot 1684693459 screenshot 1684693484 and the keyboard show screenshot 1684693432 screenshot 1684693365 while the appcompat dialog be perfectly usable the material dialog be too small and make the dialog difficult to use in the case of this example hide too much of the content from the user I do not know if this can be achieve by use configuration qualifier but ideally the vertical inset should react to the available window height take the presence of the soft keyboard into account material library version 1 9 0 and 1 10 0 alpha03
materialcomponentsmaterialcomponentsandroid
textinputlayout the position of expose drop down menu s ripple be incorrect
Bug
description ripple always spread from the centre of the widget p94gxpf png expect behavior ripple should spread from the position touch by the user source code xml minimal sample app repro m3 catalog text field expose drop down menu demo android api version android s material library version 1 10 0 alpha03 device motorola edge x30
materialcomponentsmaterialcomponentsandroid
dynamiccolor strictmode violation in dynamiccolor applytoactivityifavailable
Bug
when call applytoactivityifavailable in activity s oncreate as explain in the documentation with strictmode activate the follow violation be raise strictmode policy violation duration 135 ms android os strictmode diskwriteviolation at android os strictmode androidblockguardpolicy onwritetodisk strictmode java 1615 at libcore io blockguardo write blockguardo java 446 at libcore io forwardingo write forwardingo java 951 at libcore io iobridge write iobridge java 649 at java io fileoutputstream write fileoutputstream java 401 at java io fileoutputstream write fileoutputstream java 379 at com google android material color colorresourcesloadercreator create colorresourcesloadercreator java 56 at com google android material color resourcesloaderutil addresourcesloadertocontext resourcesloaderutil java 35 at com google android material color resourcesloadercolorresourcesoverride applyifpossible resourcesloadercolorresourcesoverride java 66 at com google android material color resourcesloadercolorresourcesoverride applyifpossible resourcesloadercolorresourcesoverride java 50 at com google android material color dynamiccolor applytoactivityifavailable dynamiccolor java 331 android api version 32 material library version 1 10 0 alpha03 device api 32 emulator
materialcomponentsmaterialcomponentsandroid
appbarlayout status bar foreground detache when fling
Bug
material library version 1 10 0 alpha02 device pixel 4a 5 g
materialcomponentsmaterialcomponentsandroid
textinputlayout the text disappear after reach the limit of 1432 character while have drawable set to setcompounddrawableswithintrinsicbound
Bug
description we have a custom view inherit from textinputedittext in which we specify the image on the right side use the setcompounddrawableswithintrinsicbound function this view have a line length limit of 2000 character but when you enter more than 1432 character the text change color attach video below expect behavior text will not change color and disappear source code the code snippet which be cause this issue image image minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here api 30 material library version material android library version you be use here e g 1 1 0 alpha07 com google android material material 1 8 0 I change the version to the late do not help device device on which the bug be encounter here pixel2 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
bottomsheetdialogfragment top inset impossible to remove
Bug
description I be currently try to create a fullscreen full height bottomsheetdialogfragment but since it have a very weird behavior implement where it add and retract inset while the sheet be slide in and out I decide to disable any inset handling do by the component and manually take care of the inset however I find a problem with that approach as well no matter what I try the component still force a top inset that be the same size of the status bar even when disable any and all inset handling flag I could find check in the component source code ex l1726 l1734 the objective be for the component screen to fill the entire screen of the device but as it currently be the top area of the status bar can never be cover mean the component will never display underneath the status bar as desire expect behavior screenshot be attach screen 1 be mean to launch the component screen1 25 screen 2 be what be currently happen notice the top area that can not be cover screen2 25 screen 3 be what it should be look like at the top I create a separat activity just to represent how screen 2 should be look screen3 25 source code not applicable minimal sample app repro sample follow attach bottomsheetinsetbug zip android api version any android version since 24 7 0 nougat till most recent 33 13 0 test all version and every single one of they have the same issue material library version material android library version com google android material material 1 8 0 device any real device and emulator test
materialcomponentsmaterialcomponentsandroid
datepicker a11y list of year unreadable when set font size to large on some device
Bug
description when use certain device see below set the font size to large result in list of year that be unreadable expect behavior I would expect all the year to be readable even if it s necessary to go to two column source code the issue can be reproduce with the m3 catalog app see screenshot minimal sample app repro the issue can be reproduce with the m3 catalog app see screenshot android api version api 29 material library version m3 catalog app be build off of master branch device galaxy s20 yearlist
materialcomponentsmaterialcomponentsandroid
datepicker a11y keyboard navigation doesn t work with next month button
Bug
description when use an attached bluetooth keyboard to navigate through the date picker press either tab or down arrow on the next month button actually move to the previous month and then navigate to the first day of that month expect behavior I would expect the tab key to navigate to the first date inside the calendar for the current month in this case source code the issue can be reproduce with the m3 catalog app see attach video minimal sample app repro the issue can be reproduce with the m3 catalog app see attach video android api version upside down cake material library version 1 9 0 reproduce build the m3 catalog from master but also appear to exist on 1 9 0 device pixel 5
materialcomponentsmaterialcomponentsandroid
internal windowutil assume that app be not in multi window or use free form window
Bug
description windowutil be use display getrealsize on api 29 api 17 which win t return the application window bound when the app be in multi window mode or be in a free form window windowmetricscalculatorcompat from androidx window have a full backport of query for the current window size source code l75 android api version api 29 and below
materialcomponentsmaterialcomponentsandroid
bottomsheet peekheight measure incorrectly during first layout when margintopsystemwindowinset be set to true
Bug
description when application be in edge to edge mode it be expect that peekheight will be increase by the bottom system window inset when paddingbottomsystemwindowinset true however if you set margintopsystemwindowinset to true at the same time then at first peekheight be go to be measure incorrectly it ll be decrease by the size of the top inset once you expand the sheet and collapse it again it ll be collapse to the correctly measure peek height expect behavior peek height should be not effect by the top system window inset when margintopsystemwindowinset true during every layout I suspect that might fix the issue source code here s the project which demonstrate the issue the short recording can be find there in demo folder android api version any material library version 1 9 0 device pixel 4 api 28 pixel 2 api 31
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior nest scroll child view do not scroll when its inside nest scroll parent
Bug
description when a nest scroll child view be inside a nest scroll parent view and the child view change the scroll position the touch event get intercept by the bottom sheet behavior for example if I put a viewpager2 in the bottom sheet dialog and put a vertically scrollable recyclerview inside the viewpager2 and navigate to the second page the recyclerview become unscrollable expect behavior nest scroll child view must be scrollable and should not be intercept by bottom sheet behavior minimal sample app repro android api version all affect material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
bottomsheet bottom inset be cut when paddingtopsystemwindowinset be set to false
Bug
description when application be in edge to edge mode I need the standard bottomsheet with scrollable content to satisfy the follow 1 do not reach the top system bar when fully scroll 2 have content shift at the bottom by the bottom system bar height 3 have no need for the extra scroll when content be not scrollable to achieve that I use the follow combination of the inset param app paddingbottomsystemwindowinset true to shift the content from the bottom app paddingtopsystemwindowinset false to make it not reach the top system bar notice that I try use the app margintopsystemwindowinset true instead it work fine with the give case but doesn t work in generic case for instance in case of modal sheet with short content you always have to scroll the sheet up by a measure of top margin however when I launch the app and scroll the content fully the bottom padding be not fully display instead I see the padding which be equal to the bottom bar height top bar height also in layout inspector I can see that bottom padding be render out of the window see the below screenshot app layout inspector expect behavior combination of the app paddingbottomsystemwindowinset true and app paddingtopsystemwindowinset false should work as per documentation I e not let the sheet render under the top bar and at the same time shift content from the bottom by the size of the bottom bar source code enable edge render mode in activity and use the follow layout android api version any material library version 1 9 0 device pixel 4 api 28
materialcomponentsmaterialcomponentsandroid
unable to apply dynamiccolor in conjunction with appcompatdelegate setdefaultnightmode
Bug
material version 1 9 0 rc01 test on pixel 4a android 13 my app theme be a custom theme whose parent be theme material3 dynamiccolor daynight I can use the dynamiccolor api just fine to apply it globally in my application s oncreate dynamiccolor applytoactivitiesifavailable this new dynamiccolorsoption builder build with this the dynamic color material you be apply however if I use appcompatdelegate setdefaultnightmode call before of after the applytoactivitiesifavailable call it do not matter to force dark mode on or off depend of app set the dynamic color be not apply and the theme be use whatever default color be configure for non dynamic mode purple in my case the default m3 color scheme since I do not define custom color in my theme yet after some digging into it I see that a call appcompatdelegate setdefaultnightmode result in some heavy stuff be do in the activity s attachbasecontext which be call prior the dynamiccolor s onactivityprecreate hook apparently these 2 thing conflict with each other or be I do something wrong appcompatdelegate setdefaultnightmode be otherwise work fine outside of be use with dynamyccolor
materialcomponentsmaterialcomponentsandroid
search bar set searchbar settext do not work without android windowsoftinputmode adjustnothing
Bug
description I have copy your code from searchrecyclerdemoactivity and while play with search bar I have notice that do searchbar settext inside submitsearchquery do nothing no effect once I have configure android windowsoftinputmode adjustnothing in my activity it start work expect behavior searchbar settext should work even without set windowsoftinputmode idk I be new to android but I guess it should not depend on windowsoftinputmode source code android api version 33 material library version 1 9 0 rc01 device xiaomi mi note 10 lite miui global 12 5 6 stable
materialcomponentsmaterialcomponentsandroid
search bar query text stay in search bar and search view despite fragment change and explicit settext
Bug
description I be use similar setup you describe in the documentation put it all together and searchrecyclerdemoactivity I have a search bar and a recyclerview below it once I click on a search bar search view pop up and I enter a search query press ok and search view close search bar be populate with a query text and recycler view below get update when I switch to other fragment in my bottom navigation bar and then later come back to the search fragment recycler view be re initialize with the full list of item but the old query be still inside the search bar and search view explicitly set searchbar settext searchview settext searchview getedittext settext inside fragment oncreateview do not help same with fragment ondestroyview in a debugger I can see that once I come back to the search fragment new instance of searchbar and searchview be return from bind getroot findviewbyid expect behavior query text in search bar and search view should be clear once fragment activity be change source code the code snippet which be cause this issue android api version 33 material library version 1 9 0 rc01 device xiaomi mi note 10 lite miui global 12 5 6 stable to help we triage fast please check to make sure you be use the late version of the library
materialcomponentsmaterialcomponentsandroid
badgedrawable badgedrawable be cut off when attach to shapeableimageview
Bug
description badgedrawable be cut off when attach to shapeableimageview it be not cut off when attach to an imageview nor when attach to a shapeableimageview inside of a framelayout this issue be bring up in but the suggest workaround set layout margin on shapeableimageview do not work initially I be apply the badgedrawable to an imageview and that work well however when I swap it out for a shapeableimageview the badge be clip expect behavior I expect consistent behavior when attach a badgedrawable to either a shapeableimageview or an imageview in both case I do not expect the badge to be cut off I expect that add layout margin to shapeableimageview would fix the badge clip but it didn t 87jzpvhuzxeeror source code xml xml mainactivity kt kotlin val imageview findviewbyid r i d imageview val shapeableimageviewbroken findviewbyid r i d shapedimageviewbroken val shapeableimageviewwithmargin findviewbyid r i d shapedimageviewwithmargin imageview viewtreeobserver addongloballayoutlistener object viewtreeobserver ongloballayoutlistener override fun ongloballayout val badgedrawable badgedrawable create this mainactivity badgedrawable isvisible true badgeutil attachbadgedrawable badgedrawable imageview val badgedrawablebroken badgedrawable create this mainactivity badgedrawablebroken isvisible true badgeutil attachbadgedrawable badgedrawablebroken shapeableimageviewbroken val badgedrawablebrokenwithmargin badgedrawable create this mainactivity badgedrawablebrokenwithmargin isvisible true badgeutil attachbadgedrawable badgedrawablebrokenwithmargin shapeableimageviewwithmargin minimal sample app repro badge drawable issue app zip android api version 33 material library version material 1 5 0 device pixel 6a
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder title and subtitle be overlap in android 12 device and samsung device
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 fun context showcustomalertdialog strtitle string strmsg charsequence strpositive string onpositiveclick unit val builder materialalertdialogbuilder this r style materialalertdialog round builder settitle settypeface setmediumtypeface strtitle builder setmessage settypeface setregulartypeface strmsg builder setpositivebutton strpositive onpositiveclick val dialog builder create dialog show dialog setcanceledontouchoutside false dialog setcancelable false val positivebtn dialog getbutton alertdialog button positive positivebtn letterspace 0 01f minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or a link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 8 0 device device on which the bug be encounter on pixel device and samsung m33 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
tab incorrect tab indicator size
Bug
actual behavior api 17 emulator expect behavior api 19 emulator material library version 1 10 0 alpha01 device api 17 emulator
materialcomponentsmaterialcomponentsandroid
sidesheet bug switch from coplanar to standard sidesheet when expand leave sible view squashed
Bug
note this bug be move from 3322 if you have a sidesheet with some view r i d myotherview as the coplanarsiblingviewid sidesheetbehavior from mysidesheet setcoplanarsiblingviewid r i d myotherview you open the sidesheet on a landscape orientation phone or maybe a tablet or chromebook or some other big screen sidesheetbehavior from mysidesheet expand great it shove myotherview over squash it for a side by side but should you then switch to portrait or resize the window activity to be very narrow you d want want to go from a side by side to a regular on top sidesheet so you react to the change with either sidesheetbehavior from mysidesheet setcoplanarsiblingviewid view no i d or alternately sidesheetbehavior from mysidesheet setcoplanarsiblingview null what should happen the sidesheet stay expand change type to non coplanar regular and the formerly coplanar view myotherview should expand underneath it what do happen the sidesheet stay expand change type to non coplanar regular behavior but leave the other view myotherview squashed hide the stylesheet at this point make it go away but the coplanar myotherview view doesn t expand and it doesn t appear behind it it just sit there squish with a big grey rectangle sit there where the sidesheet be what doesn t work to fix it do any combination of invalidate requestlayout or forcelayout on myotherview to get it to expand back into the grey space tl dr when change from coplanar to standard sidesheet by set setcoplanarsiblingviewid if the sidesheet be already open the squashed side view do not expand underneath it as expect leave a big gray rectangle under the regular sidesheet thx
materialcomponentsmaterialcomponentsandroid
materialbutton background color different on short long click
Bug
description full description of issue here the background color of materialbutton use style widget materialcomponent button outlinedbutton on short click and long click be different on short click image on long click image expect behavior screenshot and or description of expect behavior the background color should be the same for long click and short click or an option should be there to have they look the same source code the code snippet which be cause this issue xml android api version the device be run android v7 1 2 material library version com google android material material 1 8 0 device model be a5dwg
materialcomponentsmaterialcomponentsandroid
materialautocompletetextview dropdown height calculate incorrectly when add to a dialog
Bug
description when materialautocompletetextview be add as a custom view to a dialog the dropdown height do not account for the ime a good portion of the dropdown item end up below the keyboard expect behavior in this screen recording the last few item in the dropdown be obscure by the keyboard but should ideally not happen source code this can be reproduce with a small modification to the official catalog app in this repo 1 clone this repo I be test against master at commit 359580b6c1160301967ebdededb1011c1133b42c 2 apply this patch this modify the custom view dialog sample to have a materlaautocompletetextview and increase the number of dropdown element to 25 3 navigate to dialog demo custom view 4 tap on the text box 5 the dropdown item be obscure by the keyboard android api version 33 material library version both 1 8 0 and master commit 359580b6c1160301967ebdededb1011c1133b42c exhibit this issue device google pixel 7 pro android 13 build tq1a 230205 001 d2
materialcomponentsmaterialcomponentsandroid
topappbar collapse toolbar spannablestring title not animate properly when collapse
Bug
description when a spannablestring be set as the title of collapse toolbar when collapse the topappbar the fade in animation of the title work only for the non colored part of the text color text just appear without any animation expect behavior spannablestring title should animate properly source code kotlin val appname app name parseashtml bind collapsingtoolbarlayout title appname android api version 31 material library version 1 9 0 alpha02
materialcomponentsmaterialcomponentsandroid
materialdatepicker materialdatepicker not encircle today s date if disable
Bug
the materialdatepickerwidget have a bug where it do not encircle today s date if it be disabled it be important to address this issue to ensure that even if today s date be disabled it remain recognizable to the user
materialcomponentsmaterialcomponentsandroid
shapeableimageview crash occasionally
Bug
description hi I find a crash on shapeableimageview the version use be 1 5 0 error log resourcescompat fail to inflate colorstatelist leave it to the framework resourcescompat java lang unsupportedoperationexception fail to resolve attribute at index 0 typedvalue t 0x2 d 0x7f0400f3 a 1 resourcescompat at android content re typedarray getcolor typedarray java 477 resourcescompat at androidx core content re colorstatelistinflatercompat inflate colorstatelistinflatercompat java 13 resourcescompat at androidx core content re colorstatelistinflatercompat createfromxmlinner colorstatelistinflatercompat java 13 resourcescompat at androidx core content re colorstatelistinflatercompat createfromxml colorstatelistinflatercompat java 18 resourcescompat at androidx core content re resourcescompat inflatecolorstatelist resourcescompat java 13 resourcescompat at androidx core content re resourcescompat getcolorstatelist resourcescompat java 13 resourcescompat at androidx core content contextcompat getcolorstatelist contextcompat java 9 resourcescompat at androidx appcompat content re appcompatresources getcolorstatelist appcompatresource java 1 resourcescompat at com google android material resource materialresource getcolorstatelist materialresource java 3 resourcescompat at com google android material imageview shapeableimageview shapeableimageview java 18 resourcescompat at com google android material imageview shapeableimageview shapeableimageview java 2 resourcescompat at java lang reflect constructor newinstance0 native method resourcescompat at java lang reflect constructor newinstance constructor java 343 resourcescompat at android view layoutinflater createview layoutinflater java 647 resourcescompat at android view layoutinflater createviewfromtag layoutinflater java 807 resourcescompat at android view layoutinflater createviewfromtag layoutinflater java 730 resourcescompat at android view layoutinflater rinflate layoutinflater java 880 resourcescompat at android view layoutinflater rinflatechildren layoutinflater java 841 resourcescompat at android view layoutinflater inflate layoutinflater java 515 resourcescompat at android view layoutinflater inflate layoutinflater java 423 expect behavior shapeableimageview doesn t crash source code the crash on source code be typedarray if type typedvalue type attribute final typedvalue value mvalue getvalueat index value throw new unsupportedoperationexception fail to resolve attribute at index attrindex value theme mtheme minimal sample app repro use it in layout xml for example android api version 33 material library version 1 5 0 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
wrong divid color in navigationview
Bug
description navigationview divider color refer to attr coloroutline but in doc it s refer to attr coloroutlinevarient
materialcomponentsmaterialcomponentsandroid
slider label break up and not keep up with thumb upon quick slide
Bug
description the label be break up with its circular and triangular part be set off also upon release the thumb after perform quick slide movement the label stop and zoom out at an early position than the thumb do screenshot 2023 03 04 11 57 09 077 com w2sv autocrop 2 source code android api version 31 material library version observe on 1 8 0 1 9 0 alpha01 1 9 0 alpha02 device xiaomi redmi note 10a pro
materialcomponentsmaterialcomponentsandroid
rangeslider rangeslider draw redundant line when two thumb overlap
Bug
original issue 1394 1924 still happen in 1 8 0 screenshot library version com google android material material 1 8 0 device samsung galaxy tab a 10 1 sm p580 android 8 1 0 api 27 samsung experience 9 5 3 18 14 15948922 gcc version 4 9 x 20150123 prerelease gcc build compilesdk 33 targetsdk 33 minsdk 21 repro repo source code xml
materialcomponentsmaterialcomponentsandroid
actionmode icon color for disabled enabled state be the same in the night theme
Bug
description the color of the icon in my case delete icon in the dark theme in action mode be the same regardless of whether it be enable or disabled expect behavior light theme source code light theme default dark theme android api version 30 material library version 1 8 0 1 9 0 alpha02 device poco x3 nfc
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton inconsistent size when expand if the text be short
Bug
description if extendedfloatingactionbutton have short text the size change a little when expand expect behavior if text long everything work as expect source code fab extend app theme theme material3 android api version 30 material library version 1 8 0 1 9 0 alpha02 device poco x3 nfc
materialcomponentsmaterialcomponentsandroid
basetransientbottombar animation time be too long
Bug
description snackbar animation time at the beginning and end be too long include slide animation and fade animation in theme materialcomponent expect behavior animationslideduration be 250 which be r attr motiondurationshort4 animationfadeinduration be 150 which be r attr motiondurationshort2 animationfadeoutduration be 75 which be r attr motiondurationshort1 source code java animationslideduration motionutil resolvethemeduration context r attr motiondurationlong2 default slide animation duration animationfadeinduration motionutil resolvethemeduration context r attr motiondurationlong2 default animation fade in duration animationfadeoutduration motionutil resolvethemeduration context r attr motiondurationmedium1 default animation fade out duration minimal sample app repro snackbart zip android api version 29 material library version 1 9 0 alpha02 device honor 9x
materialcomponentsmaterialcomponentsandroid
appbarlayout compress toolbar be invisible but its button be clickable
Bug
how to reproduce in cat topappbar compress effect fragment xml replace xml with xml result material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
draghandle background colour incorrect
Bug
description bottom sheet drag handle appear far dark than the material 3 design doc image doc spec I look like the 40 alpha be miss for the mdc android implementation change the default style fix it xml style widget xxx bottomsheet draghandle code l92
materialcomponentsmaterialcomponentsandroid
slider a ripple doesn t keep up with a thumb
Bug
material library version 1 8 0 device api 21 emulator api 27 emulator
materialcomponentsmaterialcomponentsandroid
bottomsheet bottom sheet expand and then go to half expand state
Bug
description a bit of an issue when I start update the version for material to 1 6 0 the bottom sheet have start behave weirdly before this version let say we have two bottom sheet a and b if I go a b and go back I will find the a in half expand state as it be but with increase in version when I press back it first expand fully and then go back to the same state I e half expand state expect behavior when I go back to the previous sheet it should not first expand and then collapse but rather be in the state it be in material library version 1 8 0 device pixel 7 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
datum bind can t update text on extendedfloatingactionbutton immediately
Bug
description I use datum bind for display text on extendedfloatingactionbutton but it didn t update text then I try edit text textview for sure my code didn t wrong and yes other view can display datum from view model state flow datum on extendedfloatingactionbutton just show when I recreate fragment or activity expect behavior image source code code for datum bind on extendedfloatingactionbutton minimal sample app repro android api version min be 26 and max be 33 material library version 1 9 0 alpha01 device poco x3 pro
materialcomponentsmaterialcomponentsandroid
circularprogressindicator visibilityafterhide be ignore
Bug
description when hide a progress indicator use the hide method it always set the view visibility to invisible instead of set it to the value set to visibilityafterhide l248 l256 expect behavior call hide after setvisibilityafterhide view go set the view visibility to go instead of invisible android api version any material library version 1 8 0 device any
materialcomponentsmaterialcomponentsandroid
materialswitch thumb stretching
Bug
if you abruptly switch the state of materialswitch with a thumb it will stretch but only at the end of the track I m sure it shouldn t be like this material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
materialswitch switch animation
Bug
the current switch animation doesn t match m3 guideline switch thumb should stretch when move animation should be kinda elastic and so on material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
top app bar make more clear that top app bar be only colorize on scroll
Bug
I refer to the material3 component site could you please adjust the documentation about the top bar component so that be more clear that the color of the top app bar be always equal to the content but get a color fill on scrolling it would be great if this get highlight somewhere because it be confusing to see a colorized top app bar directly on the first page of the component while one be expect a white black top app bar like it be promise and preview by the theme builder I be wonder why theme builder show a top app bar with a white or black surface color neutral 99 respectively base on ui mode but material 3 site partially show a colorized top app bar since background color and surface color be the same the color of the top app bar and the background color and also the status bar color always match that s what the theme builder promise in the preview and also in the export value it take some time to understand why some of the visual on the material3 top app bar site be colorize especially the one on the first page it be confusing to see a colorized top app bar when enter the first page of top app bar expect something similar the theme builder offer this be the visual on the first page image it be only colorize because the content be scolled but this isn t clear on first glance it would be great if this can be make more clear maybe don t use any visual with a colorized top app bar until the behavior section under guideline behavior scrolling be state that the color only change when content be be scroll see 4eab4f50 4a3e 4189 bce2 a46514cde1da only upon scroll the top app bar container fill with a contrast color that provide visual separation from the background
materialcomponentsmaterialcomponentsandroid
dialog enter exit transition
Bug
dialog transition should match m3 spec 3a644ed3 15a9 4cb1 afde 3d765c059e88 expect behavior material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
search broken animation of ltr text inside rtl search bar
Bug
material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
materialtimepicker hour incorrectly restore in 24 hour time format after process death
Bug
description when trigger process death with a materialtimepicker dialog open with 24 hour time format the dialog be incorrectly recreate if the time 8 00 be select 20 00 will be show instead after recreation weirdly enough 8 be still select on the hour wheel this only happen if the time be set before 12 be video demo zip expect behavior update the hour display correctly after process death source code open any materialtimepicker with time format set to 24h then trigger process death only library code run on recreation none of mine android api version 33 material library version 1 7 0 device emulator
materialcomponentsmaterialcomponentsandroid
tablayout ripple of tablayout be different from ripple of other component
Bug
description ripple of tablayout be different from ripple of other component catalog app I e expect behavior h ripple of tablayout be inconsistent in a minimal sample app repro catalog app android api version 33 material library version 1 8 0 beta01 device 31 3 14
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout multiline title position
Bug
description when use collapsingtoolbarlayout multiline title title bound be sometimes wrong when title be effectively multiline lead title to be position upward project to reproduce collaspingtoolbarlayout zip issue screenshot image expect screenshot image
materialcomponentsmaterialcomponentsandroid
materialcheckbox checkbox text be misalign with the checkmark icon by 1px
Bug
I m not sure this be intentional or not but here s a checkbox currently look with a text specify this screenshot be from the late m3 catalog app misalign checkbox text as you can see the baseline be not align with the checkmark icon but it be on the material design reference here s how it look on the guideline page image to workaround this issue I m currently use app lastbaselinetobottomheight 7sp on the checkbox I ve add an extra 1sp to optically align it from the icon baseline of 6sp by the way android lastbaselinetobottomheight show up as an attribute whereas the app one doesn t but it work anyway I ve check this issue on android api version 21 material library version 1 7 0
materialcomponentsmaterialcomponentsandroid
timepicker materialtimepicker doesn t match m3 dialog spec
Bug
the side and bottom padding of materialtimepicker don t match m3 dialog spec m3 simple dialog materialtimepicker dialog material library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
datepicker materialdatepicker doesn t match m3 dialog spec
Bug
the side and bottom padding of materialdatepicker don t match m3 dialog spec m3 simple dialog materialdatepicker dialog material library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
tablayout tab indicator get stick in an intermediate position when use with viewpager
Bug
how to reproduce open tabscontrollabledemofragment m3 catalog swipe viewpager content a little towards the next page don t release your finger tap tab 2 swipe towards the previous page a little and release the finger library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
searchview background color while expand
Bug
hi how would one change the background color shade create by searchview as it be expand during show or rather be it hardcode or which attribute searchview use to get that color thank you screenshot 20221130 194145 video player
materialcomponentsmaterialcomponentsandroid
bottomnavigation ripple be incorrectly overlay on the indicator when the icon be large
Bug
how to reproduce open bottomnavigationlabelvisibilitydemofragment m3 catalog set icon size to 48dp click any menu item library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
appbarlayout lift on scroll doesn t work with inner bottomappbar and hideonscroll set to true
Bug
description the appbarlayout lift on scroll feature stop work when an inner bottomappbar in a fragment have hideonscroll set to true expect behavior the appbarlayout should get the lift on scroll color even when an inner bottomappbar have hideonscroll set to true source code activity main xml xml fragment main xml contain inside the fragmentcontainerview xml minimal sample app repro sample app ndl3uoefew5rizd2yx6b75px9oc1pguy2jgfiryjrkm android api version 33 material library version 1 7 0 device emulator avd honor 70
materialcomponentsmaterialcomponentsandroid
search catalog undefined search screen state
Bug
how to reproduce quickly and rhythmically click the search back icon 4 time device pixel 4a 5 g android 13 library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
materialbutton icon size of icon button doesn t match m3 spec
Bug
description hi it seem that the icon only button base style widget material3 button iconbutton be use a wrong icon size the attribute iconsize use the resource dimen m3 btn icon only default size with a value of 20dp instead of 24dp as it be describe in the spec fbe6913b 2c1b 42c1 be4a 3d73d9dc601d expect behavior the dimension dimen m3 btn icon only default size would need to be set to 24dp instead of 20dp source code xml 20dp material library version 1 8 0 alpha02
materialcomponentsmaterialcomponentsandroid
textinputlayout prefix not display for the first time
Bug
description prefix not display for the first time in bind adapter prefix appear from second call bindingadapter value zerosalaryplaceholder negativesalaryprefixbyarticle negativesalaryprefixbyarticlelogworktype requireall true fun bindzerosalaryplaceholder view onelineeditableitem inputtext string digit float logworktype logworktype view apply inputtext let enteredtext when enteredtext isnotempty logworktype logworktype deduction digit null digit 0f setzeroplaceholder null settextprefix enteredtext isempty settextprefix null setzeroplaceholder r string amount else unit fun settextprefix prefix string bind apply itemonelinetextlayout prefixtext prefix expect behavior prefix appear from first call source code I think this code l3936 work wrong because startlayout getmeasuredwidth still 0 when we have getprefixtext not null that s why prefix not display android api version android api 30 material library version 1 8 0 alpha02 1 8 0 alpha01 1 7 0 device emulator and physical
materialcomponentsmaterialcomponentsandroid
textinputlayout focus underline stroke can t be hide in fill mode
Bug
description textinputlayout focus underline stroke can t be hide in fill mode app boxbackgroundmode fill our application design require a fill mode textinputlayout that have a stroke in unfocused state and do not have a stroke in focused state this be possible to achieve in material component version 1 3 but not in later version test with 1 6 and 1 7 expect behavior both of these approach should hide the underline stroke in focused state 1 boxstrokewidthfocuse be set to 0dp this solution use to work in version 1 3 2 boxstrokecolor color state list entry for state focus be set to transparent source code 1 boxsrokewidthfocuse be ignore in fill mode as separate drawable be now use instead l4087 2 default underline drawable be always draw and focused underline be draw on top mean that transparent boxstrokecolor show the underlay defaultstrokecolor instead l2817 minimal sample app repro please let I know if a sample would be useful android api version any api version material library version 1 6 1 7 device any device
materialcomponentsmaterialcomponentsandroid
in android10 or above when the dark mode of the app be inconsistent with the dark mode of the system the background rendering of tablayout be incorrect
Bug
description full description of issue here in my app you can forcibly specify whether the app use dark mode however in android 10 and above when the system use a light color theme but the app forcibly specify a dark color theme tablayout will display an abnormal background color rendering expect behavior screenshot and or description of expect behavior screenshot 20221022 170518 screenshot 20221022 170555 android api version android api version here 33 material library version material android library version you be use here e g 1 1 0 alpha07 1 8 0 alpha01
materialcomponentsmaterialcomponentsandroid
bottomsheet expand bottom sheet with fittocontent false be not full screen
Bug
description simple bottom sheet that start expand and have fittocontent false kotlin class mybottomsheet bottomsheetdialogfragment override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle inflater inflate r layout fragment second container false override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate dialog as bottomsheetdialog behavior apply state bottomsheetbehavior state expand isfittocontent false will appear fly on top of the screen expect behavior bottom sheet be full screen lay out with match parent height source code above minimal sample app repro bottom sheet zip material library version 1 6 1
materialcomponentsmaterialcomponentsandroid
bottomsheet go from state hide to state collapse make strange animation
Bug
description in simple app call bottomsheetbehavior state bottomsheetbehavior state collapse when it be state hide start the animation from the bottom of the screen and ease up into the peek height for some reason in my fork of uamp when show the bottom sheet for the first time by set the state to collapse from hidden the animation start at about 25 of the way down from the top of the screen more than half expand and within several millisecond rest at state settle create a jarring visual experience to reproduce the error in the sample app click a card to start the audio player and show the bottom sheet this only happen the first time a card be click after a cold startup expect behavior bottom sheet appear in an ease animation animate upwards from the bottom of the screen until it reach its peek height what actually happen bottom sheet appear more than half expand and animate downwards until it reach its peek height source code private fun showbottomsheetifnotvisible if bottomsheetisvisible bottomsheetisvisible true behavior state bottomsheetbehavior state collapse val param fragmentcontainer layoutparam as constraintlayout layoutparam param bottommargin resource getdimension r dimen bottomsheet header height toint fragmentcontainer layoutparam param minimal sample app repro note there be a few class relate to the medium player and unrelated to the bottom sheet error I try to cut away as much as I could while retain the bug as far as I can tell all of the relevant code be in mainactivity android api version 32 material library version 1 8 0 alpha01 device oneplus 8 t
materialcomponentsmaterialcomponentsandroid
top app bar theme the top app bar and contextual action bar with custom color not work in material 3
Bug
description full description of the issue here update after I create a new project with a material 3 theme and I try to change the top app bar and contextual action bar I can confirm it s a bug I ve open issue here 1 please star it or vote 1 to pay attention to it and solve it as soon as possible theme the top app bar I follow the instruction in this link 2 to apply a custom theme on all toolbar and contextual action bar in my app but it s not work at all it s always be white color on light mode and dark in night mode test on material version implementation the follow version implementation com google android material material 1 6 1 and implementation com google android material material 1 8 0 alpha01 android 11 and above let s start with my color light version 1aae66 5ee194 007d3a 1de9b6 6effe8 00b686 color white 000000 color night color darker color darkgray color black 4db6ac 82e9de 00867d theme xml light version theme xml night version there be only one way that work to change the toolbar color be to set my custom theme to appbarlayout the attribute style style widget app toolbar be ignore in the toolbar and apply with appbarlayout here s example this win t work android layout width match parent android layout height attr actionbarsize app layout scrollflag scroll enteralway snap app title post detail the second problem in contextual action mode bar be when I try to override its color with the attribute actionmodebackground color contextualactionbarcolor it should be my dark black color but it s notworking ignore the other attribute actionmodetheme with style themeoverlay material3 dark actionbar it use the main primary color green for action bar this example of the contextual action bar of material 3 enter image description here 3 3 this example of the contextual action bar of material 2 before I update to material 3 enter image description here 4 4 1 2 3 4 expect behavior screenshot and or description of expect behavior source code provide android api version test on android api 29 and above material library version test on stable material version com google android material material 1 6 1 and last one com google android material material 1 8 0 alpha01 device all device real and emulator 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 disabled error state
Good First Issue
disabled text field with an error look like this shouldn t the error disappear I mean error icon and or error text or their color change in this case
materialcomponentsmaterialcomponentsandroid
materialbutton android foreground doesn t work on bottomsheetdialogfragment
Bug
description materialbutton android foreground attribute doesn t work inside of a bottomsheetdialogfragment but it work as expect in fragment expect behavior the foreground of materialbutton should be show inside of the bottomsheetdialogfragment material button inside of the fragment screenshot 2022 09 27 at 17 52 28 material button inside of bottomsheetdialogfragment screenshot 2022 09 27 at 17 52 44 source code the code snippet which be cause this issue minimal sample app repro android api version android api version here material library version 1 5 0 1 8 0 alpha01 device emulator api 31
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment significantvelocitythreshold do not impact nest scroll
Bug
the nest scrolling sensibility of the bottomsheetdialogfragment be too sensible a minimum scroll make the dialog dismiss in the 1 8 0 alpha01 version be possible to set the significantvelocitythreshold in the dialog behavior to adjust the theshold but it do not impact the nest scrolling expect behavior here you can find a video that describe the issue source code that s my dialog behavior configuration dialog behavior skipcollapse true dialog behavior isfittocontent true dialog behavior significantvelocitythreshold int max value dialog behavior state bottomsheetbehavior state expand material library version 1 8 0 alpha01
materialcomponentsmaterialcomponentsandroid
bottomnavigationview the border or shadow can not be set after bottomnavigationview set the top bulge
Bug
description full description of issue here I set the bulge for bottomnavigationview through the settopedge method of materialshapedrawable because the color of the page be similar to that of bottomnavigationview so I need to set a border or shadow on top of the control but I can t set the border or shadow on top of the control normally in addition bottomnavigationview invalidateoutline seem to have some effect but it seem to be only valid on android12 and the low version of android can not be use y1k7j rmu 6j4qvr0 gc r4 tv7mc jj gw 40 4mik ewf expect behavior screenshot and or description of expect behavior I want the control to be able to individually shape an edge as well as border and shadow I hope api 21 can support similar effect source code the code snippet which be cause this issue val materialshapedrawable bottomnavigationview background as materialshapedrawable materialshapedrawable shapeappearancemodel materialshapedrawable shapeappearancemodel tobuilder settopedge cutoutcircleedgetreatment resource 70 tofloat 10 tofloat build val backgrounddrawable materialshapedrawable materialshapedrawable shapeappearancemodel apply settint color white paintstyle paint style fill shadowcompatibilitymode materialshapedrawable shadow compat mode always initializeelevationoverlay this mainactivity setshadowcolor color red elevation 100f bottomnavigationview parent as viewgroup clipchildren false bottomnavigationview background backgrounddrawable bottomnavigationview invalidateoutline class cutoutcircleedgetreatment re resource circlediameterdp float circleleftrightoffsetdp float edgetreatment private val fabdiameter float private val offset float init fabdiameter typedvalue applydimension typedvalue complex unit dip circlediameterdp re displaymetric offset typedvalue applydimension typedvalue complex unit dip circleleftrightoffsetdp re displaymetric override fun getedgepath length float center float interpolation float shapepath shapepath val r length 10 center val halfline length 2 r r val offset 30f shapepath lineto halfline offset 0f shapepath quadtopoint halfline 0f halfline offset offset shapepath quadtopoint center r halfline 2 r offset offset shapepath quadtopoint halfline 2 r 0f halfline 2 r offset 0f shapepath lineto length 0f minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here 28 material library version material android library version you be use here e g 1 1 0 alpha07 1 6 1 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
bottomsheetdialog bottomsheetdialog flickering animation while come to foreground
Bug
description when I set the dialog to show the slide from bottom animation occur and the dialog be show now if I set the app to background and then bring it back to the foreground the dialog that be already show do the same slide bottom to top animation expect behavior it should be not slide bottom to top as app come from background to foreground source code final bottomsheetdialog bottomsheetdialog new bottomsheetdialog mainactivity this bottomsheetdialog setcontentview r layout bottom sheet dialog layout bottomsheetdialog show android api version android 11 and below work fine with android 12 material library version 1 1 0 1 2 0 device pixel 2 xl with android 11
materialcomponentsmaterialcomponentsandroid
expose drop down a11y override the accessibility delegate of textinputlayout break dropdown functionality
Bug
description override the accessibility delegate of textinputlayout stop normal functionality for expose drop down as we wish to add content description we think of update the accessibility info this change the talkback for material design expose drop down to edit text and double stop work as it doesn t open the dropdown pop up expect behavior expect behavior be that the textinputlayout and child materialautocompletetextview behave normally as expose drop down and the new text add to accessibility info get announce source code textinputlayout settextinputaccessibilitydelegate object textinputlayout accessibilitydelegate textinputlayout override fun oninitializeaccessibilitynodeinfo host view info accessibilitynodeinfocompat super oninitializeaccessibilitynodeinfo host info todo code android api version 13 material library version 1 4 0 device pixel 6 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
materialtextview anr with initlization
Bug
description we ve be use an extended version of materialtextview name it as amcustomfonttextview we be receive a lot of anr when use it the constructor of materialtextview be where the stack point it hang there all the time share the firebase capture stack trace main native tid 1 systid 7111 00 pc 0x60cf4 libc so 01 pc 0x1286f3 libart so 02 pc 0x2e2279 libart so 03 pc 0xc9561 libandroid runtime so at android content re assetmanager nativeapplystyle assetmanager java at android content re assetmanag applystyle assetmanager java 1169 at android content re resourcesimpl themeimpl obtainstyledattributes resourcesimpl java 1636 at android content re resource theme obtainstyledattribute resource java 1763 at android content context obtainstyledattribute context java 803 at com google android material theme overlay materialthemeoverlay obtainmaterialthemeoverlayid materialthemeoverlay java 113 at com google android material theme overlay materialthemeoverlay wrap materialthemeoverlay java 67 at com google android material textview materialtextview materialtextview java 93 at com google android material textview materialtextview materialtextview java 88 at com google android material textview materialtextview materialtextview java 83 at com audiomack view amcustomfonttextview amcustomfonttextview kt 24 at java lang reflect constructor newinstance0 constructor java at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 852 at android view layoutinflater createviewfromtag layoutinflater java 1004 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate layoutinflater java 1121 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater rinflate layoutinflater java 1124 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 532 at com xwray groupie groupadapter oncreateviewholder groupadapter java 221 at com xwray groupie groupadapter oncreateviewholder groupadapter java 20 at androidx recyclerview widget recyclerview adapter createviewholder recyclerview java 7295 at androidx recyclerview widget recyclerview recycler trygetviewholderforpositionbydeadline recyclerview java 6416 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6300 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6296 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 com audiomack util groupie sticky stickyheaderslinearlayoutmanager onlayoutchildren stickyheaderslinearlayoutmanag kt 136 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4309 at androidx recyclerview widget recyclerview dispatchlayout recyclerview java 4012 at androidx recyclerview widget recyclerview onlayout recyclerview java 4578 at android view view layout view java 24475 at android view viewgroup layout viewgroup java 7383 at androidx swiperefreshlayout widget swiperefreshlayout onlayout swiperefreshlayout java 625 at android view view layout view java 24475 at android view viewgroup layout viewgroup java 7383 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 24475 at android view viewgroup layout viewgroup java 7383 at android widget linearlayout setchildframe linearlayout java 1829 at android widget linearlayout layoutvertical linearlayout java 1673 at android widget linearlayout onlayout linearlayout java 1582 at android view view layout view java 24475 at android view viewgroup layout viewgroup java 7383 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 24475 at android view viewgroup layout viewgroup java 7383 at androidx recyclerview widget recyclerview layoutmanager layoutdecoratedwithmargin recyclerview java 9878 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 4309 at androidx recyclerview widget recyclerview onmeasure recyclerview java 3686 at android view view measure view java 27131 at android view viewgroup measurechild viewgroup java 7922 at androidx viewpager2 widget viewpager2 onmeasure viewpager2 java 498 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 27131 at androidx constraintlayout widget constraintlayout measurer measure constraintlayout java 811 at androidx constraintlayout core widget constraintwidgetcontainer measure constraintwidgetcontainer java 632 at androidx constraintlayout core widget analyzer direct horizontalsolvingpass direct java 323 at androidx constraintlayout core widget analyzer direct solvehorizontalmatchconstraint direct java 709 at androidx constraintlayout core widget analyzer direct horizontalsolvingpass direct java 374 at androidx constraintlayout core widget analyzer direct solvingpass direct java 144 at androidx constraintlayout core widget constraintwidgetcontainer layout constraintwidgetcontainer java 693 at androidx constraintlayout core widget analyzer basicmeasure solvelinearsystem basicmeasure java 160 at androidx constraintlayout core widget analyzer basicmeasure solvermeasure basicmeasure java 291 at androidx constraintlayout core widget constraintwidgetcontainer measure constraintwidgetcontainer java 120 at androidx constraintlayout widget constraintlayout resolvesystem constraintlayout java 1594 at androidx constraintlayout widget constraintlayout onmeasure constraintlayout java 1708 at android view view measure view java 27131 at androidx core widget nestedscrollview measurechildwithmargin nestedscrollview java 1695 at android widget framelayout onmeasure framelayout java 194 at androidx core widget nestedscrollview onmeasure nestedscrollview java 604 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at androidx coordinatorlayout widget coordinatorlayout onmeasurechild coordinatorlayout java 760 at androidx coordinatorlayout widget coordinatorlayout onmeasure coordinatorlayout java 833 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 27131 at androidx constraintlayout widget constraintlayout measurer measure constraintlayout java 811 at androidx constraintlayout core widget analyzer basicmeasure measure basicmeasure java 466 at androidx constraintlayout core widget analyzer basicmeasure measurechildren basicmeasure java 134 at androidx constraintlayout core widget analyzer basicmeasure solvermeasure basicmeasure java 278 at androidx constraintlayout core widget constraintwidgetcontainer measure constraintwidgetcontainer java 120 at androidx constraintlayout widget constraintlayout resolvesystem constraintlayout java 1594 at androidx constraintlayout widget constraintlayout onmeasure constraintlayout java 1708 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget framelayout onmeasure framelayout java 194 at androidx appcompat widget contentframelayout onmeasure contentframelayout java 145 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 27131 at android view viewgroup measurechildwithmargin viewgroup java 7951 at android widget framelayout onmeasure framelayout java 194 at com android internal policy decorview onmeasure decorview java 1175 at android view view measure view java 27131 at android view viewrootimpl performmeasure viewrootimpl java 4187 at android view viewrootimpl measurehierarchy viewrootimpl java 2936 at android view viewrootimpl performtraversal viewrootimpl java 3204 at android view viewrootimpl dotraversal viewrootimpl java 2618 at android view viewrootimpl traversalrunnable run viewrootimpl java 9971 at android view choreographer callbackrecord run choreographer java 1010 at android view choreographer docallback choreographer java 809 at android view choreographer doframe choreographer java 744 at android view choreographer framedisplayeventreceiver run choreographer java 995 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 8633 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 602 at com android internal os zygoteinit main zygoteinit java 1130 expect behavior no anr source code open class amcustomfonttextview materialtextview private var customletterspace float 0 tofloat constructor context context attrs attributeset defstyle int super context attrs defstyle init attrs constructor context context attrs attributeset super context attrs init attrs constructor context context super context minimal sample app repro it s reproducible with all version of our application android api version android 11 10 8 12 material library version com google android material material 1 6 1 device device on which the bug be encounter here 1 samsung galaxy a11 2 tecno f1 3 itel sp591 4 motorola moto g pure
materialcomponentsmaterialcomponentsandroid
tablayout tab font be reset to roboto when attach new tablayoutmediator
Bug
description similar to 965 except not while switch tab but reset tab with new datum after view creation use a stateflow in the fragment s viewmodel which provide datum for tab when the stateflow receive a new value attach a new tablayoutmediator cause the tab to refresh with the roboto font instead of the app theme s font when the tab be load for the first time on view creation the tab font come from the app theme s fontfamily attribute expect behavior the font should be the same theme font both on the initial tab load and any subsequent refreshe source code override fun onviewcreate view view savedinstancestate bundle viewlifecycleowner lifecyclescope launch viewmodel info collect info with bind tabmediator detach pager adapter infoadapter info tabmediator tablayoutmediator tab pager infotabconfigurationstrategy info apply attach minimal sample app repro run the app and wait 10 second for the tab datum refresh my application zip android api version android 13 api 33 material library version 1 6 1 also 1 7 0 beta01 device pixel 6 pro
materialcomponentsmaterialcomponentsandroid
materialcardview content padding doesn t work with relative corner size
Bug
cornerfamily cutcornersize 72dp cornerfamily cutcornersize 20 material library version 1 7 0 beta01 device pixel 4 api 29
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout talkback be not show correct title place on expand mode
Bug
description full description of issue here talkback be not announce the expand title on the correct place the expandedtitlegravity select bottom when we start talkback still talkback announce the title on the top not on the title appearance expect behavior screenshot and or description of expect behavior talkback should move on the title on expand toolbar and announce it on correct place source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version 29 30 material library version material android library version you be use here e g 1 1 0 alpha07 late device device on which the bug be encounter here try on more than 10 device samsung oneplus lg motorola 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 transition animation problem day night mode
Bug
how to fix transition animation problem day night mood expect behavior screenshot and or description of expect behavior check back animation night mode be good work but light mode material library version material android library version you be use here e g 1 1 0 alpha07 and material 1 6 1 device all device code
materialcomponentsmaterialcomponentsandroid
slider cut label look ridiculous
Bug
material library version 1 7 0 beta01
materialcomponentsmaterialcomponentsandroid
materialtoolbar shadow be draw over content with the same elevation
Bug
description the shadow from a materialtoolbar will draw over content below it even if it be of the same elevation for example if I have a materialcardview with cardelevation 4dp that be directly below a materialtoolbar with elevation 4dp there will be a shadow cast on the materialcardview from the materialtoolbar expect behavior I would expect that there be no shadow over the card since it be the same elevation as the app bar source code modify cat topappbar action bar activity xml from the catalog app so that the content be within a materialcardview xml then open the action bar demo in the catalog app screenshot 20220817 162432 m3 catalog android api version 31 material library version 1 7 0 beta01 device google pixel 4a
materialcomponentsmaterialcomponentsandroid
coordinatorlayout header scroll and content scroll don t mix well
Bug
expect behavior no flicker when interrupt a scroll
materialcomponentsmaterialcomponentsandroid
bottomnavigationview active indicator blink on the edge api 28
Bug
description when change tab the pill shape active indicator be blink on the edge api28 android 9 device expect behavior api32 android 12 device source code xml xml xml android api version android 9 api 28 material library version 1 7 0 alpha03 device test on pixel 2 emulator and huawei p10 not able to reproduce the bug on pixel 3a api 32 and asus zenpad 3s 10 api 24
materialcomponentsmaterialcomponentsandroid
materialcardview card content should be clip when shapecornerfamily cut
Bug
shapecornerfamily round correct behavior shapecornerfamily cut incorrect behavior material library version 1 7 0 alpha03 device pixel 4 api 31
materialcomponentsmaterialcomponentsandroid
bottomnavigationview after fullscreen bottomnavigationbar expand vertically or the icon align leave
Bug
description in video player app material 3 guideline implement alongside bottomnavigationview navigationbar after use fullscreen view the bottomnavbar icon shrink and align horizontally to the left when directly exit the fullscreen view bottomnavbar expand vertically expect behavior bottomnavbar width height should not change source code layout xml minimal sample app repro libretube an alternative youtube frontend android api version android api 27 material library version 1 6 0 1 6 1 device htc one m9 test on late release version
materialcomponentsmaterialcomponentsandroid
button double ripple with icon button in 1 7 0 alpha03
Bug
description when I use my custom icon button style in 1 7 0 alpha03 a strange behavior occur where two ripple appear one ripple will appear where I touch expect behavior but another will appear in the center here be a demonstration in the catalog with the tonal button modify to use my style and without the icon to see the ripple clear here be a close up of the two ripple to show that I m not just see thing image this be seemingly introduce by the update to appcompat 1 5 0 beta01 in e968929c08228f475f0f09c302da437a97180284 re compile the project with appcompat 1 4 0 solve the issue expect behavior only one ripple should appear at the point where I press the button source code I use this style for my button android api version any api version material library version 1 7 0 alpha03 device oneplus 7 t on android 11 probably also happen on android 12 but I can t completely tell due to the new ripple style
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout end punctuation mark in ltr text be incorrectly position in rtl mode
Bug
description force rtl layout direction on open topappbarcollapsingmultilinedemofragment demo material catalog app pay attention to the full stop position expect behavior the full stop should be at the end of the sentence actual behavior the full stop be at the beginning of the third line material library version 1 7 0 alpha03 device pixel 4a 5 g api 32
materialcomponentsmaterialcomponentsandroid
dialog width of vertically arrange action button be not the same
Bug
description open dialogmaindemofragment demo material catalog app press long title message over length button button expect behavior the button should be the same width actual behavior the bottom button be slightly wide than the other material library version 1 7 0 alpha03
materialcomponentsmaterialcomponentsandroid
materialbutton icon button be not circle when font size be too large
Bug
how to reproduce set android s font size to large setting display font size open buttonsmaindemofragment in material catalog expect behavior icon button should be circle and should have the same height as common button actual behavior icon button be stretch vertically a bit and differ in height from common button font size default font size large material library version 1 7 0 alpha03 device pixel 4 api 31 emulator
materialcomponentsmaterialcomponentsandroid
shapeableimageview black corner during return transition when no padding
Bug
shapeableimageviewwith pad 0dp shapeableimageviewwith pad 1dp material library version 1 7 0 alpha03 device pixel 4 api 31 emulator
materialcomponentsmaterialcomponentsandroid
materialbutton why button render one more layer than textview
Bug
description sorry maybe it s not a bug I just don t understand and couldn t find any clue to explain it I write a demo to illuminate it overdraw accord to official site here s the result top bottom behavior outlinedbutton background transparent blue overdraw 1 time textbutton background transparent blue overdraw 1 time textview no overdraw so what cause this be there any way to avoid this overdraw source code android api version compilesdk 31 material library version com google android material material 1 6 1 device google pixel 3 android 12
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment listener set with setonapplywindowinsetslistener be never call
Bug
description I want to adjust the padding of my root view when the keyboard open and I m try to accomplish it use setonapplywindowinsetslistener in a bottomsheetdialogfragment the listener be never call if I change my fragment to extend from dialogfragment the listener be call and the behavior be as expect expect behavior the listener set with setonapplywindowinsetslistener be call in a bottomsheetdialogfragment and apply pad to the layout source code package com minasmina bottomsheetdialogfragmentbug import android os bundle import android view layoutinflater import android view view import android view viewgroup import androidx appcompat app appcompatactivity import androidx core view viewcompat import androidx core view windowcompat import androidx core view windowinsetscompat import com google android material bottomsheet bottomsheetdialogfragment class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate val dialog testdialog dialog show supportfragmentmanager null todo if you extend from dialogfragment setonapplywindowinsetslistener be call and the behavior be correct padding be apply class testdialog bottomsheetdialogfragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view return inflater inflate r layout test container false override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate val window requiredialog window viewcompat setonapplywindowinsetslistener view inset val imeheight inset getinsets windowinsetscompat type ime bottom view setpadde 0 0 0 imeheight inset windowcompat setdecorfitssystemwindow window false test xml minimal sample app repro android api version 32 material library version 1 6 1
materialcomponentsmaterialcomponentsandroid
materialtoolbar bug navigationicontint doesn t do anything for the navigation drawer icon
Bug
description full description of issue here when use navigationicontint on materialtoolbar that have the navigation drawer icon the 3 horizontal line it doesn t do anything try a style and even in code it still doesn t do anything expect behavior screenshot and or description of expect behavior image in fact for some reason in my app that I try to migrate to material3 it s not white for some reason gray on dark theme black on light theme source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app my application zip android api version android api version here api 30 material library version material android library version you be use here e g 1 1 0 alpha07 implementation com google android material material 1 6 1 device device on which the bug be encounter here emulator
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout expand title overlap with gravity set to center horizontal multiple line and collapse mode set to scale
Bug
description when collapsingtoolbarlayout be set with multiple line titlecollapsemode to scale and expandedtitlegravity set to center horizontal expand title be overlap by another title screenshot 20220629 171525 expect behavior expand title must be readable source code material library version 1 6 1
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout maxline break expandedtitlegravity when rtl direction be use
Bug
description maxline break expandedtitlegravity set when rtl direction be use for example when expandedtitlegravity start and maxline 2 text be always from leave to right no matter if use title in english or arabic language expect behavior max line should not change expandedtitlegravity behaviour source code android api version api 30 material library version 1 6 1 device pixel
materialcomponentsmaterialcomponentsandroid
topappbar horizontal system inset handle
Bug
how be the component suppose to handle horizontal system inset p s this issue be similar to but it s more general and also relate to the specification