repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
tabitem render problem throw nullpointerexception
Bug
description set up a basic xml layout with tablayout and tabitem child view result in render problem that prevent the layout preview from function correctly other user be also report the same issue on so below be the full error stack throw when the ide attempt to render the layout in the preview panel java lang nullpointerexception at android content re resource theme delegate obtainstyledattribute resource theme delegate java 74 at android content re resource theme obtainstyledattribute resource java 1631 at android content context obtainstyledattribute context java 874 at android widget textview settextappearance textview java 3965 at androidx appcompat widget appcompattextview settextappearance appcompattextview java 216 at com google android material textview materialtextview settextappearance materialtextview java 106 at android widget textview settextappearance textview java 3954 at androidx core widget textviewcompat settextappearance textviewcompat java 289 at com google android material tabs tablayout tabview updatetab tablayout java 2772 at com google android material tabs tablayout tabview update tablayout java 2801 at com google android material tabs tablayout tabview settab tablayout java 2713 at com google android material tabs tablayout createtabview tablayout java 1673 at com google android material tabs tablayout newtab tablayout java 956 at com google android material tabs tablayout addtabfromitemview tablayout java 824 at com google android material tabs tablayout addviewinternal tablayout java 1730 at com google android material tabs tablayout addview tablayout java 1720 at android view layoutinflater rinflate original layoutinflater java 1131 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate original layoutinflater java 1130 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate original layoutinflater java 1130 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 505 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 360 at com android layoutlib bridge bridge createsession bridge java 443 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 722 at com android tool idea render rendertask lambda inflate 9 rendertask java 879 at com android tool idea render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 194 at com android tool idea render renderexecutor priorityrunnable run renderexecutor kt 292 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829 expect behavior layout preview should be render the view without any issue source code xml minimal sample app repro source code example be sufficient android api version not applicable material library version 1 8 0 device android studio electric eel patch 1
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
floatingactionbutton mintouchtargetsize doesn t work
Bug
14 235 1 webm material library version 1 9 0 alpha02
materialcomponentsmaterialcomponentsandroid
search searchbar should not have a shadow
Bug
searchmaindemoactivity api 27 emulator searchmaindemoactivity api 29 emulator material library version 1 8 0 p s a shadow be also visible on api 28 emulator but in this case most likely it s just an emulator bug
materialcomponentsmaterialcomponentsandroid
type kt in material 3 font style not change from type kt file
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
search appbarlayout scroll out of view even if nestedscrollview have no content
Bug
description when I copy paste the put it all together put it all together example code from the search component I m observe that I can touch the search bar scroll up and it will vanish out of screen without an ability to bring it back expect behavior probably not scroll away at all especially if the nestedscrollview have nothing to scroll but at the very least give an option to scroll it back into view source code I ve use the example code android api version api 33 but any really material library version 1 8 0 device emulator run android 13
materialcomponentsmaterialcomponentsandroid
component name bug in sample transition container transform have many glitch
Bug
description full description of issue here just go there you will see glitch as you scroll expect behavior screenshot and or description of expect behavior not to have glitch source code the code snippet which be cause this issue current repo 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 it s right here on the repository but ok catalog debug zip android api version android api version here android 33 android 13 material library version material android library version you be use here e g 1 1 0 alpha07 1 8 0 yet it say in code that it s mdclibraryversion 1 9 0 alpha01 so I m confused what s the real one device device on which the bug be encounter here pixel 6 see attach video scrcpy 2023 02 18 20 12 57 zip btw bonus bug that exist everywhere on this sample you can t reach the bottom of various list you can see it on the video too as I can t see the description of the item fade at the bottom
materialcomponentsmaterialcomponentsandroid
materialtoolbar the color of the subtitle be wrong which be different from the color configure in the theme style
Bug
description the color of the subtitle be wrong which be different from the color configure in the theme style expect behavior the text color of this subtitle should be red but now it be black android color holo red light source code xml minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version 33 material library version 1 9 0 alpha01 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
chip lead icon have an incorrect tint on api 23
Bug
actual result expect result android api version 21 material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
menu typography styling overridden by android textviewstyle
Bug
description accord to the documentation the typography in a menu popup can be style by specify textappearance large small popupmenu in your theme however if your theme specify an android textviewstyle this style will trump whatever style be set for textappearance popupmenu make it impossibly to style the menu item expect behavior in my minimal sample I ve set the popup menu style to use a red textcolor and the default textviewstyle to use a blue color I would expect the menu item to be red but they get the default blue color source code minimal sample app repro the sample be just the new project scaffold in as electric eel with the above change to the theme and update the material dependency to 1 8 0 android api version 33 material library version 1 8 0 device pixel 6
materialcomponentsmaterialcomponentsandroid
24hour wheel with 2hour step in signal app
Bug
greeting the signal app use time picker for their delay message but apparently the library doesn t have the new version so the 24h wheel doesn t have 2 wheel but one wheel with 2hour step see here must be some kind of early beta version for testing that show up there
materialcomponentsmaterialcomponentsandroid
materialtimepicker wrong layout when preciseshrinke enable
Bug
description wrong layout when preciseshrinke enable expect behavior expect screenshot 20230216 150021 preciseshrinking enable screenshot 20230216 150004 source code android experimental enablenewresourceshrinker preciseshrinke true android api version 33 material library version 1 8 0 device any
materialcomponentsmaterialcomponentsandroid
textinputedittext cursor color doesn t honor colorcontrolactivate
Bug
description textinputedittext doesn t use the color provide in apptheme colorcontrolactivate android colorcontrolactivate I try set colorcontrolactivate on the view itself or it s parent textinputlayout nothing be work and white cursor color be set for some reason expect behavior correct cursor color set via colorcontrolactivate I be upgrade from 1 5 0 beta01 where it be work as expect 1 8 0 beta01 doesn t work as describe above but 1 7 0 have correct behavior android api version android 12 material library version 1 8 0 beta01 device sm 700x duplicate 3139 because accord to issuecomment 1349693877 it seem like now it s require to set overlay color to each component just to override color instead of just set colorcontrolactivate in the theme
materialcomponentsmaterialcomponentsandroid
materialswitch can t be use in menu
Bug
description so switchcompat could be use inside drawerlayout menu with the follow method create a layout that hold a switchcompat widget switch xml a menu would include this layout like so now if we replace staticlayout java 474 at androidx appcompat widget switchcompat makelayout switchcompat java 995 at androidx appcompat widget switchcompat onmeasure switchcompat java 916 at android view view measure view java 26357 at android view viewgroup measurechildwithmargin viewgroup java 6981 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 26357 at android view viewgroup measurechildwithmargin viewgroup java 6981 at androidx appcompat widget linearlayoutcompat measurechildbeforelayout linearlayoutcompat java 1401 at androidx appcompat widget linearlayoutcompat measurehorizontal linearlayoutcompat java 1048 at androidx appcompat widget linearlayoutcompat onmeasure linearlayoutcompat java 577 at android view view measure view java 26357 at androidx recyclerview widget recyclerview layoutmanager measurechildwithmargin recyclerview java 9681 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1657 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 dispatchlayout recyclerview java 4012 at androidx recyclerview widget recyclerview onlayout recyclerview java 4578 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at androidx drawerlayout widget drawerlayout onlayout drawerlayout java 1287 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at android widget linearlayout setchildframe linearlayout java 1891 at android widget linearlayout layoutvertical linearlayout java 1729 at android widget linearlayout onlayout linearlayout java 1638 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at android widget linearlayout setchildframe linearlayout java 1891 at android widget linearlayout layoutvertical linearlayout java 1729 at android widget linearlayout onlayout linearlayout java 1638 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 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 799 at android view view layout view java 23693 at android view viewgroup layout viewgroup java 6413 at android view viewrootimpl performlayout viewrootimpl java 3999 at android view viewrootimpl performtraversal viewrootimpl java 3372 at android view viewrootimpl dotraversal viewrootimpl java 2328 at android view viewrootimpl traversalrunnable run viewrootimpl java 9087 at android view choreographer callbackrecord run choreographer java 1231 2023 02 14 22 25 23 571 androidruntime e at android view choreographer callbackrecord run choreographer java 1239 at android view choreographer docallback choreographer java 899 at android view choreographer doframe choreographer java 832 at android view choreographer framedisplayeventreceiver run choreographer java 1214 at android os handler handlecallback handler java 942 at android os handler dispatchmessage handler java 99 at android os looper looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7872 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 at com android internal os zygoteinit main zygoteinit java 936 expect behavior I expect that materialswitch be a subclass of switchcompat behave the same as before just with the new nice material extra design source code the code snippet which be cause this issue see description 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 compile and target sdk 33 material library version material android library version you be use here e g 1 1 0 alpha07 1 8 0 device device on which the bug be encounter here emulator sdk 33 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
tablayout no tab ripple when tablayout be inside appbarlayout
Bug
material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
materialbutton not selectable in android studio editor when include
Bug
description have a gridlayout contain a bunch of item add some materialbutton through and notice they can t be select in the editor ok now it seem to happen with every include somehow though in some circumstance include work just fine maybe an issue with gridlayout or include or both the thing be I do not have such issue before I switch to mdc add the library and switch the app theme parent expect behavior include materialbutton should be selectable in editor source code minimal sample app repro none android api version android studio 2022 1 1 material library version 1 8 0 device window pc
materialcomponentsmaterialcomponentsandroid
materialtoolbar materialtoolbar elevation not show on android 11 why
Bug
I have a materialtoolbar with an elevation of 4dp but it be show on android 7 but not on android 11 be there something I miss or be this a bug from the library if so what be the workaround android 7 image android 11 image
materialcomponentsmaterialcomponentsandroid
com google android material textfield materialautocompletetextview use arrayadapter don t wrap text correctly
Bug
description use com google android material textfield materialautocompletetextview define an arrayadapter and setting be layout adapter but textview be not wrap correctly in the dropdown on an regular spinner same arrayadapter work ok expect behavior both autocompletetextview and spinner image autocompletetextview dropdown win t wrap text image spinner dropdown work ok image source code layout activity code in activity madapterdomicilio new arrayadapter this r layout list item multiline item layout for dropdown item in arrayadapter minimal sample app repro myapplication zip android api version 33 material library version 1 8 0 device all device
materialcomponentsmaterialcomponentsandroid
appbarlayout lift doesn t work correctly with preferencefragment
Bug
material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
circularprogressindicator background proerty miss in jetpack compose
Bug
description circularprogressindicator backgroundcolor propert miss circularprogressindicator doc circularprogressindicator androidx compose ui modifier androidx compose ui graphic color androidx compose ui unit dp androidx compose ui graphic color androidx compose ui graphic strokecap source code image image source code of the circularprogressindicator android api version android api version here material library version def composebom platform androidx compose compose bom 2023 01 00 implementation composebom androidtestimplementation composebom compose ui implementation androidx compose ui ui material 2 implementation androidx compose material material
materialcomponentsmaterialcomponentsandroid
search incorrect searchbar content position during animation on large screen device
Bug
searchbar content bound at the beginning of the expand animation and at the end of the collapse animation don t match the actual searchbar content bound on large screen device material library version 1 8 0
materialcomponentsmaterialcomponentsandroid
material cardview preview fail to display layout when add cardview
Bug
description when I add cardview to any layout my android studio preview layout can t display anything expect behavior with cardview image without cardview image android api version 33 material library version 1 8 0 device poco m3
materialcomponentsmaterialcomponentsandroid
oncreatecontextmenu webview crash with dynamic color theme
Bug
description I m use dynamiccolor applytoactivitiesifavailable during oncreate on myapplication the theme use be parent of theme material3 dynamiccolor daynight when I enter oncreatecontextmenu on a webview it be crash short after contextmenu add setonmenuitemclicklistener all my activity inherit appcompatactivity for the moment I have replace the theme with themeoverlay material3 dynamiccolor daynight and it work just by change theme by themeoverlay see the log at the end android api version 33 material library version 1 8 device simulator and samsung s22 minimal sample app repro log w system err android view inflateexception binary xml file line 80 in android layout alert dialog material binary xml file line 37 in android layout alert dialog button bar material error inflate class button w system err cause by android view inflateexception binary xml file line 37 in android layout alert dialog button bar material error inflate class button w system err cause by java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant w system err at com google android material internal themeenforcement checktheme themeenforcement java 247 w system err at com google android material internal themeenforcement checkmaterialtheme themeenforcement java 216 w system err at com google android material internal themeenforcement checkcompatibletheme themeenforcement java 144 w system err at com google android material internal themeenforcement obtainstyledattributes themeenforcement java 76 w system err at com google android material button materialbutton materialbutton java 231 w system err at com google android material button materialbutton materialbutton java 222 w system err at com google android material theme materialcomponentsviewinflater createbutton materialcomponentsviewinflater java 43 w system err at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 156 w system err at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1678 w system err at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1729 w system err at android view layoutinflater trycreateview layoutinflater java 1065 w system err at android view layoutinflater createviewfromtag layoutinflater java 1001 w system err at android view layoutinflater createviewfromtag layoutinflater java 965 w system err at android view layoutinflater rinflate layoutinflater java 1127 w system err at android view layoutinflater rinflatechildren layoutinflater java 1088 w system err at android view layoutinflater rinflate layoutinflater java 1130 w system err at android view layoutinflater rinflatechildren layoutinflater java 1088 w system err at android view layoutinflater parseinclude layoutinflater java 1267 w system err at android view layoutinflater rinflate layoutinflater java 1123 w system err at android view layoutinflater rinflatechildren layoutinflater java 1088 w system err at android view layoutinflater inflate layoutinflater java 686 w system err at android view layoutinflater inflate layoutinflater java 538 w system err at android view layoutinflater inflate layoutinflater java 485 w system err at com android internal policy phonewindow setcontentview phonewindow java 469 w system err at com android internal app alertcontroller installcontent alertcontroller java 269 w system err at android app alertdialog oncreate alertdialog java 439 w system err at android app dialog dispatchoncreate dialog java 436 w system err at android app dialog show dialog java 325 w system err at com android internal view menu menudialoghelper show menudialoghelper java 89 w system err at com android internal view menu contextmenubuilder showdialog contextmenubuilder java 90 w system err at com android internal policy decorview showcontextmenuforchildinternal decorview java 858 w system err at com android internal policy decorview showcontextmenuforchild decorview java 828 w system err at android view viewgroup showcontextmenuforchild viewgroup java 979 w system err at android view viewgroup showcontextmenuforchild viewgroup java 979 w system err at android view viewgroup showcontextmenuforchild viewgroup java 979 w system err at android view viewgroup showcontextmenuforchild viewgroup java 979 w system err at android view viewgroup showcontextmenuforchild viewgroup java 979 w system err at android view view showcontextmenu view java 7661 w system err at android view view performlongclickinternal view java 7590 w system err at android view view performlongclick view java 7544 w system err at android webkit webview access 501 webview java 113 w system err at android webkit webview privateaccess super performlongclick webview java 2435 w system err at com android webview chromium webviewchromium performlongclick chromium trichromewebviewgoogle6432 apk stable 495157434 2051 w system err at android webkit webview performlongclick webview java 2935 w system err at org chromium content browser gesturelistenermanagerimpl filtertaporpressevent chromium trichromewebviewgoogle6432 apk stable 495157434 424 w system err at android os messagequeue nativepollonce native method w system err at android os messagequeue next messagequeue java 335 w system err at android os looper looponce looper java 161 w system err at android os looper loop looper java 288 w system err at android app activitythread main activitythread java 7898 w system err at java lang reflect method invoke native method w system err at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 w system err at com android internal os zygoteinit main zygoteinit java 936
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog overridden theme doesn t work after rotation
Bug
description bottomsheetdialog s overridden theme doesn t work after rotation swipe up and rotation to back expect behavior specifically I have add to attribute cornerfamily cut of shapeappearance app largecomponent source be here theme bottom sheet and it appear as expect then after rotation to landscape layout swipe up animation and rotation back the cut shape be go please have a look at the screenshot photo1 2023 01 27 21 51 3 photo2 2023 01 27 21 52 06 photo3 2023 01 27 21 52 33 photo4 2023 01 27 21 52 58 minimal sample app repro android api version 30 material library version 1 8 0 device pixel
materialcomponentsmaterialcomponentsandroid
snackbar isanchorviewlayoutlistenerenable be not work if anchor change immediately
Bug
description as mention here issuecomment 1301495088 fix for the isanchorviewlayoutlistenerenabled issue with infinite loop cause a different error which cause the snackbar not be show above the anchor view if the anchor position be change right after screen be load expect behavior if isanchorviewlayoutlistenerenable be set to true it should always update snackbar position so it s show above the anchor view source code recalculateandupdatemargin do not trigger updatemargin if newbottommarginanchorview have already the same value but because of the miss parent in the first run the margin never get update combination of java private void recalculateandupdatemargin int newbottommarginanchorview calculatebottommarginforanchorview if newbottommarginanchorview extrabottommarginanchorview return extrabottommarginanchorview newbottommarginanchorview updatemargin private void updatemargin layoutparam layoutparam view getlayoutparam if layoutparam instanceof marginlayoutparam view originalmargin null log w tag unable to update margin because layout param be not marginlayoutparam return if view getparent null parent will set layout param to view again wait for addview be do to update layout param in case we save the already update margin as the original margin return final void showview this view addtotargetparent targetparent recalculateandupdatemargin minimal sample app repro this be a multipurpose repo but on this branch you can run the app and tap on to first fragment button the snackbar should be show above the button and it s not all the code need for repro be in firstfragment snackbarexample android api version 28 material library version 1 8 0 device emulator
materialcomponentsmaterialcomponentsandroid
navigation drawer not only the select item show bold when scroll
Bug
description since version 1 8 0 the active navigation drawer item name show bold however there s a bug that when scroll sometimes the name of random item get bold too usually the one from which you start scroll but not always sometimes two random item get bold and only if you scroll it out of the screen you need to have more item than fit on the screen to reproduce the bug expect behavior when scroll only the active navigation drawer item should have a bold name all other item should appear with normal text style source code I don t know but in 1 7 0 the issue do not exist yet because there be no bold active item name at all android api version android api 33 material library version 1 8 0 device samsung galaxy s22 ultra
materialcomponentsmaterialcomponentsandroid
after update material 1 6 1 to 1 7 0 overridependingtransition doesn t work
Bug
hello after update version of material in build gradle animation doesn t work work fine before in 1 6 1 code be the same for several year source code override public void startactivity intent intent super startactivity intent overridependingtransition r anim test slide in right r anim test slide out leave animation test slide in right animation test slide out leave targetsdk version si 33 compilesdk version 33 and minsdk 24 capture of effect on the tablet android 9 0 after start activity transition the stacktrace be e unhandled exception while lay out window java lang runtimeexception unknown animation name cycleinterpolator at android view animation animationutil createanimationfromxml animationutil java 192 at android view animation animationutil createanimationfromxml animationutil java 157 at android view animation animationutil loadanimation animationutil java 138 at com android server wm apptransition loadanimationre apptransition java 582 at com android server wm apptransition loadanimation apptransition java 1618 at com android server wm appwindowtoken loadanimation appwindowtoken java 1848 at com android server wm appwindowtoken applyanimationlocke appwindowtoken java 1766 at com android server wm appwindowtoken setvisibility appwindowtoken java 422 at com android server wm windowsurfaceplacer handleopeningapps windowsurfaceplacer java 464 at com android server wm windowsurfaceplacer handleapptransitionreadylocked windowsurfaceplacer java 321 at com android server wm rootwindowcontainer performsurfaceplacement rootwindowcontainer java 618 at com android server wm windowsurfaceplacer performsurfaceplacementloop windowsurfaceplacer java 207 at com android server wm windowsurfaceplacer performsurfaceplacement windowsurfaceplacer java 155 at com android server wm windowsurfaceplacer performsurfaceplacement windowsurfaceplacer java 145 at com android server wm windowsurfaceplacer lambda new 0 windowsurfaceplacer java 118 at com android server wm lambda windowsurfaceplacer 4hbamt lfcbu8aozboozn lvekq run unknown source 2 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 193 at android os handlerthread run handlerthread java 65 at com android server servicethread run servicethread java 44
materialcomponentsmaterialcomponentsandroid
design preview be lose when upgrade to version 1 8
Bug
when upgrade with this library my design preview be lose I waste my 3 hour googling and search for error theni remove new library one by one and find this library be the culprit
materialcomponentsmaterialcomponentsandroid
searchbar binary xml file line 23 in com example myapplication layout fragment first binary xml file line 23 in com example myapplication layout fragment first error inflate class com google android material search searchbar
Bug
I m try to implement new searchbar and get error my action 1 create new empty project in electric eel studio version 2 add dependency implementation com google android material material 1 9 0 alpha01 3 in first fragment s xml layout change view to present in put it all together 4 in firstfragment class remove button s click 5 run the app after that it s crash what I m do wrong
materialcomponentsmaterialcomponentsandroid
materialdatepicker description sample be break after update
Bug
description it seem like materialdatepicker description sample be break for 1 9 0 alpha01 image
materialcomponentsmaterialcomponentsandroid
bottomsheetdraghandleview show nothing
Bug
l68 I m try to implement bottomsheetdraghandleview in my bottom sheet view but similar to this stackoverflow issue it show nothing and when it wrap it collapse to a 0 height aside from that stackoverflow question my xml implementation be as follow if it help xml
materialcomponentsmaterialcomponentsandroid
catalog tap on a check card in talkback mode doesn t uncheck it
Bug
tap on a check card in talkback mode doesn t uncheck it although it do in regular mode and I think it should also do so in talkback mode material library version 1 9 0 alpha01 device pixel 4a 5 g android 13
materialcomponentsmaterialcomponentsandroid
bottomsheet fullscreen bottomsheet can not be edge to edge
Bug
description the fullscreen bottomsheet be not draw behind the system navigation bar screenshot 20230110 095837 the non fullscreen bottomsheet be draw behind the system navigation bar screenshot 20230110 102050 expect behavior the fullscreen bottomsheet be draw behind the system navigation bar screenshot 20230110 100027 set paddingbottomsystemwindowinset to false have a side effect the bottom sheet can not be scroll to the bottom l72 screenshot 20230110 111747 source code l52 l54 minimal sample app repro catalog app android api version 33 material library version 1 8 0 beta01 device emulator 31 3 14
materialcomponentsmaterialcomponentsandroid
material float action button change background color doesn t work on late sdk
Bug
I be implement an app with a float action button my gradle compilesdkversion 33 defaultconfig applicationid com area areahotspot minsdkversion 24 targetsdkversion 33 versioncode 1 versionname 1 0 dependency implementation androidx appcompat appcompat 1 5 1 implementation com google android material material 1 7 0 implementation androidx constraintlayout constraintlayout 2 1 4 in my fragment I put so I settle my setonclicklistener for fab various way as in comment line to make change backgroundcolor to show as like as it s disabled floatingactionbutton fab floatingactionbutton view findviewbyid r i d fab fab setonclicklistener new view onclicklistener override public void onclick view view fab setenable false fab setbackgroundcolor getcontext getcolor r color fab disable fab setelevation 0 fab setvisibility view go fab hide fab getbackground set getcontext getcolor r color fab disable fab setbackgroundtintlist colorstatelist valueof getcontext getcolor r color fab disable fab getbackground mutate settint getcontext getcolor r color fab disable fab setcompatelevation 0 in the debugger I see the attribute mcolor before to call setbackgroundtintlist it contain value 8934372 which should be the enabled color state and after call setbackgroundtintlist it be 2763307 so that should mean it have change the color just the button be correctly disable that setenable false but didn t change the aspect I try to use a selector too but didn t work I try also to hide it set visibility as go but it didn t hide be that maybe relate to late sdk version or some version of dependency that doesn t work well with or be there an alternative I haven t find anywhere to make the fab disabled any direction would be really appreciate thank cheer
materialcomponentsmaterialcomponentsandroid
materialcardview setonclicklistener not call
Bug
description material card view not listen to onclicklistener expect behavior on click card onclicklistener should call source code java code materialcardview generalcardview generalcardview findviewbyid r i d generalcardview generalcardview setclickable true generalcardview setfocusable true generalcardview setonclicklistener new onclicklistener override public void onclick view v log e click call android api version android api version here material library version 1 7 0 device all device
materialcomponentsmaterialcomponentsandroid
material slider s settickactivetintlist be not work
Bug
material slider s settickactivetintlist be not work the color doesn t change I have ask on stackoverflow android api version 31 material library version 1 0 0 device redmi y2
materialcomponentsmaterialcomponentsandroid
generate apks from aab with bundletool with error fail to deserialize resource pb unknown type macro
Bug
description when I upgrade material from 1 6 1 to 1 7 0 I can run and pack apk normally but the pack aab be problematic and can not generate apks and can not update to google play c user lin appdata local temp 8722851090609859796 proto apk error fail to deserialize resource pb unknown type macro c user lin appdata local temp 8722851090609859796 proto apk error fail to load apk bt 1 4 0 error command c user lin appdata local temp autovalue buildapkscommand7367736904129931534 output window aapt2 exe convert output format binary o c user lin appdata local temp 8722851090609859796 binary apk c user lin appdata local temp 8722851090609859796 proto apk didn t terminate successfully exit code 1 check the log com android tool build bundletool model exception commandexecutionexception command c user lin appdata local temp autovalue buildapkscommand7367736904129931534 output window aapt2 exe convert output format binary o c user lin appdata local temp 8722851090609859796 binary apk c user lin appdata local temp 8722851090609859796 proto apk didn t terminate successfully exit code 1 check the log at com android tool build bundletool model exception internalexceptionbuilder build internalexceptionbuilder java 57 at com android tool build bundletool model defaultcommandexecutor executeimpl defaultcommandexecutor java 57 at com android tool build bundletool model defaultcommandexecutor execute defaultcommandexecutor java 33 at com android tool build bundletool model aapt2command 1 convertapkprototobinary aapt2command java 41 at com android tool build bundletool io apkzlibapkserializerhelper writetozipfile apkzlibapkserializerhelper java 122 at com android tool build bundletool io apkzlibapkserializerhelper writetozipfile apkzlibapkserializerhelper java 101 at com android tool build bundletool io splitapkserializer writetodisk splitapkserializer java 68 at com android tool build bundletool io splitapkserializer writesplittodisk splitapkserializer java 42 at com android tool build bundletool io apksetbuilderfactory apksetarchivebuilder addsplitapk apksetbuilderfactory java 106 at com android tool build bundletool io apkserializermanager apkserializer serialize apkserializermanager java 461 at com android tool build bundletool io apkserializermanager lambda null 3 apkserializermanager java 225 at com google common util concurrent trustedlistenablefuturetask trustedfutureinterruptibletask runinterruptibly trustedlistenablefuturetask java 117 at com google common util concurrent interruptibletask run interruptibletask java 38 at com google common util concurrent trustedlistenablefuturetask run trustedlistenablefuturetask java 77 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 834 version android studio dolphin 2021 3 1 patch 1 material library version 1 7 0 bundletool version 1 13 2 compilesdk 33 minsdk 21 targetsdk 31 gradle version 7 4 2 gradle plugin version 7 2 0
materialcomponentsmaterialcomponentsandroid
sidesheet modal sidesheet s sidesheetcallback s onslide be not call
Bug
description modal sidesheet s sidesheetcallback s onslide be not call modal bottomsheet s bottomsheetcallback s onslide be not call too after the modal sidesheet be drag once onslide will be call screenshot 20230106 093622 expect behavior onslide be call source code l278 l282 l114 l119 minimal sample app repro catalog app android api version 33 material library version 1 8 0 beta01 device emulator 31 3 14
materialcomponentsmaterialcomponentsandroid
textinputlayout urgent ambulance compile time error for boxbackgroundmode be set as a raw string fill
Bug
description when I try to compile a bug free android project the project build fail with the follow error kt error project app build intermediate incremental appdebug mergedebugresource merge dir value value xml 10218 aapt error expect enum but get raw string fill expect behavior screenshot and or description of expect behavior source code after ton of code digging I find out that this issue be occur because of merge value xml google material library follow the xml code of value xml xml
materialcomponentsmaterialcomponentsandroid
switch in the doc the number assign to the part be incorrect
Bug
description 2023 01 04 17 15 12 anatomy and key property I think number 1 be track and number 2 be thumb that s what the old description anatomy and key property deprecate say and when I try it expect behavior 1 track 2 thumb 3 icon optional or maybe it s the image that need fix
materialcomponentsmaterialcomponentsandroid
button the style on this component require your app theme to be theme materialcomponent or a descendant
Bug
the layout preview do not work with my custom class class outlinebutton jvmoverloads constructor context context attrs attributeset null materialbutton context attrs com google android material r attr materialbuttonoutlinedstyle when use material 1 7 0 the follow class could not be instantiate com vanniktech ui outlinebutton open class show exception clear cache tip use view isineditmode in your custom view to skip code or show sample datum when show in the ide if this be an unexpected error you can also try to build the project then manually refresh the layout exception detail java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant at com google android material internal themeenforcement checktheme themeenforcement java 247 at com google android material internal themeenforcement checkmaterialtheme themeenforcement java 216 at com google android material internal themeenforcement checkcompatibletheme themeenforcement java 144 at com google android material internal themeenforcement obtainstyledattributes themeenforcement java 76 at com google android material button materialbutton materialbutton java 230 at com vanniktech ui outlinebutton outlinebutton kt 13 at jdk internal reflect nativeconstructoraccessorimpl newinstance0 nativeconstructoraccessorimpl java 2 at jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 77 at jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java lang reflect constructor newinstancewithcaller constructor java 499 at java lang reflect constructor newinstance constructor java 480 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 505 copy stack to clipboard
materialcomponentsmaterialcomponentsandroid
materialcardview width not match parent
Bug
any solution screenshot 20230102 115922 screenshot 20230102 120041
materialcomponentsmaterialcomponentsandroid
search can not resolve class com google android material search searchbar
Bug
description when try to use com google android material search searchbar or com google android material search searchview android studio do not find it I be use implementation com google android material material 1 6 1 compilesdkversion 32 targetsdkversion 32 source code as in example class reference in the layout file com google android material search searchbar be not find in the project or the library can not resolve class com google android material search searchbar class reference in the layout file com google android material search searchview be not find in the project or the library can not resolve class com google android material search searchview
materialcomponentsmaterialcomponentsandroid
materialtimepicker allow manual entry of the number 24 into hour
Bug
if you select manual time entry and specify 24 hour then when you press ok it will return the value 0 my expectation be a user can not input a number more than 23 for hour please limit input of max 23 hour 2022 12 23 15 48 24 2022 12 23 15 48 16
materialcomponentsmaterialcomponentsandroid
appbarlayout from android studio render error
Bug
description I get android studio preview screen render error from com google android material appbar appbarlayout package after I update com google android material material 1 8 0 beta01 but from old version com google android material material 1 8 0 alpha01 not have this problem can anyone get these error another error from stacktrace fail to instantiate one or more class the follow class could not be instantiate com google android material appbar appbarlayout open class show exception clear cache tip use view isineditmode in your custom view to skip code or show sample datum when show in the ide if this be an unexpected error you can also try to build the project then manually refresh the layout error java lang illegalargumentexception motion ease theme attribute must be an interpolator resource for attr motionease interpolator attribute or a string for attr motioneasing attribute at com google android material motion motionutil resolvethemeinterpolator motionutil java 74 at com google android material appbar appbarlayout appbarlayout java 277 at com google android material appbar appbarlayout appbarlayout java 229 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 351 at org jetbrains android uipreview viewloader loadclass viewloader java 200 at org jetbrains android uipreview viewloader loadview viewloader java 161 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 294 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 505 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 359 at com android layoutlib bridge bridge createsession bridge java 436 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 717 at com android tool idea render rendertask lambda inflate 9 rendertask java 873 at com android tool idea render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 192 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829 material library version 1 8 0 beta01 ide version android studio dolphin 2021 3 1 path 1
materialcomponentsmaterialcomponentsandroid
slider vaule tip do not disappear
Bug
description after slide the slider the progress prompt box have not disappear bug expect behavior remove any remain block from above to see that picture source code android api version android 10 api29 material library version 1 8 0 beta01 device mi
materialcomponentsmaterialcomponentsandroid
calendarconstraint getter be different from the provide at its setter
Bug
description getstartms getendms and getopenatms be different from what be provide to calendarconstraint builder setter expect behavior getter millisecond should be the same as the one that be provide use its setter source code val currentdate materialdatepicker todayinutcmillisecond val oldestdate long val previousmonth long timezone gettimezone zoneid systemdefault also calendar getinstance it let cal cal timeinmillis currentdate set calendar date today cal add calendar month 1 set month to previous previousmonth cal timeinmillis calendar getinstance it let cal cal timeinmillis currentdate set calendar date today get current year val year cal calendar year cal add calendar year 2009 year set oldest support year oldestdate cal timeinmillis val fromconstraint calendarconstraint builder setstart oldestdate setend currentdate setopenat previousmonth setvalidator datevalidatorpointbackward now disable day beyond current date build log wtf old oldestdate tostring log wtf current currentdate tostring log wtf open at previousmonth tostring log wtf constraint old fromconstraint startms tostre log wtf constraint current fromconstraint endms tostre log wtf constraint open at fromconstraint openatms tostre image android api version any material library version 1 8 0 alpha02 device any note this new api be make from this issue however the return date in millisecond be not the same to what have be pass to its setter
materialcomponentsmaterialcomponentsandroid
why the default text size look very small in many component
Bug
the text size look normal if I don t select a specific style for the component untitled but the result will look like this if I select the style for the component untitled1 here be the style of widget app toolbar surface the version that I use be com google android material material 1 7 0 this problem happen newly what be the reason do I miss something
materialcomponentsmaterialcomponentsandroid
textinputedittext cursor color doesn t honor colorcontrolactivate
Bug
description textinputedittext doesn t use the color provide in apptheme colorcontrolactivate android colorcontrolactivate I try set colorcontrolactivate on the view itself or it s parent textinputlayout nothing be work and white cursor color be set for some reason expect behavior correct cursor color set via colorcontrolactivate I be upgrade from 1 5 0 beta01 where it be work as expect 1 8 0 beta01 doesn t work as describe above but 1 7 0 have correct behavior android api version android 12 material library version 1 8 0 beta01 device sm 700x
materialcomponentsmaterialcomponentsandroid
tablayout junk scroll
Bug
when select a tab in a scrollable tablayout with link viewpager unwanted scrolling occur actual result expect result material library version 1 8 0 beta01
materialcomponentsmaterialcomponentsandroid
materialcardview render error
Bug
description full description of issue here when I update material version 1 8 0 alpha02 or upper preview be not show and show error log in layout manager below be log message java lang illegalargumentexception motion ease theme attribute must be an interpolator resource for attr motionease interpolator attribute or a string for attr motioneasing attribute at com google android material motion motionutil resolvethemeinterpolator motionutil java 74 at com google android material card materialcardviewhelper materialcardviewhelper java 161 at com google android material card materialcardview materialcardview java 174 at com google android material card materialcardview materialcardview java 160 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 351 at org jetbrains android uipreview viewloader loadclass viewloader java 200 at org jetbrains android uipreview viewloader loadview viewloader java 161 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 294 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater inflate layoutinflater java 663 at android view layoutinflater inflate layoutinflater java 505 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 359 at com android layoutlib bridge bridge createsession bridge java 436 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 717 at com android tool idea render rendertask lambda inflate 9 rendertask java 873 at com android tool idea render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 192 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829 expect behavior screenshot and or description of expect behavior can see in preview source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here api 33 material library version material android library version you be use here e g 1 1 0 alpha07 1 8 0 alpha02 1 8 0 beta01 upper device device on which the bug be encounter here android studio dolphin 2021 3 1 patch 1 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
the style on this component require your app theme to be theme appcompat or a descendant
Bug
the follow class could not be instantiate com google android material navigation navigationview open class show exception clear cache tip use view isineditmode in your custom view to skip code or show sample datum when show in the ide java lang illegalargumentexception the style on this component require your app theme to be theme appcompat or a descendant at com google android material internal themeenforcement checktheme themeenforcement java 247 at com google android material internal themeenforcement checkappcompattheme themeenforcement java 212 at com google android material internal themeenforcement checkcompatibletheme themeenforcement java 147 at com google android material internal themeenforcement obtainstyledattributes themeenforcement java 76 at com google android material internal scriminsetsframelayout scriminsetsframelayout java 64 at com google android material navigation navigationview navigationview java 145 at com google android material navigation navigationview navigationview java 141 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 351 at org jetbrains android uipreview viewloader loadclass viewloader java 200 at org jetbrains android uipreview viewloader loadview viewloader java 161 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 294 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 505 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 359 at com android layoutlib bridge bridge createsession bridge java 436 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 717 at com android tool idea render rendertask lambda inflate 9 rendertask java 873 at com android tool idea render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 192 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829 it s not the only one view where I see this bug it s there the follow class could not be instantiate com google android material card materialcardview open class show exception clear cache com google android material divider materialdivider open class show exception clear cache exception detail java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant and there the follow class could not be instantiate com google android material button materialbutton open class show exception clear cache tip use view isineditmode in your custom view to skip code or show sample datum when show in the ide if this be an unexpected error you can also try to build the project then manually refresh the layout exception detail java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant image source code androidmanif xml android theme style theme myapp theme xml
materialcomponentsmaterialcomponentsandroid
materialcardview generate numberformatexception
Bug
description use a material 3 card cause a numberformatexception seem to be relate to animation but I be not do any specific animation cause by java lang numberformatexception for input string 2130969380 at java lang integer parseint integer java 615 at com android internal util xmlutil convertvaluetoint xmlutils java 139 at android content re typedarray getint typedarray java 433 at android animation animatorinflater parseanimatorfromtypearray animatorinflater java 412 at android animation animatorinflater loadanimator animatorinflater java 1053 at android animation animatorinflater loadobjectanimator animatorinflater java 1011 at android animation animatorinflater createanimatorfromxml animatorinflater java 667 at android animation animatorinflater createanimatorfromxml animatorinflater java 642 at android animation animatorinflater createstatelistanimatorfromxml animatorinflater java 237 at android animation animatorinflater loadstatelistanimator animatorinflater java 170 at android view view view java 5574 at android view viewgroup viewgroup java 675 at android widget framelayout framelayout java 99 at android widget framelayout framelayout java 94 at androidx cardview widget cardview cardview java 121 at com google android material card materialcardview materialcardview java 164 at com google android material card materialcardview materialcardview java 160 72 more expect behavior I should be able to display a card without a crash it work if I downgrade to 1 7 0 version of the material library source code try to run the attach app in android studio dolphin or elec eel minimal sample app repro app zip android api version 29 material library version 1 8 0 alpha03 device 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
slider label not show when android hardwareaccelerate false add
Bug
description when android hardwareaccelerate false be add to in the manifest file the float label of slider in that activity will not show also I test add android layertype software to both the slider and its parent layout and this bug doesn t happen see but I can not find any further explanation about this like why this happen and should this be consider as a bug expect behavior the label show android api version 32 material library version 1 8 0 alpha03 device android 10 emulator api 29 x86 and my physical huawei
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
rangeslider label get stick when use in bottomsheet
Bug
description when add a rangeslider to a bottomsheet with the label always visible app labelbehavior visible the label will not move together with the slider when the bottom sheet be drag they get stick expect behavior label stay fix at the top of the rangeslider and will be in sync with the bottom sheet movement source code to provide a simple and reproducible example I use the catalog app from this repository there I add the follow code snippet to cat bottomsheet fragment xml it be include at the bottom of the bottomsheet so below the last materialswitch android api version 33 material library version 1 7 0 bug be also visible with version 1 6 0 when label behavior visible be firstly introduce device xiaomi mi 11 ultra with xiaomi eu firmware
materialcomponentsmaterialcomponentsandroid
rangeslider when app labelbehavior visible thumb stay display while scroll
Bug
hello graphic bug when I have a rangeslider in a nestedscrollview and app labelbehavior visible the thumb stay at the initial position of the slider image android 7 13 material library version com google android material material 1 7 0
materialcomponentsmaterialcomponentsandroid
unable to change the accessibility description for app menu overlay icon for toolbar in android
Bug
hi team I be try to set a new description to the overlay icon 3 dot button in the toolbar but it s not replicate can you help I with this
materialcomponentsmaterialcomponentsandroid
bottomappbar fab doesn t return to the right place after call inputmethod
Bug
description source code setsupportactionbar bind bottomappbar android api version android api 33 material library version 1 8 0 alpha03 device xiaomi 10 ultra
materialcomponentsmaterialcomponentsandroid
searchbar searchview incorrect package path in layout example
Bug
description searchbar searchview be use incorrect package path in search doc the doc mention com google android librarie material search searchbar instead it should be com google android material search searchbar same for searchview
materialcomponentsmaterialcomponentsandroid
android studio error on 1 8 0 alpha03
Bug
this error occur on android studio dolphin 2021 3 1 can t determine type for tag attr shapeappearancecornersmall
materialcomponentsmaterialcomponentsandroid
bottomsheet navigation bar icon be hard to see
Bug
description when we open a modal bottom sheet with light theme on android 12l 32 the navigation bar icon be white and hard to see screenshot 20221124 155459 expect behavior make the navigation bar icon more visible like this on android 13 33 screenshot 20221124 163122 source code minimal sample app repro catalog app android api version 32 and 33 material library version 1 8 0 alpha03 device emulator 31 3 13
materialcomponentsmaterialcomponentsandroid
appbarlayout give an error in android
Bug
here be the exception com google android material appbar headerscrollingviewbehavior layoutchild exception java lang illegalargumentexception parameter must be a descendant of this view at android view viewgroup offsetrectbetweenparentandchild viewgroup java 6362 at android view viewgroup offsetdescendantrecttomycoord viewgroup java 6291 at androidx core widget nestedscrollview iswithindeltaofscreen nestedscrollview java at androidx core widget nestedscrollview onsizechange nestedscrollview java at android view view sizechange view java 23256 at android view view setframe view java 23206 at android view view layout view java 23062 at android view viewgroup layout viewgroup java 6479 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at com google android material appbar headerscrollingviewbehavior layoutchild headerscrollingviewbehavior java 155 at com google android material appbar viewoffsetbehavior h viewoffsetbehavior java 1 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java 43 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at androidx drawerlayout widget drawerlayout onlayout drawerlayout java 58 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 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 23065 at android view viewgroup layout viewgroup java 6479 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 804 at android view view layout view java 23065 at android view viewgroup layout viewgroup java 6479 at android view viewrootimpl performlayout viewrootimpl java 3625 at android view viewrootimpl performtraversal viewrootimpl java 3085 at android view viewrootimpl dotraversal viewrootimpl java 2076 at android view viewrootimpl traversalrunnable run viewrootimpl java 8508 at android view choreographer callbackrecord run choreographer java 1076 at android view choreographer docallback choreographer java 897 at android view choreographer doframe choreographer java 826 at android view choreographer framedisplayeventreceiver run choreographer java 1061 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 236 at android app activitythread main activitythread java 8107 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 656 at com android internal os zygoteinit main zygoteinit java 967 may be relate to 511
materialcomponentsmaterialcomponentsandroid
searchbar only for m3
Bug
hi it look like searchbar only available on m3 be there any way use it with previous version
materialcomponentsmaterialcomponentsandroid
search catalog searchbar overlap with the status bar when scroll
Bug
screenshot material library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
searchbar weird contrast between searchbar and appbarlayout
Bug
I don t know what it should actually look like but I doubt it should look like this material library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
tablayout setscrollposition be not work correctly
Bug
call setscrollposition with updateselectedtext true and updateindicatorposition true doesn t set the indicator to the specify position actual result expect result material library version 1 8 0 alpha03
materialcomponentsmaterialcomponentsandroid
materialtimepicker materialdatepicker margin be not the same
Bug
description the start and end leave and right margin be different as you can see in the picture the margin be small on datepicker as on timepicker I report the bug already here too expect behavior the margin should be the same source code app theme use m3 minimal sample app repro d1 t1 as you can see the margin be not the same but it should be the same android api version android 13 material library version com google android material material 1 8 0 alpha03 device every device to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
materialcontainertransform jitter of floatingactionbutton
Bug
description jittering of return animation of floatingactionbutton source code xml kotlin fragmenta oncreate exittransition hold onviewcreate floatingactionbutton setonclicklistener navcontroller navigate afragmentdirection actionatob fragmentnavigatorextra floatingactionbutton to floatingactionbutton transitionname xml kotlin fragmentb oncreate sharedelemententertransition materialcontainertransform android api version api 33 api 32 material library version 1 8 0 alpha02 device emulator api 33 xiaomi mi 12 pro
materialcomponentsmaterialcomponentsandroid
tablayout incorrect tab textappearance when scroll viewpager
Bug
to reproduce the bug set different value for tabtextappearance and tabselectedtextappearance material library version 1 8 0 alpha02
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description when use app textformat password the password be visible by default since material version 1 7 0 and the attribute app passwordtoggleenable be ignore in 1 6 1 everything work as expect expect behavior by default password should not be readable there should be star cover it 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 33 material library version 1 7 0 device samsung galaxy s21 ultra 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
bottomappbar bottom padding break
Bug
description with set bottom inset as pad to bottomappbar no any change to bottomappbar s bottom padding cause the status bar cover bottomappbar image expect behavior it be expect to be like bottomnavigationview wish to have edge to edge effect with the system navigation bar which let the backgroud of the system navigation bar same as bottomappbar s as overview image at material io material io I e I have test the value obtain from setonapplywindowinsetslistener with bottomnavigationview and the padding set work with it correctly but not work with bottomappbar image source code xml kotlin at activity oncreate windowcompat setdecorfitssystemwindow window false at fragment onviewcreate val bottomappbarpaddingbottom bind bottomappbar paddingbottom viewcompat setonapplywindowinsetslistener requireactivity window decorview inset bind bottomappbar updatepadde bottom bottomappbarpaddingbottom inset getinset type systembar bottom windowinsetscompat consume android api version api 33 and api 32 material library version 1 8 0 alpha02 device emulator api 33 and xiaomi mi 12 pro
materialcomponentsmaterialcomponentsandroid
tablayout tab indicator animation break
Bug
description since 1 8 0 alpha02 even with the very late code base the tab indicator animation be break while in 1 8 0 alpha01 it be yet work fine when quickly swipe from one tab to another the tab indicator be stutter and doesn t work smoothly anymore see video example code would be great to have that fix expect behavior the tab indicator animation should work smoothly source code minimal sample app repro see the follow example code android api version various version test as of api 29 material library version 1 8 0 alpha02 device test on various emulator pixel 5 nexus 7 nexus 10 and one real device nokia 7 2
materialcomponentsmaterialcomponentsandroid
materialdatepicker button color be not show correctly
Bug
description the button color be not show correctly on api 30 the text and background color be pink like the color attribute from the theme be not set but the rest of the ui of the dialog seem fine api 25 image api 29 image api 30 image expect behavior screenshot and or description of expect behavior source code the app theme be extend theme material3 daynight noactionbar but it s set only colorprimary colorprimarydark and coloraccent since this be a compose only app I m try to keep the xml theme attribute to the minimum minimal sample app repro repro project available here theme define here date picker show here l133 date picker define here l50 android api version the issue happen on api 30 test on 29 and 25 material library version 1 7 0 device emulator nexus 5
materialcomponentsmaterialcomponentsandroid
textinputlayout error icon take up entire hight of textinputedittext
Bug
description I add an textinputlayout to my fragment which include a textinputedittext the error icon drawable that appear when the textfield doesn t contain any input be for some reason take up the entire height of the textinputedittext expect behavior error icon drawable be center vertically inside the textinputedittext as can be see in the documentation here fbe66c7f 75ea 4f0d bce0 7b7a36c735eb source code android api version 33 material library version 1 8 0 alpha02 device samsung s22
materialcomponentsmaterialcomponentsandroid
widget materialcomponent textinputlayout outlinedbox dense exposeddropdownmenu not show box
Bug
description recently update to com google android material material 1 7 0 expect behavior it should show the border to the expose dropdown this be work fine in the previous version of material library without app boxstrokecolor color textblack app boxstrokewidth 2dp
materialcomponentsmaterialcomponentsandroid
doc or example regard custom color for textinputlayout
Help Wanted
hello dev team thank you for all your work on this library I have a question regard custom color which be not obvious to implement due rapid change in library version what I need to do be customize color of text selection cursor from left and right like on this picture image also I need a custom color for label or hint in both mode when user input text into the field and when it stop enter the text image enter something text in the first edittext customisation of color be not cover well on docs sample of this library if it be not correct please share link to the right place where this issue be cover help from the community be not helpful too as there be many place where devs point on different version of edittext and textinputedittext which doesn t give enough information about issue with current evolution of inputfield my current code be below implementation com google android material material 1 7 0
materialcomponentsmaterialcomponentsandroid
materialbutton german letter cause a crash from 1 7 0
Bug
description add a string with the letter to the material button icon attribute result in a crash can be even observe in the android studio editor view will add an xml snipset whit minimal attribute that cause the issue the snipset produce an error inside android studio editor but its the same error that we be see on our app from my experience if I don t specify the icon gravity it work fine or if I use textallcap or if you donth specify the icon at all it work correctly this start happen after update the library version 1 6 1 1 7 0 the error trace fatal exception java lang stringindexoutofboundsexception begin 0 end 11 length 10 at java lang string checkboundsbeginend string java 3942 at java lang string substre string java 2467 at java lang string subsequence string java 2517 at com google android material button materialbutton gettextinline materialbutton java 658 at com google android material button materialbutton gettextlayoutwidth materialbutton java 619 at com google android material button materialbutton updateiconposition materialbutton java 571 at com google android material button materialbutton onlayout materialbutton java 453 at android view view layout view java 24958 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1873 at android view view layout view java 24958 at android view viewgroup layout viewgroup java 6784 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 24958 at android view viewgroup layout viewgroup java 6784 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1873 at android view view layout view java 24958 at android view viewgroup layout viewgroup java 6784 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 24958 at android view viewgroup layout viewgroup java 6784 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 24958 at android view viewgroup layout viewgroup java 6784 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 24958 at android view viewgroup layout viewgroup java 6784 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 24958 at android view viewgroup layout viewgroup java 6784 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 1418 at android view view layout view java 24958 at android view viewgroup layout viewgroup java 6784 at android view viewrootimpl performlayout viewrootimpl java 4787 at android view viewrootimpl performtraversal viewrootimpl java 4115 at android view viewrootimpl dotraversal viewrootimpl java 2991 at android view viewrootimpl traversalrunnable run viewrootimpl java 10665 at android view choreographer callbackrecord run choreographer java 1301 at android view choreographer callbackrecord run choreographer java 1309 at android view choreographer docallback choreographer java 923 at android view choreographer doframe choreographer java 852 at android view choreographer framedisplayeventreceiver run choreographer java 1283 at android os handler handlecallback handler java 942 at android os handler dispatchmessage handler java 99 at android os looper looponce looper java 226 at android os looper loop looper java 313 at android app activitythread main activitythread java 8741 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 571 at com android internal os zygoteinit main zygoteinit java 1067 expect behavior the app should not crash source code android api version api level 33 material library version com google android material material 1 7 0 device galaxy s22 ultra
materialcomponentsmaterialcomponentsandroid
tablayout tab indicator bitmap drawable with tilemodex repeat can not be align to bottom of a tab
Bug
description I use custom tab indicator with a complex shape drawable wave png wave my idea be to make a repeatable bitmap from this drawable and set it as a tab indicator tab indicator xml tab layout setup be as follow result behavior tab indicator be always on top gravity attr of bitmap drawable be ignore expect I also try with no luck place a bitmap drawable inside a layer list and set gravity or top offset to an item make a 9 patch with stretch area above the wave expect behavior expect animation be like on a screenshot above the wave itself should be at the bottom minimal sample app repro testtabindicator zip android api version n a material library version 1 7 0 1 8 0 alpha02 device pixel 4a 5 g
materialcomponentsmaterialcomponentsandroid
drawerlayout screen flicker when closed draverlayout
Bug
description follow the guide material 3 do not change anything in the code when change the fragment when you click on the menu item navigationview the screen flicker blink that be the screen become dark for a moment check use onnavigationitemselectedlistener when call drawerlayout close this flicker occur how to fix it expect behavior attach a video with a sample of undesirable behavior android api version 29 material library version material android library version 1 8 0 alpha02
materialcomponentsmaterialcomponentsandroid
checkbox uncheck transition doesn t match m3 spec
Bug
description the border color of the button doesn t change until the end of the uncheck animation m3 spec expect behavior the border color of the button change as soon as it be unchecked android api version api level 33 material library version 1 7 0
materialcomponentsmaterialcomponentsandroid
try to build exist swb to sw rc05 then material 1 6 1 error invalid file
Bug
screenshot 2022 11 11 08 13 15 69 423e58f25c30a02453fa5d8c82fc37f2 screenshot 2022 11 11 08 13 18 99 423e58f25c30a02453fa5d8c82fc37f2 description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputlayout motion ease theme
Bug
description unable to use preview layout step to reproduce 1 create new project 2 select basic activity material3 as a template 3 upgrade material lib to 1 8 0 alpha02 4 open frament first xml layout 5 try to add textinputlayout 6 get exception in the message window and blank screen inside preview area p s this kind of exception occur also if you replace textinputlayout with materialcardview component android ide android studio dolphin 2021 3 1 patch 1 android api version 32 material library version 1 8 0 alpha02 device emulator image image java lang illegalargumentexception motion ease theme attribute must be an interpolator resource for attr motionease interpolator attribute or a string for attr motioneasing attribute at com google android material motion motionutil resolvethemeinterpolator motionutil java 74 at com google android material textfield indicatorviewcontroller indicatorviewcontroller java 148 at com google android material textfield textinputlayout textinputlayout java 225 at com google android material textfield textinputlayout textinputlayout java 451 at java base jdk internal reflect nativeconstructoraccessorimpl newinstance0 native method at java base jdk internal reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at java base jdk internal reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java base java lang reflect constructor newinstance constructor java 490 at org jetbrains android uipreview viewloader createnewinstance viewloader java 351 at org jetbrains android uipreview viewloader loadclass viewloader java 200 at org jetbrains android uipreview viewloader loadview viewloader java 161 at com android tool idea render layoutlibcallbackimpl loadview layoutlibcallbackimpl java 294 at android view bridgeinflater loadcustomview bridgeinflater java 417 at android view bridgeinflater loadcustomview bridgeinflater java 428 at android view bridgeinflater createviewfromtag bridgeinflater java 332 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate original layoutinflater java 1127 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate original layoutinflater java 1130 at android view layoutinflater delegate rinflate layoutinflater delegate java 72 at android view layoutinflater rinflate layoutinflater java 1101 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 505 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 359 at com android layoutlib bridge bridge createsession bridge java 436 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 121 at com android tool idea render rendertask createrendersession rendertask java 717 at com android tool idea render rendertask lambda inflate 9 rendertask java 873 at com android tool idea render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 192 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 829
materialcomponentsmaterialcomponentsandroid
materialcalendar daytodaystyle not apply
Bug
description I be try to remove today s date style non fill circle modify daytodaystyle style expect behavior after modify the style like itemstrokewidth itemstrokecolor or itemtextcolor I expect to see this change reflect in the datepicker but these change be ignore screenshot 20221109 174841 source code android api version test it on android api 32 and 30 material library version 1 7 0 device test on a xiaomi pocophone m3 pro 5 g
materialcomponentsmaterialcomponentsandroid
splashscreen display very large on device low than android 12 and on individual model the mask appear as a rectangle
Bug
description full description of issue here splashscreen display very large on device low than android 12 and on individual model the mask appear as a rectangle expect behavior screenshot and or description of expect behavior screenshot 20221109 131028 screenshot 20221109 130821 screenshot 2022 11 09 10 59 32 106 com xktech ixueto android api version android api version here 33 material library version material android library version you be use here 1 8 0 alpha02 device device on which the bug be encounter here galaxy note 10 android 12 galaxy note 7 android 6 0 redmi k40 android 11
materialcomponentsmaterialcomponentsandroid
tablayout tab indicator get stick in an intermediate position
Bug
the fix bring a new problem open tabscontrollabledemofragment double click on an unselected tab
materialcomponentsmaterialcomponentsandroid
appbarlayout materialtoolbar focus be not pass to materialtoolbar from appbarlayout
Bug
description full description of issue here with an appbarlayout and a a simple material toolbar embed within navigation via keyboard never appear to get focus to the materialtoolbar navigate up relate icon or any icon within the toolbar itself expect behavior expect behaviour be that navigation should be able to be focus up on the toolbar item when navigate from another focusable item source code minimal sample app repro bind databindingutil setcontentview this r layout debugutility landing activity setsupportactionbar bind mytoolbar we have one button on the screen that be below the content the button be itself focusable by default but when I try to use a keyboard navigation to navigate up to the back button in the toolbar focus be never pass to it I can force it to get some focuse by make the toolbar focusable in touch but if I specify descendantfocusability to afterdescendant focus never go to the navigation icon or any item within the toolbar android api version android api version here api 26 material library version 1 4 0 device pixel and android emulator for pixel device to help we triage fast please check to make sure you be use the late version of the library unfortunately at this time can t migrate to late version yet
materialcomponentsmaterialcomponentsandroid
textinputlayout break custom cursor color set at runtime
Bug
description after this commit it no long allow set a custom cursor color via java drawablecompat settintlist getedittext gettextcursordrawable cursorcolor expect behavior it should allow use the custom cursor color as it be work fine with 1 7 0 alpha02 and I think it should cache the old tint list before apply the error color source code this code l4296 reset the old color if set dynamically at runtime android api version api 29 material library version 1 8 0 alpha02 device emulator and physical
materialcomponentsmaterialcomponentsandroid
materialautocompletetextview settext clear dropdown list item 1 8 0 alpha02
Bug
description materialautocompletetextview settext clear his item in dropdown list and show only give value to that settext expect behavior set text without clear dropdown list item I use settext because materialautocompletetextview have different setselection method logic then android widget spinner and I do not know how to set item from dropdown list programmatically android api version 30 material library version 1 8 0 alpha02 device pixel 4a api 30 emulator source code autocompletetextview view findviewbyid r i d autocompletetextview autocompletetextview setsimpleitem r array language autocompletetextview settext autocompletetextview getadapter getitem 3 tostring now as fast fix I use setsimpleitem after every settext call but I do not think that good way
materialcomponentsmaterialcomponentsandroid
autocompletetextview setonitemselectedlistener do not work 1 8 0 alpha02
Bug
description setonitemselectedlistener do not work in 1 7 0 alpha02 do not work too expect behavior print select item position in listener android api version 30 material library version 1 8 0 alpha02 device pixel 4a api 30 emulator source code xml java autocompletetextview tv autocompletetextview view findviewbyid r i d autocompletetextview tv setonitemselectedlistener new adapterview onitemselectedlistener override public void onitemselecte adapterview adapterview view view int I long l log d getclass getname select pos I override public void onnothingselecte adapterview adapterview gradle implementation com google android material material 1 8 0 alpha02
materialcomponentsmaterialcomponentsandroid
bottomsheet navigationview in bottomsheetdialog be thick color
Bug
description the navigationview in the bottomsheetdialog be thick color because android windowelevation be 16dp in its theme themeoverlay material3 bottomsheetdialog screenshot 20221102 123629 expect behavior please put item name android windowelevation 0dp item in themeoverlay material3 bottomsheetdialog or its parent screenshot 20221105 094853 source code bottomsheetdialog bottomsheetdialog new bottomsheetdialog requirecontext bottomsheetdialog setcontentview r layout sheet bottomsheetdialog setdismisswithanimation true bottomsheetdialog getwindow setelevation 0 edgetoedgeutil applyedgetoedge bottomsheetdialog getwindow true viewcompat setonapplywindowinsetslistener bottomsheetdialog getwindow getdecorview v inset inset l388 l81 l20 minimal sample app repro editor7 zip android api version 32 material library version 1 8 0 alpha02 device emulator 31 3 13
materialcomponentsmaterialcomponentsandroid
button unable to disable button ripple
Bug
description there be no way to disable button ripple in an easy non custom view way set app ripplecolor do not seem too propagate to all instance of the ripple even with the below method set the ripple persist xml app ripplecolor android color transparent or xml app ripplecolor null expect behavior expect behavior be that set the ripplecolor to transparent would result in no ripple be visible to the user there should be a way to allow the implementer to disable the ripple to create their own touch state without need a custom view you can create a state selector with shape and set the android background but you will lose most all of the enhancement convenience of use the material button api source code button xml configuration xml button state selector xml xml result also set the ripplecolor to it s down state selector result in a white ripple still it look like the materialbuttonhelper set a ripple with a white tint no matter what l234 l243 xml minimal sample app repro sample app project android api version 31 material library version 1 7 0 rc01 pixel 7 pro pixel 2 api tiramisuprivacysandbox emulator
materialcomponentsmaterialcomponentsandroid
floatingactionbutton fabsize mini be not apply
Bug
description when use a floatingactionbutton the property fabsize mini be not always apply since version 1 7 0 also test 1 8 0 alpha02 it work on 1 6 x this seem to be independent of the parent view type test with linearlayout and coordinatorlayout expect behavior 1 6 0 image 1 7 0 image source code the code snippet which be cause this issue xml 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 see activity take photo xml if you need help for building and or run please feel free to contact I the app require a run nextcloud instance with enable deck app as well as the nextcloud androd app to be instal on the smartphone the setup be a bit tricky but it be also visible in the android studio dev tool so I guess no need to actually build the app android api version confirm with api level 31 material library version 1 7 0 1 8 0 alpha02 device 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
when use animatorlisteneradapter to listen to objectanimator it will fail on android 6 0 machine
Bug
description full description of issue here when use animatorlisteneradapter to listen to objectanimator it will fail on android 6 0 machine I will not be able to listen to animation event when I change to animator animatorlistener it will work normally when I use animator animatorlistener work normally on my galaxy note 10 source code the code snippet which be cause this issue private fun playfadeoutanimation view view callback unit val fadeoutanimator objectanimator offloat view view alpha 1f 0 3f apply duration 300 interpolator accelerateinterpolator fadeoutanimator start fadeoutanimator addlistener object animatorlisteneradapter override fun onanimationend animation animator isreverse boolean callback android api version android api version here 31 material library version material android library version you be use here e g 1 1 0 alpha07 1 8 0 alpha02 device device on which the bug be encounter here galaxy note 7 android 6 0
materialcomponentsmaterialcomponentsandroid
menu bottomappbar bottomnavigationview background color be slightly different
Bug
description the background color of menu and action bar be slightly different from the background color of bottom app bar and navigation bar while the spec seem to be the same menu element design attribute role token 5 container color surface md sys color surface surface tint color surface tint md sys color surface tint elevation level 2 md sys elevation level2 screenshot 20221102 140603 the background color of menu be f6ede8 action bar screenshot 20221114 112020 the background color of action bar be f6ede8 bottom app bar navigation bar element design attribute role token or value 1 container color surface md sys color surface elevation level 2 md sys elevation level2 surface tint surface tint md sys color surface tint screenshot 20221102 140841 screenshot 20221114 114246 the background color of bottom app bar and navigation bar be f5ece7 top app bar expect behavior the background color of menu and action bar be the same as the background color of bottom app bar and navigation bar source code l89 minimal sample app repro catalog app android api version 32 material library version 1 8 0 alpha02 device emulator 31 3 13
materialcomponentsmaterialcomponentsandroid
slider value label be out of sync with slider when labelbehavior visible
Bug
I deliberately extend the bottom padding to replicate the bug and mimic the slider s behavior when it s in a long scrollview and a scroll to the bottom happen the slider be out of sync with the value label as show below screenshot 20221101 205105 copy also the value label overlap other view screenshot 20221101 205513 originally post by abe roid in issuecomment 1298969948 sample repository
materialcomponentsmaterialcomponentsandroid
slider value label be overlap other view in scrollview when labelbehavior visible
Bug
the value label in the slider be always visible and overlap other view when the slider be in scrollview and out of view screenshot 20221101 000332 sample repository link link android api version 32 material library version 1 8 0 alpha02
materialcomponentsmaterialcomponentsandroid
appbarlayout appbarlayout onrequestchildrectangleonscreen modify input argument
Bug
description in onrequestchildrectangleonscreen onrequestchildrectangleonscreen androidx coordinatorlayout widget coordinatorlayout 20android view view 20android graphic rect 20boolean implementation of scrollingviewbehavior the rectangle input argument be modify which could cause problem if the contain condition be true and default fallback behavior be use see l2423 expect behavior modify a local copy of rectangle so any fallback code doesn t get an offsetted input luckily for now I think every parent fallback implementation of requestchildrectangleonscreen requestchildrectangleonscreen android view view 20android graphic rect 20boolean be noop source code offset the rect by the child s leave top rectangle offset child getleft child gettop android api version all material library version all
materialcomponentsmaterialcomponentsandroid
calendarconstraint return millisecond from getter be different from the provide at its setter
Bug
description getstartms getendms and getopenatms be different from what be provide to calendarconstraint builder setter expect behavior getter millisecond should be the same as the one that be provide use its setter source code val currentdate materialdatepicker todayinutcmillisecond val oldestdate long val previousmonth long timezone gettimezone zoneid systemdefault also calendar getinstance it let cal cal timeinmillis currentdate set calendar date today cal add calendar month 1 set month to previous previousmonth cal timeinmillis calendar getinstance it let cal cal timeinmillis currentdate set calendar date today get current year val year cal calendar year cal add calendar year 2009 year set oldest support year oldestdate cal timeinmillis val fromconstraint calendarconstraint builder setstart oldestdate setend currentdate setopenat previousmonth setvalidator datevalidatorpointbackward now disable day beyond current date build log wtf old oldestdate tostring log wtf current currentdate tostring log wtf open at previousmonth tostring log wtf constraint old fromconstraint startms tostre log wtf constraint current fromconstraint endms tostre log wtf constraint open at fromconstraint openatms tostre image android api version any material library version 1 8 0 alpha02 device any
materialcomponentsmaterialcomponentsandroid
date picker contentdescription for dayname be not properly get read by talkback for the german language
Bug
description the content description talkback for the day name be not properly get read in the german language for the date picker dialog for english it be work fine but not for the german language for example sometimes date be get read as mi zweite november instead of mittwoch zweite november du drei n o v instead of donnerstag dritte november frau vier n o v instead of freitag vierte november s a f nf n o v instead of samstag f nfte november so sech n o v instead of sonntag sechste november mo sieben n o v instead of montag siebte november bug screen recording expect behavior date should be get read as mittwoch zweite november donnerstag dritte november freitag vierte november samstag f nfte november sonntag sechste november montag siebte november source code targetapi version code n static android icu text dateformat getabbrmonthweekdaydayformat locale locale return getandroidformat android icu text dateformat abbr month weekday day locale and targetapi version code n static android icu text dateformat getyearabbrmonthweekdaydayformat locale locale return getandroidformat android icu text dateformat year abbr month weekday day locale minimal sample app repro android api version android 12 api 31 material library version 1 8 0 alpha02 device oneplus pixel