repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton background clip animation do not work
Bug
description when custom background be set to clip drawable or any contain like below xml cliping do not work set the same for normal button do work expect behavior with extendedfloatingactionbutton image with simple button image source code background drawable xml background replacement kotlin val drawable preparedrawable r drawable extend progressive bg r style progressingbutton cancel as layerdrawable clipdrawable drawable finddrawablebylayerid r i d clipitem ext btn background drawable ext btn be either button or com google android material floatingactionbutton extendedfloatingactionbutton please notice that button com google android material button materialbutton when I replace button with it it also do not work animation kotlin val animator timeanimator val maxtime 10 1000 animator settimelistener totaltime clipdrawable level totaltime todouble maxtime 10000 toint f totaltime maxtime animator cancel animator start android api version 30 material library version 1 4 0 device pixel 4
materialcomponentsmaterialcomponentsandroid
tablayout tab isselecte will return true if tablayout getselectedtabposition return 1 and tab position be 1 invalid position
Bug
description it s possible to have a tab with an invalid position and a tablayout with a null selectedtab that will return 1 when call tablayout getselectedtabposition in this scenario call tab isselecte on the tab with an invalid position will erroneously return true expect behavior the tab with invalid position should return false when call tab isselecte source code tablayout removealltab tablayout newtab isselecte will return true android api version android 11 api level 30 material library version 1 3 0 or high device samsung galaxy s10 sm g973u1 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 set a custom drawable with intrinsic height as the select tab indicator will not appear on screen
Bug
description set a custom drawable with an intrinsic height as the select tab indicator for a tablayout will cause it to be draw with a height of 0 and not appear on screen repro the follow step use a minimal custom tablayout implementation that inherit from com google android material tab tablayout in the init block of the custom tablayout class create a custom drawable for use as the select tab indicator set the intrinsic height of the drawable as advise in the documentation for the deprecate method tablayout setselectedtabindicatorheight call tablayout setselectedtabindicator and pass the drawable call tablayout setselectedtabindicatorcolor to set a color the drawable do not appear on screen when inspect the slidingtabindicator draw method it can be see that the indicator height be actually set to the bound height which be 0 and then skip set it to the intrinsic height workaround call the deprecate method tablayout setselectedtabindicatorheight in order to set the height on the drawable bound expect behavior the drawable s height should be the intrinsic height as advise by tablayout setselectedtabindicatorheight documentation source code problem init val drawable shapedrawable rectshape drawable intrinsicheight 7 setselectedtabindicator drawable setselectedtabindicatorcolor context getcolorcompat android r color holo red dark workaround init val drawable shapedrawable rectshape drawable intrinsicheight 7 setselectedtabindicator drawable setselectedtabindicatorcolor context getcolorcompat android r color holo red dark setselectedtabindicatorheight drawable intrinsicheight android api version android 11 api level 30 material library version 1 3 0 or high device samsung galaxy s10 sm g973u1 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
indexoutofboundsexception offset should be less than line limit on textinputedittext with email input type
Bug
description lately there have be a crash on our android app on a xiaomi redmi note 7 device probably when a textinputedittext with email input type gain focus from the stacktrace below there be no direct relation to our code even in other thread stracktrace I only know that it happen every time in a fragment in which there be a textinputedittext with email input type it might be happen when a textinputedittext be gain focus but I have no way of be sure from our investigation regard this crash this may happen on meizu device only m5c m5s m5 note note android api version 10 material library version 1 2 0 device xiaomi redmi note 7
materialcomponentsmaterialcomponentsandroid
materialtoolbar navigationcontentdescription be not disaplye as tooltip
Bug
description tooltip be an essential part of accessibility they be specially important where icon might not be as descriptive due to regional cultural difference all the toolbar menu item be properly display as tooltip but for some reason the navigation icon be not expect behavior if the toolbar navigation content description be provide by developer when the user long press the up back icon a tooltip should be show with the navigation content description android api version any all material library version material 1 4 0 device any all
materialcomponentsmaterialcomponentsandroid
textview appbarlayout maybe more material3 crash with light theme
Bug
description use a theme with theme material3 daynight noactionbar as parent my app crash when run a light theme the dark theme work fine here be part of the stack trace regard the appbarlayout java lang runtimeexception unable to start activity componentinfo nl jolanrensen widgetscreensaver nl jolanrensen widgetscreensaver settingsactivity android view inflateexception binary xml file line 16 in nl jolanrensen widgetscreensaver layout activity setting binary xml file line 16 in nl jolanrensen widgetscreensaver layout activity setting error inflate class com google android material appbar appbarlayout cause by android view inflateexception binary xml file line 16 in nl jolanrensen widgetscreensaver layout activity setting binary xml file line 16 in nl jolanrensen widgetscreensaver layout activity setting error inflate class com google android material appbar appbarlayout cause by android view inflateexception binary xml file line 16 in nl jolanrensen widgetscreensaver layout activity setting error inflate class com google android material appbar appbarlayout cause by java lang reflect invocationtargetexception e androidruntime at com android internal os zygoteinit main zygoteinit java 1003 cause by java lang unsupportedoperationexception fail to resolve attribute at index 13 typedvalue t 0x2 d 0x7f0300f1 a 10 at android content re typedarray getdrawablefordensity typedarray java 998 at android content re typedarray getdrawable typedarray java 982 at android view view view java 5520 at android view viewgroup viewgroup java 702 at android widget linearlayout linearlayout java 254 at android widget linearlayout linearlayout java 250 at com google android material appbar appbarlayout appbarlayout java 215 at com google android material appbar appbarlayout appbarlayout java 211 if I take out the appbarlayout from the project the app simply crash on the next textview java lang runtimeexception unable to start activity componentinfo nl jolanrensen widgetscreensaver nl jolanrensen widgetscreensaver settingsactivity android view inflateexception binary xml file line 65 in nl jolanrensen widgetscreensaver layout activity setting binary xml file line 38 in nl jolanrensen widgetscreensaver layout content setting error inflate class textview cause by android view inflateexception binary xml file line 65 in nl jolanrensen widgetscreensaver layout activity setting binary xml file line 38 in nl jolanrensen widgetscreensaver layout content setting error inflate class textview cause by android view inflateexception binary xml file line 38 in nl jolanrensen widgetscreensaver layout content setting error inflate class textview cause by java lang unsupportedoperationexception fail to resolve attribute at index 6 typedvalue t 0x2 d 0x101009b a 1 at android content re typedarray getcolorstatelist typedarray java 598 at android widget textview readtextappearance textview java 4062 at android widget textview textview java 1088 at android widget textview textview java 1026 at androidx appcompat widget appcompattextview appcompattextview java 108 at com google android material textview materialtextview materialtextview java 93 at com google android material textview materialtextview materialtextview java 88 at com google android material textview materialtextview materialtextview java 83 at com google android material theme materialcomponentsviewinflater createtextview materialcomponentsviewinflater java 61 at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 121 at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1570 at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1621 at android view layoutinflater trycreateview layoutinflater java 1065 at android view layoutinflater createviewfromtag layoutinflater java 1001 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate layoutinflater java 1127 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate layoutinflater java 1130 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater parseinclude layoutinflater java 1267 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate layoutinflater java 1130 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater rinflate layoutinflater java 1130 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 it look like there be an attribute somewhere that only exist in the light theme which both textview and appbarlayout use that can t be read or find somehow expect behavior there shouldn t be a crash source code my app do use viewbinde if that could be the cause of the issue other than that I use a simple appbarlayout xml and textview xml my main theme be base on materialthemebuilder with the parent theme be replace with theme material3 daynight noactionbar android api version 31 material library version 1 5 0 alpha03 device pixel 4xl android 12 beta 5
materialcomponentsmaterialcomponentsandroid
chip can t check a chip with signleselection true
Bug
description I can t check a chip when the attribute singleselection of the chipgroup be set to true source code image questionsanswerslist be the chipgroupview with issingleselection false image with issingleselection true image android api version 30 material library version 1 4 0 device android emulator target google apis playstore google play api level 30
materialcomponentsmaterialcomponentsandroid
material3 bottomsheet bottomsheetdialogfragment do not perform slide animation when it appear
Bug
description on material3 theme bottomsheetdialogfragment do not perform slide animation when it appear and it s define as in an android navigation graph I ve update my app theme from theme materialcomponent to theme material3 and now this slide animation be not perform when bottomsheet dialog be expand expect behavior bottomsheetdialog must perform a slide animation when application navigate to this dialog as it be do in theme materialcomponent source code android api version android 11 api level 30 material library version 1 5 0 alpha03 device oneplus 7 t theme materialcomponent work as expect theme material3
materialcomponentsmaterialcomponentsandroid
shapeableimageview background color with alpha be not render correctly
Bug
description when use the shapeableimageview with a color that have a certain transparency the transparency be less than when we use the same color on another view I e textview see image as a reference this be only the case when I use it like this in a list item 20210910 120526 expect behavior I expect that the color be the same on both view source code the issue can be easily reproduce by use this snippet in a list circle shape android api version 29 material library version 1 4 0 device device on which the bug be encounter here samsung galaxy s20 sm g965f
materialcomponentsmaterialcomponentsandroid
materialbutton icongravity not work correct for circularprogressindicator
Bug
description I ve create a custom view that extend materialbutton that replace the drawable with a circularprogressindicator when it s load however when I replace the drawable with the circularprogressindicator the icongravity doesn t work anymore expect behavior correct behaviour delete correct incorrect behaviour delete incorrect source code class loadingbutton constructor context context materialbutton context private val progressindicatordrawable by lazy val progressindicatorspec circularprogressindicatorspec context null 0 r style widget materialcomponent circularprogressindicator extrasmall progressindicatorspec indicatorcolor intarrayof getcolor context r color white indeterminatedrawable createcirculardrawable context progressindicatorspec apply setvisible true true init the follow drawable be align to the start of the view incorrect icon progressindicatordrawable the follow drawable be align to the start of the text correct icon drawableutil getdrawable context r drawable icon delete text delete icongravity icon gravity text start android api version android 10 material library version com google android material material 1 3 0 also try 1 5 0 alpha02 device oneplus 6 t detailed description of the problem with possible work around
materialcomponentsmaterialcomponentsandroid
textinputlayout remove start icon click listener lead to ripple effect never remove
Bug
description assume a texinputlayout with to state and we want to make start icon clickable only for one stat when remove click listener once start icon be click lead to ripple effect stay on screen forever expect behavior ripple effect be remove when click listener be remove source code setstarticononclicklistener null android api version 31 material library version 1 5 0 alpha03 device emulator api 31 initial state inkedscreenshot 1631130453 li second state inkedscreenshot 1631130712 li after click start icon back arrow to restore first state and set click listener to null inkedscreenshot 1631130861 li
materialcomponentsmaterialcomponentsandroid
textinputlayout hint text over outline border when boxcornerradiustopstart be set
Bug
description the hint text be over the outline border on the left when boxcornerradiustopstart be set it be fine until I update the material lib from 1 3 0 to 1 4 0 could also reproduce this with the late 1 5 0 alpha03 version expect behavior textinputlayout hint expect problem textinputlayout hint problem source code android api version 30 0 2 material library version test with 1 4 0 and 1 5 0 alpha03 device xiaomi mi mix 2
materialcomponentsmaterialcomponentsandroid
materialdatepicker crash in dark theme
Bug
description materialdatepicker and materialtimepicker not show and app crash when theme be dark on the phone in light theme everything be fine expect behavior datepicker dialog should be show android api version android 10 api 29 material library version material android library version 1 5 0 alpha02 device google pixel 3 api 29 emulator and huawei p30 lite api 29 logcat android view inflateexception binary xml file line 23 in uz anorgroup doonk layout mtrl picker dialog binary xml file line 26 in uz anorgroup doonk layout mtrl picker header title text error inflate class textview cause by android view inflateexception binary xml file line 26 in uz anorgroup doonk layout mtrl picker header title text error inflate class textview cause by android content re resource notfoundexception can t find colorstatelist from drawable resource i d 0x7f08009c at android content re resourcesimpl loadcolorstatelist resourcesimpl java 1395 at android content re resource loadcolorstatelist resource java 1170 at android content re typedarray getcolorstatelist typedarray java 678 at android widget textview readtextappearance textview java 4035 at android widget textview textview java 1104 at android widget textview textview java 1004 at androidx appcompat widget appcompattextview appcompattextview java 102 at com google android material textview materialtextview materialtextview java 93 at com google android material textview materialtextview materialtextview java 88 at com google android material textview materialtextview materialtextview java 83 at com google android material theme materialcomponentsviewinflater createtextview materialcomponentsviewinflater java 61 at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 115 at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1563 at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1614 at android view layoutinflater factorymerger oncreateview layoutinflater java 244 at android view layoutinflater trycreateview layoutinflater java 1071 at android view layoutinflater createviewfromtag layoutinflater java 1007 at android view layoutinflater parseinclude layoutinflater java 1243 at android view layoutinflater rinflate layoutinflater java 1129 at android view layoutinflater rinflatechildren layoutinflater java 1094 at android view layoutinflater rinflate layoutinflater java 1136 at android view layoutinflater rinflatechildren layoutinflater java 1094 at android view layoutinflater rinflate layoutinflater java 1136 at android view layoutinflater parseinclude layoutinflater java 1241 at android view layoutinflater rinflate layoutinflater java 1129 at android view layoutinflater rinflatechildren layoutinflater java 1094 at android view layoutinflater inflate layoutinflater java 692 at android view layoutinflater inflate layoutinflater java 536 at android view layoutinflater inflate layoutinflater java 483 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 at androidx fragment app fragment performcreateview fragment java 2961 at androidx fragment app dialogfragment performcreateview dialogfragment java 489 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 504 at androidx fragment app fragmentstatemanager movetoexpectedstate fragmentstatemanager java 259 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1797 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1715 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1658 at androidx fragment app fragmentmanager 4 run fragmentmanager java 488 at android os handler handlecallback handler java 888 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 213 at android app activitythread main activitythread java 8178 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 513 at com android internal os zygoteinit main zygoteinit java 1101
materialcomponentsmaterialcomponentsandroid
textinputlayout endicon not display if field isn t focus when text be change
Bug
description when change the value of an an autocompletetextview programmatically the endicon on the parent textinputlayout doesn t display unless the field have focus expect behavior the endicon be display if the new value be not null or empty and the field have focus source code xml
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog content clip after orientation change
Bug
description this issue be introduce in 1 4 0 bottom sheet width be not invalidated on orientation change without activity recreation when activity have configchange orientation attribute and bottomsheet have be initialize with screen width more than 640dp bottom sheet content width win t be invalidate after orientation change demo project expect behavior bottom sheet width should be invalidate on orientation change accord to maxwidth value and actual screen width after orientation change android api version any api version material library version 1 4 0 device android emulator api 30 samsung s21 ultra pixel 4 xl any other device
materialcomponentsmaterialcomponentsandroid
material3 which api style your app icon
Bug
I m use material3 on my android 12 device and it s work great the last thing I want to do be allow my app icon to be style by material you like all of google app do on android 12 be that available somewhere
materialcomponentsmaterialcomponentsandroid
chip chip set style via code be not as easy as other view
Bug
description set style via xml seem to work set style via attr seem to work but set a style form a style name directly do not seem to work below be some stackoverflow on this expect behavior screenshot and or description of expect behavior in general I like to set a style for a view via contextthemewrapper as show below but it do not work source code see stack overflow android api version 30 material library version 1 4 0 device pixel 5 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
tablayout set selectedtabindicator programmatically be break
Bug
description when I try to set selectedtabindicator through setselectedtabindicator indicator be completely go set same drawable through xml attribute work fine I figure out that it happen because drawable have zero height expect behavior setselectedtabindicator should properly set indicator like xml attribute source code I create app from tabbedactivity template link and add this line after tablayout initialize tab setselectedtabindicator r drawable tab indicator tab indicator xml android api version api 29 api 28 api 26 api 25 api 22 material library version reproduce on 1 5 0 alpha03 1 4 0 1 3 0 work fine on 1 2 0 device oneplus 7 t google pixel 3a emulator
materialcomponentsmaterialcomponentsandroid
m3 catalog dynamic color preference always disable
Bug
description dynamic color preference always disabled even though run on android 12 beta 4 2 expect behavior dynamic color preference enable source code the source of the issue be in method of androidx core os buildcompat checkssdkintatleast codename s public static boolean isatleast return version codename equal s which actually return false the actual value be rel android api version android 12 beta 4 2 material library version 1 5 0 alpha03 device google pixel 3
materialcomponentsmaterialcomponentsandroid
java lang classcastexception android graphic rect can not be cast to java lang integer
Bug
description hi we be have crash with follow log for one of our playstore apk as below fatal exception java lang classcastexception android graphic rect can not be cast to java lang integer com google android material chip chip handleaccessibilityexit chip java 823 com google android material chip chip dispatchhoverevent chip java 851 android view view dispatchgenericmotionevent view java 14419 android view viewgroup dispatchtransformedgenericpointerevent viewgroup java 2606 com android internal os zygoteinit main zygoteinit java 947 we be not able to reproduce this issue in our dev environment expect behavior no crash source code we be use com google android material chip chipgroup to make a custom implementation in xml to show some datum but from log we can see that the crash go beyond the custom implementation have there be a direct major issue in our implementation we could be able to see during our internal testing or in few of the multiple crash but as we don t have any of its reference use the above code be there any probable solution for this issue that we can try at our end android api version version 7 9 10 11 material library version com google android material material 1 4 0 device brand oneplus model oneplus nord n100 version 10 brand samsung model galaxy note5 version 7 0 brand motorola model moto g stylus 2021 version 10 brand google model intel gemini lake chromebook version 9 brand google model pixel 4a 5 g version 11 brand samsung model galaxy tab s4 version 9 brand sony model xperia 1 version 11
materialcomponentsmaterialcomponentsandroid
materialalertdialog can t tint unchecked checkedtextviewstyle in materialalertdialog
Bug
description when I customize materialalertdialog I can specify a colorsecondary color which will impact checkboxe and radio button in single and multi choice materialalertdialog however I would like to customize the unchecked state of checkboxe and radio button but android checkmarktint be ignore even if I remove the colorsecondary property expect behavior when I remove the colorsecondary property my configuration specify in android checkmarktint be apply on checkboxe and radio button source code xml xml here be my pull request about this customization you can pull my branch or pull the github project to test the component when it will be merge this issue will not block the merge in our project android api version api min version 21 material library version 1 5 0 alpha01 device test on oneplus 7 t
materialcomponentsmaterialcomponentsandroid
progressindicator indeterminate animation do not resume after turn screen off on
Bug
description when turn the device screen off and back on e g press the power button the inderminate animation of both circular and linear progressindicator s do not resume expect behavior the animation should resume step to reproduce install the catalog app head to the progressindicator sample view any contain an indeterminate progressindicator press the power button and turn the screen back on android api version test on 10 and 11 possibly more material library version all device oneplus 7 t oneplus 5 t galaxy tab a10 1 not reproducable on emulator unfortunately I be not able to pinpoint why exactly I think the root cause be after the screen come back on the system call l264 which in turn call l98 with the animate parameter set to false per javadocs the animate parameter be suppose to control whether the visibility change should be do use the show hide animation but be interpret as should the entire indeterminate animation run here l109
materialcomponentsmaterialcomponentsandroid
slider labelfor do not work
Bug
description per the description for accessibility for slider it say to use label for use slider if you do this it do not read the label for as the other view do expect behavior talkback should announce like it do with other view such as seekbar actual 0 slider use volume key to adjust expect 0 slider for textview text use volume key to adjust source code when have xml like this android api version android api version here 30 android 11 material library version material android library version you be use here e g 1 1 0 alpha07 1 4 0 device device on which the bug be encounter here pixel 5 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomnavigation the badge align different anchor on bottomnavigation between lib and doc
Bug
description the badge align different anchor on bottomnavigation see below build lib result the view to the right of the green line will be large when badge be wide device 2021 08 27 173138 the doc show both view right side and leave side of the green line be same size when badge be wide official badge sample expect behavior I don t know which be expect I would like to see same result between lib and doc android api version 30 material library version 1 4 0
materialcomponentsmaterialcomponentsandroid
circularprogressindicator line outside indicator circle
Bug
description indicator have 2 line inside and outside the circle these line have color from trackcolor attribute the color I use in xml have no alpha screenshot photo 2021 08 23 21 12 49 photo 2021 08 23 21 12 58 expect behavior no line of track color outside indicator circle source code xml android api version 30 material library version 1 4 0 device samsung galaxy s10e and lenovo tb x606f
materialcomponentsmaterialcomponentsandroid
materialdatepicker touch target for selectable date be 40dp should be at least 48dp accord to google play pre launch report
Bug
description google play pre launch report complain that the touch target for various ui element be to small when look into the report most of the warning be from the material date picker dialog expect behavior screenshot of the pre launch report warn image source code nothing specific just launch the dialog be enough to trigger these warning android api version all material library version com google android material material 1 4 0 device pixel 3 run android 9 but happen on more device
materialcomponentsmaterialcomponentsandroid
make the progressbar change evenly
Bug
make the progressbar change evenly I want to use a timer to make the progressbar count down to 30 second but if I do it by set the progress property it will make the progress bar change suddenly I want it to grow evenly
materialcomponentsmaterialcomponentsandroid
textfield textinputlayout password toggle icon can t align it s layout
Bug
description when hintenable attribute set as false password toggle icon can not align to center expect behavior image source code android api version all api version material library version 1 4 0 device all device
materialcomponentsmaterialcomponentsandroid
textinputlayout suffix text bug
Bug
when I use the material component version 1 3 0 I don t have a problem but when I replace it with version 1 4 0 I have a problem where the suffix text be not on the right side of the textinputlayout but be in the center of textinputlayout please fix this
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout not center when maxline be define
Bug
description when maxline be set to a value high than 1 and expandedtitlegravity be center the collapsingtoolbarlayout do not center the text exactly I m not sure if this be the intend behaviour but I d not expect maxline to change the positioning of the text source code to reproduce use this layout capture d e cran 2021 08 18 a 14 20 15 android api version android api 30 material library version com google android material material 1 3 0 device one plus 6 t
materialcomponentsmaterialcomponentsandroid
materialtimepicker crash on inflate picker
Bug
description I try to add time picker to my project but it get crash each time when I try to call it whatever param I set I ve try run it on 1 4 0 and 1 5 0 alpha02 version after some investigation I find that crash appear when my app theme be extend from theme materialcomponent light darkactionbar bridge and work good for theme materialcomponent light darkactionbar expect behavior time picker dialog be appear on screen source code materialtimepicker picker new materialtimepicker builder settitletext question gettext sethour 0 setminute 0 settimeformat timeformat clock 12h setinputmode materialtimepicker input mode keyboard build picker addonpositivebuttonclicklistener v processtimeformat picker gethour picker getminute picker show getfragmentmanager time picker dialog style android api version 31 android 12 beta 4 material library version 1 4 0 device pixel 3a xl android view inflateexception binary xml file line 80 in com inspection driveroo launch layout material timepicker dialog binary xml file line 80 in com inspection driveroo launch layout material timepicker dialog error inflate class cause by android view inflateexception binary xml file line 80 in com inspection driveroo launch layout material timepicker dialog error inflate class cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 858 at android view layoutinflater createviewfromtag layoutinflater java 1010 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate layoutinflater java 1127 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 538 at android view layoutinflater inflate layoutinflater java 485 at com google android material timepicker materialtimepicker oncreateview materialtimepicker java 214 at androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1187 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1356 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1434 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1497 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2169 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1992 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1947 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1849 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7822 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 at com android internal os zygoteinit main zygoteinit java 1003 cause by java lang unsupportedoperationexception fail to resolve attribute at index 36 typedvalue t 0x2 d 0x7f0402f7 a 9 at android content re typedarray getdimensionpixelsize typedarray java 783 at android view view view java 5788 at android widget textview textview java 1032 at android widget button button java 166 at android widget button button java 141 at androidx appcompat widget appcompatbutton appcompatbutton java 74 at com google android material button materialbutton materialbutton java 224 at com google android material button materialbutton materialbutton java 220 at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 858 at android view layoutinflater createviewfromtag layoutinflater java 1010 at android view layoutinflater createviewfromtag layoutinflater java 965 at android view layoutinflater rinflate layoutinflater java 1127 at android view layoutinflater rinflatechildren layoutinflater java 1088 at android view layoutinflater inflate layoutinflater java 686 at android view layoutinflater inflate layoutinflater java 538 at android view layoutinflater inflate layoutinflater java 485 at com google android material timepicker materialtimepicker oncreateview materialtimepicker java 214 at androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1187 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1356 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1434 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1497 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2169 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1992 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1947 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1849 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper looponce looper java 201 at android os looper loop looper java 288 at android app activitythread main activitythread java 7822 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 548 at com android internal os zygoteinit main zygoteinit java 1003
materialcomponentsmaterialcomponentsandroid
progress indicator doesn t animate well with materialsharedaxis animation
Bug
description full description of issue here the progress indicator doesn t animate at all and freeze on a fragment pop expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue github com heybradharris class android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 1 5 0 alpha02 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog materialbutton in bottomsheetdialog will be force to single line
Bug
materialbutton in bottomsheetdialog will be force to single line with the layout inspector I find singleline ture and maxline 1 but I never set these value explicitly the bug start from material 1 4 0 and still exist in 1 5 0 alpha02 the follow be a very simple layout a button in a framelayout device 2021 08 15 165518 this screenshot be compile with material 1 3 0 everything be correct device 2021 08 15 165609 this screenshot be compile with material 1 4 0 the button be single line sourcecode zip the layout in my project relate to this bug be break if there be any workaround before it can be fix please let I know
materialcomponentsmaterialcomponentsandroid
appbarlayout android outlineprovider none don t work
Bug
description see subject expect behavior if in layout xml you put and an elevation 0dp in an appbarlayout tag it do not work as expect the shadow be paint however around the rectangle of the viewgroup I have test with materialbutton too and it work instead programmatically appbar setoutlineprovider null it work button setoutlineprovider null it work source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 30 material library version 1 5 0 alpha02 device samsung a20 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 height be wrong when use in a dialogfragment use constraintlayout expandedhintenable false and layout width 0dp
Bug
description use a textinputlayout with app expandedhintenable false work fine in a normal fragment but when use it in a dialogfragment use constraintlayout the height of the textinputlayout become large the long the placeholder text be when use a 1 character placeholder text the height be correct when the placeholder text length be 2 the height be enough for 2 line of text with a length of three the height be suitable for 3 line and so on alert dialog for this to reproduce the layout width have to be set to 0dp if use a fix width match parent or wrap content it do not reproduce expect behavior the height of the textinputlayout should be suitable for one line of text when the placeholder text be short enough to fit on one line source code dialog fragment class kotlin class testdialogfragment dialogfragment override fun oncreatedialog savedinstancestate bundle dialog return alertdialog builder requirecontext setmessage alert dialog setpositivebutton ok null setnegativebutton cancel null setview layoutinflater inflate r layout dialog test null create create the dialog kotlin testdialogfragment show childfragmentmanager dialog dialog text xml xml android api version 30 material library version 1 4 0 and 1 5 0 alpha01 device pixel 5 and x86 64 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
unable to set transparent background on activity
Bug
description transparent activity background be now black instead of transparent after bump material component from 1 3 0 to 1 4 0 expect behavior material 1 3 0 expect actual behavior material 1 4 0 actual source code activity style actual style parent be theme appcompat light noactionbar android api version test on 26 30 material library version 1 4 0 1 5 0 alpha01 device test on oneplus 8 t samsung galaxy s7 s10 I expect all device to have this issue
materialcomponentsmaterialcomponentsandroid
navigationrail vertical spacing between icon and label increase when the width increase
Bug
I m use navigation rail component with certain width to accommodate the menu label I try set the width to wrap content but the menu label still show ellipsis at the end so I try to set the width of navigation rail view manually but the vertical spacing between icon and label in the menu item be get large when I set large width be there a way to keep the vertical spacing fix I can reproduce this behavior inside catalog sample app by set navigation rail view width to certain value such as 100dp
materialcomponentsmaterialcomponentsandroid
circularprogressindicator crash in circularprogressindicator
Bug
I be get crash report from firebase fatal exception java lang nullpointerexception attempt to invoke virtual method void e z a a b a android graphic drawable drawable on a null object reference at com google android material progressindicator circularindeterminateanimatordelegate 2 onanimationend circularindeterminateanimatordelegate java 112 at android animation animator animatorlistener onanimationend animator java 554 at android animation valueanimator endanimation valueanimator java 1242 at android animation valueanimator doanimationframe valueanimator java 1484 at android animation animationhandler doanimationframe animationhandler java 146 at android animation animationhandler access 100 animationhandler java 37 at android animation animationhandler 1 doframe animationhandler java 54 at android view choreographer callbackrecord run choreographer java 994 at android view choreographer docallback choreographer java 794 at android view choreographer doframe choreographer java 725 at android view choreographer framedisplayeventreceiver run choreographer java 981 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 237 at android app activitythread main activitythread java 7811 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 1068 this crash on android 10 and 11 mostly material library version 1 4 0 device galaxy a30 galaxy j4 galaxy a20s galaxy a01 galaxy a20 galaxy a51 galaxy a41 moto g 3rd gen moto e 7 redmi 9 power
materialcomponentsmaterialcomponentsandroid
floatingactionbutton when press mini fab have excess shadow on bottom and right side
Bug
description use floatingactionbutton mini variant have render issue when press on android 12 issue full scale expect behavior screenshot and or description of expect behavior expect pixel 3a android 11 actual pixel 5 android 12 beta 3 android pixel 3a api 30 127221029 3c98b8bf 22d5 410a a8a9 53bccee30f39 source code app fabsize mini android api version android 12 beta 3 material library version reproduce on 1 3 0 1 5 0 alpha01 device pixel 5 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
materialbutton icontint with colorstatelist do not work on api 23
Bug
description icontint with colorstatelist fail to update color in some case so far I ve see it in two scenario 1 button be enable disabled at runtime after fragment transaction 1 icontint be clear and after delay reapplie here the dynamic button be disabled but its icon use enable color tint incorrect expect behavior icon with disabled color tint correct source code testicontint zip step to reproduce scenario 1 press enable button to trigger fragment transaction scenario 2 uncomment code in mainfragment android api version 23 not reproduce on 21 25 material library version 1 4 0 1 5 0 alpha01 device nexus 5 emulator
materialcomponentsmaterialcomponentsandroid
materialdatepicker show month of constrained startdate when current month be after month of setselection date
Bug
description full description of issue here when setselection be call on the materialdatepicker builder with a date in a previous month than the current month and calendar constraint be set the calendar show the month of the startdate but the select date be what be pass into setselection image expect behavior screenshot and or description of expect behavior when launch the date picker it should be show the month of the select month as per below image source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue daterange first 2020 10 31t00 00 00 00z daterange second 2021 07 30t00 00 00 00z val validator listof datevalidatorpointforward from daterange first toepochmillisecond datevalidatorpointbackward before daterange second toepochmillisecond calendarconstraint calendarconstraint builder setstart daterange first toepochmillisecond setend daterange second toepochmillisecond setvalidator compositedatevalidator allof validator selecteddate 2021 07 30t00 00 00 00z val datepicker materialdatepicker builder datepicker setcalendarconstraint calendarconstraint build setselection selecteddate toepochmillisecond build datepicker show requireactivity supportfragmentmanager tag date picker android api version android api version here api 30 material library version material android library version you be use here e g 1 1 0 alpha07 1 4 0 device device on which the bug be encounter here android pixel 4 emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputlayout text inside textinputlayout disappear when device be rotate
Bug
description when I enter value inside the textinputlayout then try rotate the device the content be clear disappear I have try use an edittext below it and the edittext s content doesn t disappear when I rotate my device expect behavior source code xml android api version 29 material library version 1 3 0 device tecno spark 5
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout expand text use width of collapse text
Bug
description if you meet some specific condition like text size of collapse and expand text size then you get some strange behavior of expand text by design requirement we have collapse text size of 22sp and expand 28sp margin leave and right be 16dp also we have three menu icon show in toolbar and back arrow in this configuration we get that expand text be almost of the size of collapse text if you change collapse text size to something like 16sp then it look normal but with 22sp expand text be shrink image source code on my humble opinion problem cause somewhere in method calculateusingtextsize of collapsingtexthelper class image material library version 1 2 1 to 1 5 0 alpha also I make repo with this the sample of the problem thank you
materialcomponentsmaterialcomponentsandroid
materialcardview cardmaxelevation not work
Bug
description I have a recyclerview vertical layout manager with multiple card I would like to each card have the same shadow for that I set the cardelevation and cardmaxelevation with the same value but the card have different shadow card at bottom have dark shadow I try to set app cardusecompatpadding to true but do not have any effect expect behavior all the card have the same shadow source code android api version android api 30 material library version 1 3 0 alpha02 device nexus 10 screenshot 1627489510
materialcomponentsmaterialcomponentsandroid
how can I not find a functional dialogue
Bug
dialog materialalertdialogbuilder this dialog setcancelable false settitle show how can I not find a functional dialogue
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior flickering bottomsheetdialog width when expand in large screen
Bug
description relate to this commit I have bottomsheetdialogfragment after upgrade to 1 4 0 when bottomsheet expand it s look flicker from full width previous behavior in 1 3 0 to new default max width I think this be race condition issue expect behavior bottomsheet expand without flicker size source code I m use navigation component to show dialog android api version 28 material library version 1 4 0 device 10 inch chinese tablet
materialcomponentsmaterialcomponentsandroid
in 1 5 0 alpha01 the slider label text be the wrong colour
Bug
at least in a dark theme the label above the slider have a light grey background and a text colour that be a bit light not very visible revert to 1 4 0 and the text colour be again dark which be much more readable against the label background
materialcomponentsmaterialcomponentsandroid
motion get crash report when use container anim between two activity
Bug
description get crash report when use container anim between two activity startactivity a recycler view that contain several card endactivity a recycler view in which each view holder be full screen it s very similar to image everything work fine but I get some crash report as below expect behavior fatal exception java lang nullpointerexception attempt to invoke virtual method android graphic drawable drawable android graphic drawable drawable mutate on a null object reference at com google android material transition platform materialcontainertransformsharedelementcallback removewindowbackground materialcontainertransformsharedelementcallback java 304 at com google android material transition platform materialcontainertransformsharedelementcallback access 000 materialcontainertransformsharedelementcallback java 52 at com google android material transition platform materialcontainertransformsharedelementcallback 1 ontransitionstart materialcontainertransformsharedelementcallback java 243 at android transition transition start transition java 1897 at android transition transition runanimator transition java 868 at android transition transitionset runanimator transitionset java 433 at android transition transitionset runanimator transitionset java 433 at android transition transitionset runanimator transitionset java 433 at android transition transition playtransition transition java 1778 at android transition transitionmanager multilistener onpredraw transitionmanager java 306 at android view viewtreeobserver dispatchonpredraw viewtreeobserver java 944 at android view viewrootimpl performtraversal viewrootimpl java 2223 at android view viewrootimpl dotraversal viewrootimpl java 1272 at android view viewrootimpl traversalrunnable run viewrootimpl java 6408 at android view choreographer callbackrecord run choreographer java 874 at android view choreographer docallback choreographer java 686 at android view choreographer doframe choreographer java 621 at android view choreographer framedisplayeventreceiver run choreographer java 860 at android os handler handlecallback handler java 751 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 154 at android app activitythread main activitythread java 6165 at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java 888 at com android internal os zygoteinit main zygoteinit java 778 source code just refer to the sample code from this repo android api version targetapi 23 material library version material android library version 1 3 0 device device on which the bug be encounter here galaxy j7 6 0 1 moto g4 play 7 1 1
materialcomponentsmaterialcomponentsandroid
textinputedittext chnage hint gravity to top
Bug
description I have textinputedittext with minheight 250dp inside textinputedittext and have sette hint on it but intial hint be show in center vertically I want to show on start or top right side of textinputedittext android api version api 29 material library version 1 5 0 alpha01 device device on which the bug be encounter here
materialcomponentsmaterialcomponentsandroid
bottomsheet bottomsheetdialogfragment not occupy whole width on tablet
Bug
I have match parent everywhere I can version 1 4 0 screenshot 20210719 080749 geoviewer mobile debug
materialcomponentsmaterialcomponentsandroid
materialtoolbar error of subtitle alignment
Bug
issue the subtitle be align to the left if text string of the title and the subtitle be identical step 1 use materialtoolbar for toolbar 2 set both titlecentere and subtitlecentere to true 3 set both tile and subtitle to the same vale for example aaa example root cause be in the code line if textutil equal textview gettext text that result in always return the textview of the title and the subtitle be not center private void maybecentertitleview textview subtitletextview toolbarutil getsubtitletextview this public class toolbarutil nullable public static textview getsubtitletextview nonnull toolbar toolbar return gettextview toolbar toolbar getsubtitle nullable private static textview gettextview nonnull toolbar toolbar charsequence text for int I 0 I toolbar getchildcount I view child toolbar getchildat I if child instanceof textview textview textview textview child if textutil equal textview gettext text return textview return null error subtitle alignment
materialcomponentsmaterialcomponentsandroid
materialdatepicker can not get the first select value after device rotation
Bug
description with the date picker already show after the screen be rotate the first select value be not obtain after that it work normally I show a toast whenever a value be select but the toast be not show after the screen rotation when the first value be select from second selection and so on it work normally expect behavior materialdatepicker should work regardless of screen rotation source code val picker materialdatepicker builder datepicker setselection materialdatepicker todayinutcmillisecond build picker addonpositivebuttonclicklistener selectedvalue toast maketext requirecontext selectedvalue toast length short show picker show childfragmentmanager picker tostre even picker selection do not work android api version 30 material library version 1 4 0 device google pixel 3a android 11 api 30
materialcomponentsmaterialcomponentsandroid
textinputlayout screenreader can announce text hide behind bullet while in password mode
Bug
description when the textinputlayout be use endiconmode password toggle such that it be operate as a password entry field a screenreader can read the text that be suppose to be hide behind the bullet this only happen when the screenreader be navigate by word navigate normally by swiping leave or right will only announce the amount of character while the password be hide repro scenario go to talkback setting navigate to customize menus customize read control word ensure word be check go to a screen with a textinputlayout in password mode ensure the password be hide navigate by word swipe down then up in a v pattern to change which read control you re use then swipe up down to navigate by this reading mode navigate through the textinputlayout the password be read out by the screenreader while it should be hide expect behavior the screenreader should not read out the text while the password be hide password not hide 2021 07 14 14h34 29 password hide image source code standard implementation of textinputlayout with endiconmode password toggle android api version 30 material library version 1 4 0 device pixel xl on android 10 I ve also attempt repro on a couple other app just to confirm it s not specific to our implementation linkedin spotify slack all suffer from the same issue
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder alertdialog do not follow material spec
Bug
description our designer just point out that the default standard materialalertdialog create with the materialalertdialogbuilder do not follow the material specification from material io spec accord to the spec the button container should have a size of 52dp which be give but between this container and the message there should be a spce of 28dp see but this be not give this be what my desigern send I the gray area be the button container area the red area be the 28dp as you can see it overlap roughly halfy over into the button container which be again wrong accord to the material spec expect behavior I would expect that the materialalertdialog follow the material io guideline in detail in this case there be more space between the message and the button source code kotlin materialalertdialogbuilder it context settitle r string credit card list deletion dialog title setmessage it context getstre r string credit card list deletion dialog body text resolve it context setpositivebutton r string common delete null setnegativebutton r string common cancel null show nothing face android api version I discover on api 30 but I guess this doesn t matter material library version com google android material material 1 4 0 device device on which the bug be encounter here emulator pixel 3 android api level 30
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout expandedtitletextcolor be break in release 1 4 0
Bug
description I might be use the wrong approach I m try to use the new fade collapse mode via titlecollapsemode without show expand title set color to transparent via expandedtitletextcolor doesn t seem to work title be still show seem to default to the color with alpha channel to the max 00000000 default to black 00ffffff default to white expect behavior should be able to show collapsingtoolbarlayout without expand title android api version 30 material library version 1 4 0 device oneplus 8 code in fragment ctlsetlisttoolbar setexpandedtitlecolor contextcompat getcolor requirecontext r color transparent in layout try this in the topappbarcollapsingdemofragment java with the same issue
materialcomponentsmaterialcomponentsandroid
materialbutton default style contain not show
Bug
description button on bottomsheetdialogfragment do not default to contain style expect behavior screenshot 1625743809 screenshot 1625743837 source code android api version 30 material library version 1 4 0 device emulator gigaset gs110
materialcomponentsmaterialcomponentsandroid
shape can t set cutcornertreatment programmatically
Bug
description set a cut corner treatment programmatically use setallcorner cutcornertreatment doesn t do anything expect behavior I should be able to see cut corner apply to the view source code view background materialshapedrawable shapeappearancemodel builder setallcornersize 40f dp setallcorner cutcornertreatment build android api version 30 material library version 1 4 0 device pixel 3
materialcomponentsmaterialcomponentsandroid
material time picker be pm mode do not work in landscape on tablet
Bug
description be pm input mode do not work on a tablet in landscape orientation the control be not show see screenshot below expect behavior device 2021 07 06 083934 actual behavior device 2021 07 06 082554 android api version 6 0 1 material library version 1 4 0 also try 1 3 0
materialcomponentsmaterialcomponentsandroid
datepicker materialcalendargridview crash on select a date range across two month second month with 6 week
Bug
description it still crash with com google android material material 1 4 0 see 2195 update
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment apptheme still do not get apply
Bug
description I see this other issue close fix and this other one but I still can not achieve to have the apptheme apply in my bottomsheetdialogfragment expect behavior apptheme be apply correctly to my bottomsheetdialogfragment I still have to do the workaround of return inflater cloneincontext contextthemewrapper inflate r layout view my bottom sheet dialog fragment container false to make it work source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 30 material library version 1 4 0 rc01 note I think that main issue there could be that the inflater provide by the oncreateview be use the context application that doesn t have the app theme apply
materialcomponentsmaterialcomponentsandroid
materialbutton theme all textbutton use borderlessbuttonstyle
Bug
description the button theme doc theme button show that theme textbutton globally on app theme basis can be do by use borderlessbuttonstyle and specify the custom style inherit widget materialcomponent button textbutton however borderlessbuttonstyle do not apply the style attribute to all textbutton automatically textbutton do inherit attribute specify by materialbuttonstyle but not borderlessbuttonstyle this mean that the style need to be apply on each and every textbutton manually this work but be cumbersome if you need all textbutton to have the same style which isn t really require accord to the doc expect behavior apply by manually use the style on the button source code style xml layout xml android api version 30 material library version 1 4 0 rc1
materialcomponentsmaterialcomponentsandroid
textinputlayout hint label cut by the outline border when gravity be set to end
Bug
description in a textinputlayout after android gravity end be set for the textinputedittext when the text field be click and the hint label be automatically move to the outline border the position of the hint label be too right cause the right most part of it to be cut by the border this behavior happen most of the time not always as show below 1 expect behavior but when the text field be click again the hint label move to the appropriate positio n which be the expect behavior if it happen right after the first click as show below 2 source code xml android api version 28 htc u11 physical device 30 emulator material library version 1 3 0
materialcomponentsmaterialcomponentsandroid
snackbar space be show above the text
Bug
description with compilesdkversion 30 and targetsdkversion 30 the snackbar be add space above the text field this issue be observe from the library version 1 3 0 alpha02 to the late available 1 4 0 rc01 this issue be find after upgrade the compilesdkversion and targetsdkversion from 29 to 30 expect behavior the additional space above the snackbar shouldn t be add source code kotlin snackbar make drawer layout home activity resource getstre r string my skill update successful message snackbar length indefinite show no style change have be add android api version 30 material library version 1 3 0 alpha02 to the late available 1 4 0 rc01 device pixel 4xl 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 border overlap float label when round shape appearance use
Bug
description I be see that the border outline of a textinputlayout overlaps its float label the overlap issue only occur when a rounded shape appearance be use a square shape appearance do not exhibit this issue this look to be a similar issue to 2127 but this ticket be mark as fix round with overlap example square with no overlap square source code here be a sample project that show the issue android api version android r material library version 1 4 0 rc01 device pixel 4a thank you stephen
materialcomponentsmaterialcomponentsandroid
slider illegalstateexception on huawei android 9
Bug
we keep experience illegalstateexception but only on huawei device and only android 9 when use another device on same user account no crash occur current version 1 4 0 beta01 fatal exception java lang illegalstateexception value 475 0 must be equal to valuefrom 100 0 plus a multiple of stepsize 100 0 when use stepsize 100 0 at com google android material slider baseslider validatevalue baseslider java 553 at com google android material slider baseslider validateconfigurationifdirty baseslider java 587 at com google android material slider baseslider ondraw baseslider java 1521 at android view view draw view java 20483 at android view view updatedisplaylistifdirty view java 19294 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at androidx constraintlayout widget constraintlayout dispatchdraw constraintlayout java 1975 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view draw view java 20486 at android widget scrollview draw scrollview java 1790 at android view view updatedisplaylistifdirty view java 19294 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at androidx constraintlayout widget constraintlayout dispatchdraw constraintlayout java 1975 at android view view draw view java 20486 at android view view updatedisplaylistifdirty view java 19294 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at androidx coordinatorlayout widget coordinatorlayout drawchild coordinatorlayout java 1277 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view draw view java 20486 at android view view updatedisplaylistifdirty view java 19294 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view updatedisplaylistifdirty view java 19285 at android view view draw view java 20211 at android view viewgroup drawchild viewgroup java 4394 at android view viewgroup dispatchdraw viewgroup java 4170 at android view view draw view java 20486 at com android internal policy decorview draw decorview java 928 at android view view updatedisplaylistifdirty view java 19294 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 740 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 746 at android view threadedrenderer draw threadedrenderer java 861 at android view viewrootimpl draw viewrootimpl java 3586 at android view viewrootimpl performdraw viewrootimpl java 3382 at android view viewrootimpl performtraversal viewrootimpl java 2714 at android view viewrootimpl dotraversal viewrootimpl java 1636 at android view viewrootimpl traversalrunnable run viewrootimpl java 7946 at android view choreographer callbackrecord run choreographer java 1092 at android view choreographer docallback choreographer java 893 at android view choreographer doframe choreographer java 812 at android view choreographer framedisplayeventreceiver run choreographer java 1078 at android os handler handlecallback handler java 907 at android os handler dispatchmessage handler java 105 at android os looper loop looper java 216 at android app activitythread main activitythread java 7625 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 524 at com android internal os zygoteinit main zygoteinit java 987
materialcomponentsmaterialcomponentsandroid
tablayout first time tab position in 0 next select position 1 create more than one fragment
Bug
the tablayout after the init offscreenpagelimit 1 position in 0 when select position 2 will create two new fragment the true be create one fragment in position 2 not create position in 1 and 2 fragment
materialcomponentsmaterialcomponentsandroid
textinputedittext minem be not work
Bug
description textinputedittext minem be not work on 1 3 0 ver all work fine expect behavior minem must set width of textinputedittext by value source code android api version 28 29 material library version 1 4 0 rc01 device xiaomi mi11 emulator api 28 android studio layout editor also
materialcomponentsmaterialcomponentsandroid
tablayout tablayout can not be make short that it s default height
Bug
description when try to decrease the textsize in tablayout s tab their height be not get any small even though it s height have be set to wrap content expect behavior the tablayout to get small and match the size of its content image source code the issue can be observe in the viewpager2 sample app when the text size be set to be small see diff or checkout this branch android api version 30 material library version 1 4 0 rc01 also reproducible with 1 2 1 device pixel3
materialcomponentsmaterialcomponentsandroid
second textinputlayout textinputedittext be not work correctly this behaviour happen in all device
Bug
in a dialogue the second edit text do not work correctly it do not add text from keyboard expect behavior screenshot and or description of expect behavior android api version android api version here api 28 29 30 material library version material android library version you be use here e g 1 1 0 alpha07 try also in version 1 3 implementation com google android material material 1 4 0 rc01 device device on which the bug be encounter here pixel 4
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup incorrect check state when combine xml programmatically
Bug
when a materialbuttontogglegroup have set app selectionrequire true and app singleselection true in xml and you also change the check button in code at run time with check r i d newcheckedbutton on the group multiple button become select incorrectly seem like this fix be not fully work this issue do only appear in 1 4 0 rc01 in 1 3 0 behavior be normal
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottom navigation slow bottom nav menu inflation approx 200ms
Bug
description inflation of bottom navigation be take time and be hit the app startup speed approx 200ms source code android api version android 11 api 30 material library version 1 3 0 device pixel 2xl flame chart
materialcomponentsmaterialcomponentsandroid
bottomsheet bottomsheetbehavior miss state dispatch when isdraggable flag change
Bug
description bottomsheetbehavior miss state dispatch when isdraggable flag change mean isdraggable false user try to move the bottom sheet than change to isdraggable true and the bottomsheetstate listener doesn t receive the input from the user bug redirect from here use case be bottomsheetbehavior start state be collapse and isdraggable false the peekheight allow some content visible on bottom sheet api call load data bottom sheet content be update and isdraggable change to true to trigger the bug user try to move the bottom sheet whilst api call be run await fake api call to complete user drag bottom sheet code do not receive callback bug user release bottom sheet now the callback start to be receive root cause viewdraghelper and the bottomsheetbehavior have their own internal state keeping that get out of sync when isdraggable false see attach android studio project and video at the end expect behavior change on isdraggable state should not influence the dispatch of the bottom sheet state change source code bottom sheet bug zip android api version all any material library version com google android material material 1 3 0 device all any bottom sheet bug zip androidstudio project just run on any device and try to move bottom sheet while the fake api call be run user avoid bug mp4 emulator run on the expect behavior after the api call the bottomsheetbehavior state be normally dispatch this be accomplish if the user doesn t touch anything bug behavior mp4 emulator run the reproducible bug after api call the state be not properly dispatch unless the user drag the bottom sheet and release again
materialcomponentsmaterialcomponentsandroid
materialcontainertransform startview be visible over the endview container
Bug
description the startview fab in this case in the materialcontainertransform between two fragment be visible above the endview during the animation process expect behavior startview dissapear with the animation when the transition start source code entertransition materialcontainertransform apply startview requireactivity findviewbyid r i d newrecipebtn endview bind recipepager duration resource getinteger r integer motion duration large tolong scrimcolor color transparent containercolor contextcompat getcolor requirecontext r color secondarycolor startcontainercolor contextcompat getcolor requirecontext r color secondarycolor endcontainercolor contextcompat getcolor requirecontext r color colorsurface visualbugsample android api version api 30 material library version 1 3 0 device pixel 4 api 27 emulator
materialcomponentsmaterialcomponentsandroid
materialdatepicker day of week not appear correctely in arabic
Bug
description day of week not appear correctely in arabic the name of day of week be write in two line if the version of android less than android oreo capture android api version api 25 material library version com google android material material 1 4 0 rc01 device pixel 2 emulator
materialcomponentsmaterialcomponentsandroid
navigationrailview navigation rail use bottomnavigationview specific inset
Bug
description when navigationbarview be make the base class for both navigationrailview and bottomnavigationview the inset handling from bottomnavigationview in its applywindowinset l307 be move to navigationbarview however this mean that navigationrailview which be a vertically orient layout now only apply the bottom inset padding and never the top and symmetrically apply the left and right padding rather than only the left start pad expect behavior navigationrailview should have vertical orientation specific inset handling and navigationbarview s copy of applywindowinset should be move back to bottomnavigationview source code android api version all api 21 device material library version 1 4 0 beta01 and high device all 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
circularprogressindicator circularindeterminateanimatordelegate cause npe
Bug
description when update circularprogressindicator progress with animate true param there be a chance if cpi be detach from window for example on fragment detach completeendanimator will cause nullpointerexception stacktrace java java lang nullpointerexception attempt to invoke virtual method void t a0 a a b a android graphic drawable drawable on a null object reference at com google android material progressindicator circularindeterminateanimatordelegate 2 onanimationend circularindeterminateanimatordelegate java 112 at android animation animator animatorlistener onanimationend animator java 552 at android animation valueanimator endanimation valueanimator java 1232 at android animation valueanimator doanimationframe valueanimator java 1474 at android animation animationhandler doanimationframe animationhandler java 146 at android animation animationhandler access 100 animationhandler java 37 at android animation animationhandler 1 doframe animationhandler java 54 at android view choreographer callbackrecord run choreographer java 1075 at android view choreographer docallback choreographer java 889 at android view choreographer doframe choreographer java 818 at android view choreographer framedisplayeventreceiver run choreographer java 1063 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 233 at android app activitythread main activitythread java 7225 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 499 at com android internal os zygoteinit main zygoteinit java 962 it seem like the view remove the requested listener on detach from a window but the completeendanimator indeterminate animator be not cancel so it finish and try to call null ed listener expect behavior cpi do not cause exception when detach from a window source code kotlin somewhere in fragment update cpi bind circularprogresssindicator isindeterminate true then migrate cpi to determinate state with animation bind circularprogressindicator setprogresscompat value true this cause completeendanimator to start detach fragment midprogress for some reason for example dialog be no long actual this lead to unregisteranimatorscompletecallback call on circularindeterminateanimatordelegate completeendanimator call on onanimationend that lead to npe on animatorcompletecallback npe raise android api version 28 30 material library version 1 4 0 rc01 device redmin note 9 pro mi 8 lite 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 rtl issue on api low than 18
Bug
description when tabmode be scrollable tab be not scrollable to the end also there be an empty space at the start of the view empty space expect behavior you should be able to scroll tab item to the end I do not expect to have an empty space at the start of tab item source code you can use material source code and change layout direction to test it android api version 17 and 18 material library version 1 4 0 rc01 device emulator api 17 and 18
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout while collapsingtoolbarlayout be expand scroll view be not entirely visible when scroll with keyboard
Bug
description the bottom of the scroll view seem to be out of bound while collapsingtoolbarlayout be expand and user try to scroll the view with keyboard only expect behavior when user scroll the view via keyboard navigation while collapsingtoolbarlayout be expand the entire view should be make visible source code android api version 21 28 30 material library version 1 4 0 rc01 device simulator api 21 and 30 samsung s8 api 28
materialcomponentsmaterialcomponentsandroid
badgedrawable should the app s theme must to be theme materialcomponent
Bug
description I just need use the badgedrawable feature in my app what be the reason that my app s theme must to be theme materialcomponent I really confuse about this enforcement expect behavior cause by java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant at com google android material internal themeenforcement checktheme themeenforcement java 243 at com google android material internal themeenforcement checkmaterialtheme themeenforcement java 217 at com google android material badge badgedrawable badgedrawable java 427 at com google android material badge badgedrawable createfromattribute badgedrawable java 342 at com google android material badge badgedrawable create badgedrawable java 310 at com google android material navigation navigationbarmenuview getorcreatebadge navigationbarmenuview java 551 at com google android material navigation navigationbarview getorcreatebadge navigationbarview java 669 source code xml setup java setup private fun setupbadge bn com google android material bottomnavigation bottomnavigationview var menuitemid bn menu getitem 0 itemid an icon only badge will be display var badge bn getorcreatebadge menuitemid badge isvisible true app s theme android api version android compile sdk 30 android min sdk 14 android target sdk 29 material library version 1 4 0 alpha02 device google pixel 4 xl
materialcomponentsmaterialcomponentsandroid
navigationview itembackground inflate exception on api 26 27 28
Bug
description here s the relevant exception line android view inflateexception binary xml file line 45 binary xml file line 45 error inflate class com google android material navigation navigationview cause by android view inflateexception binary xml file line 45 binary xml file line 45 error inflate class com google android material navigation navigationview cause by android view inflateexception binary xml file line 45 error inflate class com google android material navigation navigationview cause by android content re resource notfoundexception drawable com app app color navigation item background color with resource i d 0x7f06010d cause by android content re resource notfoundexception file re color navigation item background color xml from drawable resource i d 0x7f06010d at android content re resourcesimpl loaddrawableforcookie resourcesimpl java 847 cause by org xmlpull v1 xmlpullparserexception binary xml file line 3 tag require a drawable attribute or child tag define a drawable expect behavior should behave as it do on api 30 source code if I remove the itembackground property it will work this same code work on api 30 android api version 26 27 28 material library version 1 4 0 rc01 device samsung and emulator
materialcomponentsmaterialcomponentsandroid
badgedrawable badgedrawable appear clip when use with a toolbar
Bug
description I ve be try to use a badgedrawable on a menuitem in our toolbar but it can t really get it to work as expect it appear as if the value get visually clip due to exceed the menu item view bound and I think it s due to the positioning of the badge be too far right number 99 too far to the right image number 300 actual visible clipping go on here image expect behavior image source code more precisely in mainactivity kt android api version test on 23 29 and 30 all of they display the badge incorrectly material library version 1 4 0 rc01 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
materialtimepicker do not respect iscancelable setcancelable
Bug
description the materialtimepicker component do not respect the iscancelable property setcancelable in the follow way the cancel button be still visible the dialog get dismiss after press cancel expect behavior it be expect that the cancel button not be visible so that cancel listener would not be call and the dialog would not be dismiss work around this bug add complexity at the implementation side source code l249 l259 android api version 8 1 0 11 material library version 1 3 0 late stable release device nexus 5x pixel 4a thank you
materialcomponentsmaterialcomponentsandroid
material card view unable to change stroke color after first time
Bug
description the material card view do not clear the previously select card view s color even after add the new stroke color in the card view after analyze a bit more the color will change only after open a keyboard layout issue screenshot gif source code private fun updatelocationselection when confirmbookingviewmodel selectedlocation locationoption online with viewdatabinde cvonline strokecolor resource getcolor r color colorgreen null tvonline settextcolor resource getcolor r color select tab color null viewdatabinde online ischecked true locationoption location with viewdatabinde cvlocation strokecolor resource getcolor r color colorgreen null tvlocationdetail settextcolor resource getcolor r color select tab color null viewdatabinding location ischecke true confirmbookingviewmodel desiredlocation online android api version 29 material library version 1 3 0 device I have test on various android device and emulator and it react the same way
materialcomponentsmaterialcomponentsandroid
materialdatepicker npe crash
Bug
the material date picker crash sometimes when preselecte a date range code to invoke the datepicker private fun launchdatepicker val now zoneddatetime now toepochsecond 1000 val selectionrange arraylist apply add datevalidatorpointforward from zoneddatetime now minusday 90 toepochsecond 1000 add datevalidatorpointbackward before now val calendarconstraint calendarconstraint builder setvalidator compositedatevalidator allof selectionrange setstart zoneddatetime now minusday 90 toepochsecond 1000 setopenat now setend now build val datepicker materialdatepicker builder daterangepicker settitletext getstre r string date range picker title setcalendarconstraint calendarconstraint setselection pair zoneddatetime now minusday 7l toepochsecond time 1000 now build datepicker addonpositivebuttonclicklistener pair pair pair let viewmodel getitemswithindaterange it first now it second now datepicker show requireactivity supportfragmentmanager date picker crash log e androidruntime fatal exception main java lang nullpointerexception attempt to invoke virtual method int android view view getleft on a null object reference at com google android material datepicker materialcalendargridview horizontalmidpoint materialcalendargridview java 242 at com google android material datepicker materialcalendargridview ondraw materialcalendargridview java 156 at android view view draw view java 23901 at android widget abslistview draw abslistview java 4988 at android view view updatedisplaylistifdirty view java 22776 at android view view draw view java 23631 at android view viewgroup drawchild viewgroup java 5336 at android view viewgroup dispatchdraw viewgroup java 5093 at android view view updatedisplaylistifdirty view java 22762 at android view view draw view java 23631 at android view viewgroup drawchild viewgroup java 5336 at androidx recyclerview widget recyclerview drawchild recyclerview java 5204 at android view viewgroup dispatchdraw viewgroup java 5093 at android view view draw view java 23904 at androidx recyclerview widget recyclerview draw recyclerview java 4603 at android view view updatedisplaylistifdirty view java 22776 at android view view draw view java 23631 at android view viewgroup drawchild viewgroup java 5336 at android view viewgroup dispatchdraw viewgroup java 5093 expect behavior not crash the date picker do show briefly but then the whole app crash something to do with the preselecte visible date range our code preselect the last 7 day up until today if I manually set the device date to june 6th instead of the current day june 7th then date picker do not crash and work fine the same go for june 8th only when the device date be june 7th today then date picker crash a quick fix would be nice since this be cause a lot of crash for user test on samsung s20 and emulator both android 11 this happen with both version 1 3 0 and 1 4 0 rc01 have not try any other version device a screenshot of how the date picker look right before the crash 2021 06 07 10h31 36
materialcomponentsmaterialcomponentsandroid
component name short description of issue getnet
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout the attribute expandedtitlemarginend do not work
Bug
when the text size in collapsedtitletextappearance and expandedtitletextappearance be same the expandedtitlemarginend seem to be ignore but if the difference between the two text size be 0 001 everything will be perfect after a rough walking through the source code the issue should be relevant to the logic isclose in collapsingtexthelper the issue still exist in 1 4 0 beta01 the source code of the collapsingtoolbarlayout in the layout xml the layout preview the attribute app expandedtitlemargin 64dp do not work
materialcomponentsmaterialcomponentsandroid
dialog can t setwindowinsetsanimationcallback to listenner the inputmethod show and hide
Bug
such as code in activity windowcompat setdecorfitssystemwindow window false viewcompat setwindowinsetsanimationcallback view windowinsetscallback it can work success but code in dialog this code can t invoke callback
materialcomponentsmaterialcomponentsandroid
rangeslider label not show proper
Bug
description I be use range slider in this label not get show properly expect behavior image source code android api version 28 material library version implementation com google android material material 1 4 0 beta01 device honor 7x
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
viewpager2 do not support direct child view
Bug
material library version 1 4 0 beta01 test on android 10 xml private val page arrayof test1fragment test2fragment test3fragment inner class testadapter fragment fragment fragmentstateadapter fragment override fun createfragment position int page position invoke override fun getitemcount page size viewpager adapter adapter this issue java lang throwable java lang illegalstateexception viewpager2 do not support direct child view at androidx viewpager2 widget viewpager2 onviewadde viewpager2 java 489 at android view viewgroup dispatchviewadde viewgroup java 5037 at android view viewgroup addviewinner viewgroup java 5209 at android view viewgroup addview viewgroup java 4984 at android view viewgroup addview viewgroup java 4924 at androidx transition transitionutil createviewbitmap transitionutil java 138 at androidx transition transitionutil copyviewimage transitionutil java 64 at androidx transition visibility ondisappear visibility java 401 at androidx transition visibility createanimator visibility java 257 at androidx transition transition createanimator transition java 747 at androidx transition transitionset createanimator transitionset java 480 at androidx transition transition playtransition transition java 1821 at androidx transition transitionmanager multilistener onpredraw transitionmanager java 301 at android view viewtreeobserver dispatchonpredraw viewtreeobserver java 1088 at android view viewrootimpl performtraversal viewrootimpl java 2784 at android view viewrootimpl dotraversal viewrootimpl java 1748 at android view viewrootimpl traversalrunnable run viewrootimpl java 7789 at android view choreographer callbackrecord run choreographer java 1041 at android view choreographer docallback choreographer java 864 at android view choreographer doframe choreographer java 798 at android view choreographer framedisplayeventreceiver run choreographer java 1026 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 214 at android app activitythread main activitythread java 7397 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 492 at com android internal os zygoteinit main zygoteinit java 935 at uk smileitsolutions atom crashactivity oncreate crashactivity kt 28 at android app activity performcreate activity java 7825 at android app activity performcreate activity java 7814 at android app instrumentation callactivityoncreate instrumentation java 1307 at android app activitythread performlaunchactivity activitythread java 3246 at android app activitythread handlelaunchactivity activitythread java 3410 at android app activitythread handlerelaunchactivityinner activitythread java 5280 at android app activitythread handlerelaunchactivity activitythread java 5188 at android app servertransaction activityrelaunchitem execute activityrelaunchitem java 69 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2017 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 214 at android app activitythread main activitythread java 7397 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 492 at com android internal os zygoteinit main zygoteinit java 935
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
java lang noclassdeffounderror fail resolution of landroidx appcompat widget appcompatedittext
Bug
05 31 11 36 35 770 11975 11975 e androidruntime cause by java lang noclassdeffounderror fail resolution of landroidx appcompat widget appcompatedittext 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat widget appcompattextviewautosizehelper supportsautosizetext appcompattextviewautosizehelper java 932 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat widget appcompattextviewautosizehelper loadfromattribute appcompattextviewautosizehelper java 205 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat widget appcompattexthelper loadfromattribute appcompattexthelper java 247 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat widget appcompattextview appcompattextview java 110 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material textview materialtextview materialtextview java 93 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material textview materialtextview materialtextview java 88 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material textview materialtextview materialtextview java 83 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material theme materialcomponentsviewinflater createtextview materialcomponentsviewinflater java 61 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 115 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1563 05 31 11 36 35 771 11975 11975 e androidruntime at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1614 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater trycreateview layoutinflater java 1061 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater createviewfromtag layoutinflater java 997 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater createviewfromtag layoutinflater java 961 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater rinflate layoutinflater java 1123 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater rinflatechildren layoutinflater java 1084 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater rinflate layoutinflater java 1126 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater inflate layoutinflater java 656 05 31 11 36 35 771 11975 11975 e androidruntime at android view layoutinflater inflate layoutinflater java 534 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material navigation navigationbaritemview navigationbaritemview java 95 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 34 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material bottomnavigation bottomnavigationmenuview createnavigationbaritemview bottomnavigationmenuview java 197 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material navigation navigationbarmenuview getnewitem navigationbarmenuview java 492 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material navigation navigationbarmenuview buildmenuview navigationbarmenuview java 421 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material navigation navigationbarpresenter updatemenuview navigationbarpresenter java 72 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material navigation navigationbarview inflatemenu navigationbarview java 358 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material navigation navigationbarview navigationbarview java 226 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 103 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 98 05 31 11 36 35 771 11975 11975 e androidruntime at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 93 05 31 11 36 35 771 11975 11975 e androidruntime 28 more appcompat version androidx appcompat appcompat 1 3 0 rc01
materialcomponentsmaterialcomponentsandroid
materialtextview text appearance doesn t seem to work as expect but style do
Bug
description so I ve define this style and then on my main theme define this when I use my style on a textview as a textappearance property the fontfamily doesn t get select accordingly image but if I change it to style it do image expect behavior it seem from the documentation that textappearance be a recommend approach for textview so would like to know if that s the case and if so why do it render differently than expect source code android api version test on android 11 material library version late material android library 1 3 0 device able to repro on samsung s20 and pixel 3 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
materialswitch check change animation don t work within recyclerview or viewpager2
Bug
description materialswitch s animation be not fire after recyclerview re attach the view expect behavior I expect animation to work consistently the same way as they be before switch the tab scroll the list source code android api version all test on 28 and 30 material library version 1 3 0 1 4 0 beta01 device android 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 do not work
materialcomponentsmaterialcomponentsandroid
textinputlayout all error be announce when use multiple input field
Bug
description when there be multiple input field on a screen and the user press the submit button which cause error text to be set and there be multiple error the screen reader announce all of the error expect behaviour the screen reader should announce only the error for the input that have focus our accessibility team have state that all error need to be set but only the one with focus should be announce then if when the user move focus to another input then it s respective error could be announce at that time only they have identify this as a high risk bug which could be very confusing to user they will not approve this component so we be not able to use it but would very much like to note this particular bug do not occur on all device source code n a android api version 30 material library version 1 2 1 device it have be observe on pixel 4a pixel 2 and samsung s9 I could not reproduce on pixel 3 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 tab key do not move focus to the clear text button
Bug
description when use an external keyboard the tab key do not move focus to the clear text button as a result our accessibility team will not approve this component for use in our app since the button be not publicly accessible we can t even manually set focus on it expect behavior the tab key on an external keyboard should move focus to the clear text button source code n a android api version 30 material library version 1 2 1 although at the time I try late version and the issue be still present 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
bottomsheetdialog edge to edge break on landscape orientation
Bug
description the padding on edge to edge bottomsheetdialog doesn t get apply correctly check out this screenshot from material catalog with cat bottomsheet content background color for exaggeration expect behavior the bottom sheet should look like this which I get by some change as follow index lib java com google android material bottomsheet bottomsheetbehavior java idea additional info subsystem com intellij openapi diff impl patch charsetep utf 8 lib java com google android material bottomsheet bottomsheetbehavior java revision 65e99d02eef9ab81b0baaed8498b35703b46c34a lib java com google android material bottomsheet bottomsheetbehavior java date 1622046225526 1394 7 1394 9 rightpadding inset getsystemwindowinsetright view setpadde leftpadde view getpaddingtop rightpadding bottompadde viewgroup parent viewgroup view getparent parent setpadde leftpadde parent getpaddingtop rightpadding parent getpaddingbottom view setpadde view getpaddingleft view getpaddingtop view getpaddingright bottompadde if shouldhandlegestureinset gestureinsetbottom inset getmandatorysystemgestureinset bottom source code bottomsheetmaindemofragment android api version 29 material library version snapshot 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
materialtimepicker attr colorsurface attribute to be set in your app theme
Bug
java lang illegalargumentexception com google android material timepicker materialtimepicker require a value for the xxx attr colorsurface attribute to be set in your app theme you can either set the attribute in your theme or update your theme to inherit from theme materialcomponent or a descendant implementation com google android material material 1 3 0 this error always occur no matter what style be select and even if you write this attribute with your hand everywhere this error still occur
materialcomponentsmaterialcomponentsandroid
textinputlayout end icon not center and error icon change height
Bug
description I have an input field use filledbox style and a custom shapeappearanceoverlay which be just round corner I remove the hint with the follow attribute in style the edittext layout height be much big then it should be when it have an end icon enable normal state be 57 dp and with end icon its 60 dp and as you can see the end icon be not center in the layout textinput 1 when I set an error this become much more big textinput 2 expect behavior the end icon should be center size of the edit text should not change style android api version its affect all android version the screenshot be from the layout inspector from an api 29 android one device material library version 1 3 0 device device on which the bug be encounter here nokia 7 1