repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
tablayout error inflate class com google android material tab tablayout
Bug
description get this error expect behavior view be inflate source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue xml android api version 29 material library version 1 2 0 device android emulator pixel2 xl also apptheme be
materialcomponentsmaterialcomponentsandroid
chipgroup issingleselection do not take into account chip s set to check programmatically
Bug
description for chipgroup of type choice when set a chip to check programmatically use setchecke true be not take into account when apply the restriction for the flag singleselection 1 do chipgroup setsingleselection true 2 do chip1 setchecke true 3 click on chip2 4 chip 1 and chip 2 be select 5 no setoncheckedchangelistener be send for chip1 for get deselecte expect behavior chipgroup with singleselection should remain single selection and call the listener accordingly source code kotlin group issingleselection true group isselectionrequire true private fun addchip val chip1 chip context chip1 text text1 chip1 ischecke true chip1 setoncheckedchangelistener view ischecke log wtf test457 ischecke addview chip1 val chip2 chip context chip2 text text2 chip2 setoncheckedchangelistener view ischecke log wtf test457 ischecke addview chip2 android api version minsdkversion 23 targetsdkversion 29 compilesdkversion 29 material library version 1 2 0 device x86 emulator run sdk 30
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog android colorbackground stop work with version 1 2 0
Bug
description start with version 1 2 0 the android colorbackground attribute be ignore and the bottom sheet dialog always have a white background set expect behavior android colorbackground should set the background color of the sheet as with version 1 1 0 source code xml android api version 29 material library version 1 2 0 device google pixel
materialcomponentsmaterialcomponentsandroid
materialcontainertransform manually specify sharedelementreturntransition cause flicker
Bug
I have a fragment from which I be launch an activity with a materialcontainertransform transition when navigate to this activity the transition work as expect upon return to the fragment and have the transition play out in reverse I run into the same bug as describe below where the background during the return transition be that of the activity instead of the fragment I apply the workaround describe in the same issue and the background be now that of the fragment only one issue remain however after the return transition have trigger and be at the point where the bound match that of the origin recyclerview item the view visibly flicker before dissappeare flicker this be how I m set the enter and return transition val materialtransform materialcontainertransform apply addtarget android r i d content duration 450 pathmotion materialarcmotion val returntransformation materialcontainertransform apply addtarget android r i d content fademode materialcontainertransform fade mode cross duration 450 window sharedelementreturntransition returntransformation window sharedelemententertransition materialtransform expect behavior when the return transition be about to finish I expect it to seamlessly disappear without flicker android api version api 29 device oneplus 6 t material library version com google android material material 1 3 0 alpha02
materialcomponentsmaterialcomponentsandroid
textinputlayout android talkback incorrect announcement on textinputlayout
Bug
description talkback announce password twice if we set android hint inside textinputlayout to password expect behavior screenshot and or description of expect behavior while navigate to textinputlayout talkback announce password password edit box desire announcement password edit box 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 late 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
navigatonview bottom scrim be always display when set android theme
Bug
description navigationview have logic to determine whether to display the insetforeground scrim in the bottom system window inset this logic do not apply when android theme be set for the view as it be check that the view s context be an instance of activity and set a theme on the view replace the context with a contextthemewrapper expect behavior when set android theme on a navigationview with a non transparent navigationbarcolor apply to the window the view should not draw insetforeground in the bottom system window inset area source code from navigationview java in setupinsetscrimslistener java context context getcontext if context instanceof activity version sdk int version code lollipop boolean isbehindsystemnav activity context findviewbyid android r i d content getheight getheight boolean hasnonzeroalpha color alpha activity context getwindow getnavigationbarcolor 0 setdrawbottominsetforeground isbehindsystemnav hasnonzeroalpha if the context be actually a contextthemewrapper or contextwrapper instance the logic be not perform and the view will draw the bottom inset foreground by default android api version 29 material library version 1 2 0 device pixel 2 xl
materialcomponentsmaterialcomponentsandroid
textinputlayout bottom line no long respect error color
Bug
description as of version 1 2 0 the textinputlayout do not update the color of the bottom line under the text when set seterrortextcolor dynamically version 1 1 0 be do this properly also the color of the float hint text isn t get update when seterrortextcolor be call but instead get update only on the next keystroke android api version api 29 material library version 1 2 0
materialcomponentsmaterialcomponentsandroid
textinputlayout endiconview and erroriconview have same i d
Bug
description I want to do some customization on the end and start icon button of text input layout I use id text input start icon and text input end icon for find those button everything be work well on the start icon but the end wasn t change at all after debug and read the source code for a while I find that erroriconview have the same i d and all of my customization be apply to that because findviewbyid return the first view it found expect behavior erroriconview should have another distinct i d for example text input error icon material library version 1 2 0 this can be easily solve by define a new i d and set endiconview i d after its inflation
materialcomponentsmaterialcomponentsandroid
materialcardview cardbackgroundcolor val can not be reassign
Bug
when I try to change cardbackgroundcolor programmatically cardview cardbackgroundcolor I get warn from android studio tell I that val can not be reassign be this some kind of bug android api version 30 material library version material 1 3 0 alpha02 device pixel 3a api 29
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
floatingactionbutton behavior change in 1 2 0 different behavior and strange animation when toggle isenable attribute
Bug
description after bump library version the floatingactionbutton change behavior when set isenable false in 1 2 0 it a lose background color b show strange octogonal shape image expect behavior behavior doesn t change after library update or at least it be clearly metione in the release note 1 1 0 1 2 0 1 1 0 1 2 0 source code just downgrade the library version to 1 1 0 android api version 29 material library version 1 2 0 device multiple
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior crash during apply window inset
Bug
description we get the crash on app launch seem that it s incompatible version of bottomsheetbehaviort that be from material component and windowinsetscompat that be from androidx the crash start to be reproduce from the material component library 1 2 0 on any android 10 device on version 1 1 0 it wasn t please help we to fix this issue or send we to right solution with correct library configuration thank you java lang nosuchmethoderror no virtual method getmandatorysystemgestureinset landroidx core graphic inset in class landroidx core view windowinsetscompat or its super class declaration of androidx core view windowinsetscompat appear in data app ms6zatdejkyw5ygqx389kq com mapswithme map pro debug 8h1lpmhurxdkdeyffuxcaq base apk at com google android material bottomsheet bottomsheetbehavior 3 onapplywindowinset bottomsheetbehavior java 1260 at com google android material internal viewutil 3 onapplywindowinset viewutil java 227 at androidx core view viewcompat 1 onapplywindowinset viewcompat java 2431 at android view view dispatchapplywindowinset view java 11299 at android view viewgroup dispatchapplywindowinset viewgroup java 7247 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7261 at android view viewgroup dispatchapplywindowinset viewgroup java 7252 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7261 at android view viewgroup dispatchapplywindowinset viewgroup java 7252 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7261 at android view viewgroup dispatchapplywindowinset viewgroup java 7252 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7261 at android view viewgroup dispatchapplywindowinset viewgroup java 7252 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7261 at android view viewgroup dispatchapplywindowinset viewgroup java 7252 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7261 at android view viewgroup dispatchapplywindowinset viewgroup java 7252 at android view viewrootimpl dispatchapplyinset viewrootimpl java 2265 at android view viewrootimpl performtraversal viewrootimpl java 2502 at android view viewrootimpl dotraversal viewrootimpl java 1934 at android view viewrootimpl traversalrunnable run viewrootimpl java 8127 at android view choreographer callbackrecord run choreographer java 972 at android view choreographer docallback choreographer java 796 at android view choreographer doframe choreographer java 731 at android view choreographer framedisplayeventreceiver run choreographer java 957 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 223 at android app activitythread main activitythread java 7523 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 941 p s dsn5 ft probably you know what be the problem with our configuration I see that you recently touch that code in material component thank look forward source code android api version 10 material library version 1 2 0 device emulator pixel 3 api 30 huawei p20 huawei p30
materialcomponentsmaterialcomponentsandroid
warn lint find an issue registry which do not specify the lint api version it be compile with
Bug
description after upgrade from 1 1 0 to 1 2 0 I receive this lint warning task app lintdebug user westy92 gradle cache transform 2 file 2 1 374e2f90329bb1eac35cc77543028c25 jetified annotation experimental 1 0 0 jar lint jar warn lint find an issue registry androidx annotation experimental lint experimentalissueregistry which do not specify the lint api version it be compile with this mean that the lint check be likely not compatible if you be the author of this lint check make your lint issueregistry class contain override val api int com android tool lint detector api current api or from java override public int getapi return com android tool lint detector api apikt current api if you be just use lint check from a third party library you have no control over you can disable these lint check if they misbehave like this android lintoption disable unsafeexperimentalusageerror unsafeexperimentalusagewarne obsoletelintcustomcheck explanation for issue of type obsoletelintcustomcheck lint can be extend with custom check additional check implement by developer and library to for example enforce specific api usage require by a library or a company code style guideline the lint apis be not yet stable so these check may either cause a performance degradation or stop work or provide wrong result this warn flag custom lint check that be find to be use obsolete apis and will need to be update to run in the current lint environment it may also flag issue find to be use a new version of the api mean that you need to use a new version of lint or android studio or gradle plugin etc to work with these check expect behavior no lint issue source code n a android api version 29 material library version 1 2 0 device n a
materialcomponentsmaterialcomponentsandroid
material toolbar menu text cooler not change
Bug
problem the menu doesn t consist of any icon the text color expect to be white colour but it appear as black expect result I want the menu text colour in white resource theme xml 78909c 4b636e 7cb342 4b830d color white 50 color white 50 color red 600 color white 50 color black 900 color black 900 color black 900 color white 50 style widget mytheme toolbar style xml activity setting xml menu setting xml workaround
materialcomponentsmaterialcomponentsandroid
materialcardview set shapeappearancemodel override default behavior
Bug
description I have material card view that have all four edge round what I want be to change this on click so I can expand other view below it by remove round of two bottom edge child view start overlap card view be there any way to solve this expect behavior ideally child view should still fit material card view source code holder view questioncardview shapeappearancemodel holder view questioncardview shapeappearancemodel tobuilder setallcorner cornerfamily round radius setbottomrightcornersize floatingzero setbottomleftcornersize floatingzero build layout android api version android api version here material library version 1 2 0 device happen on all device image
materialcomponentsmaterialcomponentsandroid
theme coloraccent not work anymore
Bug
description since com google android material material 1 2 0 the coloraccent attribute in the apptheme style do not work anymore with eab254 give a purple color on button in alertdialog s this be not the case for com google android material material 1 1 0 and hasn t be fix in 1 3 0 alpha02 the orange color be still use on checkboxe slider etc expect behavior button should be in orange as style android api version several but at least android 9 material library version 1 2 0 device samsung tab s3 but present on more areyousure
materialcomponentsmaterialcomponentsandroid
materialdatepicker ok button be not visible
Bug
this bug appear only on the specific device the ok button be not visible current behavior huawei p30 61597040133 expect behavior pixel 3 71597040166 source code val datepicker materialdatepicker builder datepicker setcalendarconstraint calendarconstraint builder setend date time build build datepicker addonpositivebuttonclicklistener newdateinmillis do something datepicker shownow supportfragmentmanager datepicker android api version 29 material library version 1 1 0 device huawei p30
materialcomponentsmaterialcomponentsandroid
materialcontainertransform add a transition listener may bug the return transition screen transitioning away be the background instead of previous screen
Bug
description encounter an unusual issue have two fragment main and detail main will have a recycler view the materialcontainertransform be configure as follow main when tap on a recycler view row the row s root view have the share transition name detail the root view of this fragment have the share transition name a listener be add when tap on a row in main the transition main detail work as expect the tap on row appear to expand into detail press back and observe detail main return detail will shrink back into a recycler view row however the background be still detail instead of main navigation be handle by the navigation component I notice this issue some time ago I believe the last version that seem to work be com google android material material 1 2 0 alpha06 expect behavior as detail shrink back into the recycler view row of the previous screen main the background should be main source code android api version api 29 device pixel 2 emulator also work material library version com google android material material 1 3 0 alpha02
materialcomponentsmaterialcomponentsandroid
expose dropdown menu scroll always to top instead of select item
Bug
description I ve implement an expose dropdown menu follow the material doc material io and this expose dropdown menu everything be work fine but every time I want to select another item that be at the end of the list I have to scroll down again and again that s not the normal behavior of the spinner widget be that possible expect behavior vertical scroll should be set to the select item this can improve accessibility when the list contain a lot of element img source code xml kt val adapterprov spinnerubigeoadapter requirecontext onitemselecte viewmodel onselectprovincia it bind dropdownprovince edittext as autocompletetextview setadapter adapterprov bind spinnerprovince adapter adapterdep android api version 29 material library version 1 2 0 device emulator or real device
materialcomponentsmaterialcomponentsandroid
appbarlayout set background colour
Bug
description it seem background colour in appbarlayout be not work as expect in night mode at least not accord to the documentation there be a slight tint add to the background colour this behaviour be not visible if only toolbar or collapsingtoolbarlayout be use since appbarlayout be a linear layout add another invisible component can verify the issue for instance I ve add a progressindicator inside the appbarlayout the screenshot below be take after the component be hide ie invisible screenshot app manager 0 expect behaviour the background colour of the invisible component should be the same as colorprimary with widget materialcomponent appbarlayout primary or colorsurface with widget materialcomponent appbarlayout surface as display in the screenshot below screenshot app manager 1 workaround disable background tint solve the issue an example be give below xml android api version 29 material library version 1 3 0 alpha02
materialcomponentsmaterialcomponentsandroid
materialcardview set isclickable to false clear active ripple
Bug
description when set isclickable to false while a ripple animation be run the ripple be immediately remove expect behavior the ripple animation should complete this would match button s behavior source code if you click the button you can see that the ripple animation complete and far click don t trigger more ripple if you click the card the ripple animation aply for a few frame then dissapear far click don t trigger more ripple as expect activity main xml xml activity kotlin class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main findviewbyid r i d button setonclicklistener it isclickable false findviewbyid r i d card setonclicklistener it isclickable false android api version 29 material library version 1 2 0 and 1 3 0 alpha02 device api 29 emulator
materialcomponentsmaterialcomponentsandroid
android enabler8 fullmode true be not happy with 1 2 0
Bug
android studio 4 0 1 buildtoolsversion 29 0 3 change implementation com google android material material 1 2 0 beta01 to implementation com google android material material 1 2 0 then I get the well know dex error below make no sense my project be quite small where do all these method come from task app mergedexinternal debug fail agpbi kind error text can not fit request class in a single dex file method 65541 65536 source tool d8 com android builder dexing dexarchivemergerexception error while merge dex archive the number of method reference in a dex file can not exceed 64k learn how to resolve this issue at at com android builder dexing d8dexarchivemerger getexceptiontorethrow d8dexarchivemerger java 132 at com android builder dexe d8dexarchivemerger mergedexarchive d8dexarchivemerger java 119 at com android build gradle internal transform dexmergertransformcallable call dexmergertransformcallable java 102 at com android build gradle internal task dexmergingtaskrunnable run dexmergingtask kt 441 at com android build gradle internal task worker actionfacade run worker kt 242 at org gradle worker internal adapterworkaction execute adapterworkaction java 50 at org gradle worker internal defaultworkerserver execute defaultworkerserver java 50 at org gradle worker internal noisolationworkerfactory 1 1 create noisolationworkerfactory java 63 at org gradle worker internal noisolationworkerfactory 1 1 create noisolationworkerfactory java 59 at org gradle internal classloader classloaderutil executeinclassloader classloaderutil java 98 can not fit request class in a single dex file method 65541 65536 at org gradle worker internal noisolationworkerfactory 1 lambda execute 0 noisolationworkerfactory java 59 at org gradle worker internal abstractworker 1 call abstractworker java 44 at org gradle worker internal abstractworker 1 call abstractworker java 41 at org gradle internal operation defaultbuildoperationexecutor callablebuildoperationworker execute defaultbuildoperationexecutor java 416 at org gradle internal operation defaultbuildoperationexecutor callablebuildoperationworker execute defaultbuildoperationexecutor java 406 at org gradle internal operation defaultbuildoperationexecutor 1 execute defaultbuildoperationexecutor java 165 at org gradle internal operation defaultbuildoperationexecutor execute defaultbuildoperationexecutor java 250 at org gradle internal operation defaultbuildoperationexecutor execute defaultbuildoperationexecutor java 158 at org gradle internal operation defaultbuildoperationexecutor call defaultbuildoperationexecutor java 102 at org gradle internal operation delegatingbuildoperationexecutor call delegatingbuildoperationexecutor java 36 at org gradle worker internal abstractworker executewrappedinbuildoperation abstractworker java 41 at org gradle worker internal noisolationworkerfactory 1 execute noisolationworkerfactory java 53 at org gradle worker internal defaultworkerexecutor lambda submitwork 2 defaultworkerexecutor java 200 at java util concurrent futuretask run futuretask java 266 at org gradle internal work defaultconditionalexecutionqueue executionrunner runexecution defaultconditionalexecutionqueue java 215 at org gradle internal work defaultconditionalexecutionqueue executionrunner runbatch defaultconditionalexecutionqueue java 164 at org gradle internal work defaultconditionalexecutionqueue executionrunner run defaultconditionalexecutionqueue java 131 at java util concurrent executors runnableadapter call executor java 511 at java util concurrent futuretask run futuretask java 266 at org gradle internal concurrent executorpolicy catchandrecordfailure onexecute executorpolicy java 64 at org gradle internal concurrent managedexecutorimpl 1 run managedexecutorimpl java 48 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1149 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 624 at org gradle internal concurrent threadfactoryimpl managedthreadrunnable run threadfactoryimpl java 56 at java lang thread run thread java 748 cause by com android tool r8 compilationfailedexception compilation fail to complete at com android tool r8 util w a 87 at com android tool r8 d8 run 11 at com android builder dexe d8dexarchivemerger mergedexarchive d8dexarchivemerger java 117 33 more cause by com android tool r8 util b error null can not fit request class in a single dex file method 65541 65536 at version fakestackentry version 2 0 88 java 0 at com android tool r8 util o0 a 21 cause by com android tool r8 compilationfailedexception compilation fail to complete at com android tool r8 dex p a 56 at com android tool r8 dex p h a 7 at com android tool r8 dex b a 15 at com android tool r8 dex b b 24 at com android tool r8 d8 d 92 at com android tool r8 d8 b 1 cause by com android tool r8 util b error null can not fit request class in a single dex file method 65541 65536 at com android tool r8 util w a 30 35 more
materialcomponentsmaterialcomponentsandroid
materialtextview typeface normal do not work
Bug
description textview settypeface textview gettypeface typeface normal do not work if textview previously have android textstyle set to bold in xml expect behavior textview should revert from bold style to normal style after a call to textview settypeface textview gettypeface typeface normal source code simple layout xml mainactivity java override protect void oncreate bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout simple layout materialtextview textview findviewbyid r i d text view textview settypeface textview gettypeface typeface normal android api version 29 material library version material android library version 1 2 0 device xiaomi redmi note 8 ginkgo
materialcomponentsmaterialcomponentsandroid
bottomappbar fab be display incorrectly
Bug
description fab be display incorrectly after library update expect behavior screenshot be attach source code android api version from sdk21 to sdk29 material library version late 1 2 0 device test on mi 6x wayne mi a2 jasmine sprout samsung galaxy tab s 8 4 klimtlte also test on android emu image image screenshot 20200808 133726
materialcomponentsmaterialcomponentsandroid
textinputedittext wrap when use materialsharedaxis transition
Bug
description I have a fragment with two textinputedittext and other field everything be work fine until I add materialsharedaxis transition the textinputedittext width be reduce and it do not change until I click the field expect behavior textinputedittext should return to their original size when the transition finish image source code xml kt fragment a override fun oncreate savedinstancestate bundle super oncreate savedinstancestate entertransition materialsharedaxis materialsharedaxis z true returntransition materialsharedaxis materialsharedaxis z false reentertransition materialsharedaxis materialsharedaxis z false exittransition materialsharedaxis materialsharedaxis z true fragment b override fun oncreate savedinstancestate bundle super oncreate savedinstancestate entertransition materialsharedaxis materialsharedaxis z true returntransition materialsharedaxis materialsharedaxis z false android api version minsdkversion 21 targetsdkversion29 material library version 1 2 0 device emulator or real device img
materialcomponentsmaterialcomponentsandroid
rangeslider slider invalid validation of step size
Bug
description the validation of slider value be incorrect and thus some valid value be not allow expect behavior I m try to set up a slider with the range 0 1 10 0 and a step of 0 1 should be valid but the slider throw an exception java lang illegalstateexception the stepsize 0 1 must be 0 or a factor of the valuefrom 0 1 valueto 10 0 range at com google android material slider baseslider validatestepsize baseslider java 456 at com google android material slider baseslider validateconfigurationifdirty baseslider java 490 at com google android material slider baseslider calculatetickscoordinate baseslider java 1268 at com google android material slider baseslider onsizechange baseslider java 1261 source code kotlin val slider slider slider valuefrom 0 1f slider valueto 10f slider stepsize 0 1f android api version android 10 api 29 material library version 1 2 0 device google pixel 4xl
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder title textsize can not be great then 50sp
Bug
description I m implement custom theme for materialalertdialogbuilder as describe here theme dialog set font size of the title above 50sp reset it s back to default value title expect behavior textsize should allow value above 50sp source code sample app myapplication zip android api version any test on api 29 material library version com google android material material 1 2 0 same problem occur with appcompat from support v7 library device emulator
materialcomponentsmaterialcomponentsandroid
slider padding doesn t work
Bug
the padding do not work which be why the thumb be not nicely draw in extreme position on a white background 1 2 3 android 10 1 3 0 alpha02 oneplus 7 android emulator
materialcomponentsmaterialcomponentsandroid
rangeslider theming of valuelabel apply only to unselected label
Bug
description after theme a label use the follow attribute in style xml I see only the currently unselected item of the range be style properly sliderbug expect behavior both value label be have the same style black with white text source code see above android api version 28 material library version 1 2 0 device samsung galaxy s10
materialcomponentsmaterialcomponentsandroid
bottomnavigationview long press multiple time on same bottom menu item crash on api 24
Bug
description long press multiple time on same bottom menu item crash and reboot the phone on api 24 check on android version 7 0 emulator with google play it also happen on moto c plus same 7 0 version expect behavior should show tooltip irrespective of how many time long press happen issue bottom navigation view crash source code bottom navigation view issue zip crash log beginning of crash a libc fatal signal 6 sigabrt code 6 in tid 24876 surfaceflinger a debug a debug build fingerprint google sdk google phone x86 generic x86 7 0 nyc 4409132 user release key a debug revision 0 a debug abi x86 a debug pid 24876 tid 24876 name surfaceflinger system bin surfaceflinger a debug signal 6 sigabrt code 6 si tkill fault addr a debug eax 00000000 ebx 0000612c ecx 0000612c edx 00000006 a debug esi b417058c edi b4170534 a debug xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b a debug eip b409d424 ebp bf8ab6c8 esp bf8ab66c flag 00000292 a debug backtrace a debug 00 pc ffffe424 vdso b409d000 kernel vsyscall 16 a debug 01 pc 0007a00c system lib libc so tgkill 28 a debug 02 pc 00075855 system lib libc so pthread kill 85 a debug 03 pc 0002782a system lib libc so raise 42 a debug 04 pc 0001ee06 system lib libc so abort 86 a debug 05 pc 000097fa system lib libui so zn7android4rect8offsetbyeii 74 a debug 06 pc 0000ae5c system lib libui so zn7android6region9translateers0 ii 124 a debug 07 pc 0000b5d4 system lib libui so znk7android6region9translateeii 132 a debug 08 pc 0002bb25 system lib libsurfaceflinger so a debug 09 pc 00026716 system lib libsurfaceflinger so a debug 10 pc 0003d34e system lib libsurfaceflinger so a debug 11 pc 0003cc03 system lib libsurfaceflinger so a debug 12 pc 0003cb10 system lib libsurfaceflinger so a debug 13 pc 00028d35 system lib libsurfaceflinger so a debug 14 pc 0001922b system lib libutil so zn7android6looper9pollinnerei 1003 a debug 15 pc 00018d74 system lib libutil so zn7android6looper8pollonceeipis1 ppv 68 a debug 16 pc 0002913b system lib libsurfaceflinger so a debug 17 pc 0003c3e7 system lib libsurfaceflinger so zn7android14surfaceflinger3runev 39 a debug 18 pc 00000f81 system bin surfaceflinger a debug 19 pc 000152fc system lib libc so libc init 108 a debug 20 pc 00000c5c system bin surfaceflinger w nativecrashlistener couldn t find processrecord for pid 24876 attach full log from logcat when the issue happen here android api version 24 material library version 1 2 0 happen on old version too device emulator with google play android version 7 0
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout scroll exituntilcollapse make recyclerview not scrollable to bottom after view recreation
Bug
description in 1st fragment I have a collapsingtoolbarlayout with pin toolbar for collapsingtoolbarlayout I have set layout scrollflag to be scroll exituntilcollapse since I want toolbar to stay pin when I scroll down so that collapsingtoolbarlayout get collapse then click on any item inside recyclerview to navigate to next screen and then come back to 1st screen after click on back button I can t see nor scroll to last item I can scroll to the very bottom if I first scroll to top and make collapsingtoolbarlayout expand it look like collapsingtoolbarlayout eat from bottom of recyclerview a vertical space equal to height of toolbar but if I remove exituntilcollapse from layout scrollflag and use other flag the problem be go but toolbar get collapse 20200805 153417 expect behavior recyclerview should be able to scroll until very bottom source code I create a test project where you can see the problem android api version I test on android api 29 material library version I have try material library version 1 1 0 and 1 2 0 and late 1 3 0 alpha02 the problem look to be present on all of these version device samsung galaxy a10 oneplus 5 t pixel 3 emulator
materialcomponentsmaterialcomponentsandroid
exposeddropdownmenu inputtype none remove padding below lollipop
Bug
description set inputtype none in an autocompletetextview inside an exposeddropdownmenu remove the whole padding of the input layout vertically and horizontally below android 5 0 expect behavior the padding of the input layout should be preserve as it happen when inputtype text source code android api version test on apis 16 to 19 where the problem happen test on apis 21 to 29 where the problem doesn t happen material library version com google android material material 1 2 0 device android studio emulator question be there a workaround for this issue
materialcomponentsmaterialcomponentsandroid
strange behavior of textinputlayout with endiconmode clear text
Bug
description I discover strange behavior of textinputlayout with endiconmode clear text on samsung s6 text be not remove but be hide I attach link to video source code android api version android 7 0 api 24 material library version 1 3 0 alpha01 device samsung s6
materialcomponentsmaterialcomponentsandroid
textview crash when use custom style
Bug
description I be face a crash at textview after update my material android library to version 1 2 0 from 1 1 0 error code error inflate class textview cause by java lang illegalargumentexception font path null style fontstyle weight 400 slant 0 ttcindex 0 axis localelist buffer java nio directbytebuffer pos 0 lim 433584 cap 433584 have already be add source code this be my textview element and this be my customtextparagraph style this be my theme parent
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment since ver 1 2 0 different dismiss behavior
Bug
description since version 1 2 0 and above the dismiss gesture detection be work differently then in 1 1 0 where I could easily dismiss the dialog in version 1 1 0 I can not do it since version 1 2 0 first I think about the new attribute gestureinsetbottomignore but that seem to have nothing to do with it in version 1 2 0 the callback close the dialog seem to depend on a certain length of the dismiss swipe down gesture difficult to describe good take a look at the video below expect behavior dismiss gesture be work like in the version 1 1 0 video version 1 1 0 video version 1 2 0 video demo zip source code you must do nothing no special theme or other setting this simple thing be already work differently between the two version just normal dialog no special theme class bottomsheett bottomsheetdialogfragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view inflater inflate r layout fragment test container false default show bottomsheett show supportfragmentmanager tag android api version android 10 material library version 1 1 0 and 1 2 0 device pixel 3a
materialcomponentsmaterialcomponentsandroid
shapeableimageview doesn t have elevation overlay with night mode
Bug
description when use shapeableimageview with night mode set to mode night yes it should add an overlay as it s show in this video froom material io expect behavior view should add elevationoverlay source code demo sample android api version 29 material library version 1 2 0 rc01 device emulator any
materialcomponentsmaterialcomponentsandroid
shapeableimageview cut shape doesn t have elevation
Bug
description when use shapeableimageview with shapeappearance cornerfamily set to cut it not have any shadow when use elevation expect behavior any shape corner family should have elevation source code demo sample android api version 29 material library version 1 2 0 rc01 device emulator any
materialcomponentsmaterialcomponentsandroid
material component fail automatic namespaced resource due to malformed public txt
Bug
description when enable namespace resource in agp 4 1 material component cause the build to fail fail to transform material 1 2 0 beta01 aar com google android material material 1 2 0 beta01 to match attribute artifacttype android symbol with package name org gradle category library org gradle libraryelement jar org gradle status release org gradle usage java api execution fail for autonamespacetransform user zsweer gradle cache transform 2 file 2 1 bc56df301aa7a093beed88eff5a85463 com google android material fail to auto namespace com google android material this appear to be because it ship with a public txt file in the aar with reference type which be not a valid resourcetype I believe this be come from attrs xml file reference popupmenubackground reference value these come from here l20 l67 which eventually lead to this exception in agp cause by java io ioexception invalid resource type reference at com android ide common symbol symbolio readpublictxtline symbolio java 677 at com android ide common symbol symbolio access 600 symbolio java 106 at com android ide common symbol symbolio readconfiguration 6 parseline symbolio java 789 at com android ide common symbol symbolio symbollineread readline symbolio java 402 115 more expect behavior the library should ship valid a valid public txt in its aar source code try to use material component in a project with namespaced resource available agp will fail when it run its auto namespace transform android api version n a build time material library version all of they and on master currently device n a
materialcomponentsmaterialcomponentsandroid
baseslider halo position be not update when value be change
Bug
when the slider be initialize e g valuefrom 0f valueto 100f stepsize valueto valuefrom 20 value listof newvalue and be update to valuefrom 0f valueto 1000f stepsize valueto valuefrom 20 value listof newvalue the halo position be not update but remain on the last value position material library version 1 3 0 alpha02 slider halo position wrong
materialcomponentsmaterialcomponentsandroid
appbar the height of child view may be wrong
Bug
how to reproduce this issue 1 open catalog app 2 scroll to the bottom of the toc page 3 click one demo entry to enter it 4 press back to go back to the toc page 5 now you can see some part of the ui be not be display at the bottom it s cause by the incorrect height of recyclerview description 1 when view measure pass happen headerscrollingviewbehavior onmeasurechild will be call to measure recyclerview eg the height of recyclerview 2 the height of recyclerview be compute from the result of scrollingviewbehavior getscrollrange appbarlayout gettotalscrollrange collapsingtoolbarlayout getminimumheight 3 when in measure pass the minimumheight of collapsingtoolbarlayout will always be 0 4 only when in layout pass collapsingtoolbarlayout onlayout will compute and set the minimumheight for itself 5 we need one more measure layout pass to correct the height of recylcerview 6 when the app be open the first time indeed there be one more measure layout pass but in the prevous reproduce case there be no one more measure layout pass and then the issue reproduce
materialcomponentsmaterialcomponentsandroid
catalog the viewpager s fragment in tabscontrollabledemofragment may not be show
Bug
when the second open of tabscontrollabledemofragment the fragment in the viewpager may not be show see the attach image for bad case and normal case this issue be cause by the wrong use of fragmentmanager we should use the child fragmentmanager in fragment image image
materialcomponentsmaterialcomponentsandroid
catalog crash will happen in menumaindemofragment when activity recreate happen
Bug
when activity recreate happen such as screen rotate click show popup in menumaindemofragment will cause the app to crash the field menumaindemofragment popupitemlayout will not be initialize in this case 07 31 18 21 55 763 4617 4617 e androidruntime process io material catalog pid 4617 07 31 18 21 55 763 4617 4617 e androidruntime android content re resource notfoundexception resource i d 0x0 07 31 18 21 55 763 4617 4617 e androidruntime at android content re resourcesimpl getvalue resourcesimpl java 209 07 31 18 21 55 763 4617 4617 e androidruntime at android content re miuiresourcesimpl getvalue miuiresourcesimpl java 94 07 31 18 21 55 763 4617 4617 e androidruntime at android content re resource loadxmlresourceparser resource java 2159 07 31 18 21 55 763 4617 4617 e androidruntime at android content re resource getlayout resource java 1156 07 31 18 21 55 763 4617 4617 e androidruntime at android view layoutinflater inflate layoutinflater java 425 07 31 18 21 55 763 4617 4617 e androidruntime at android widget arrayadapter createviewfromresource arrayadapter java 416 07 31 18 21 55 763 4617 4617 e androidruntime at android widget arrayadapter getview arrayadapter java 407 07 31 18 21 55 763 4617 4617 e androidruntime at androidx appcompat widget dropdownlistview measureheightofchildrencompat dropdownlistview java 321 07 31 18 21 55 763 4617 4617 e androidruntime at androidx appcompat widget listpopupwindow builddropdown listpopupwindow java 1322 07 31 18 21 55 763 4617 4617 e androidruntime at androidx appcompat widget listpopupwindow show listpopupwindow java 664 07 31 18 21 55 763 4617 4617 e androidruntime at io material catalog menu menumaindemofragment lambda oncreatedemoview 2 menumaindemofragment java 81 07 31 18 21 55 763 4617 4617 e androidruntime at io material catalog menu lambda menumaindemofragment mrgoafseazq38uc68xdyfvd7 du onclick unknown source 2 07 31 18 21 55 763 4617 4617 e androidruntime at android view view performclick view java 6266 07 31 18 21 55 763 4617 4617 e androidruntime at com google android material button materialbutton performclick materialbutton java 1115 07 31 18 21 55 763 4617 4617 e androidruntime at android view view performclick run view java 24730 07 31 18 21 55 763 4617 4617 e androidruntime at android os handler handlecallback handler java 793 07 31 18 21 55 763 4617 4617 e androidruntime at android os handler dispatchmessage handler java 98 07 31 18 21 55 763 4617 4617 e androidruntime at android os looper loop looper java 173 07 31 18 21 55 763 4617 4617 e androidruntime at android app activitythread main activitythread java 6698 07 31 18 21 55 763 4617 4617 e androidruntime at java lang reflect method invoke native method 07 31 18 21 55 763 4617 4617 e androidruntime at com android internal os zygote methodandargscaller run zygote java 240 07 31 18 21 55 763 4617 4617 e androidruntime at com android internal os zygoteinit main zygoteinit java 782
materialcomponentsmaterialcomponentsandroid
catalog wrong initialization of shape corner size option in themeswitcherdialogfragment
Bug
wrong theme feature i d r i d theme feature corner family be use to initialize the shape corner size option in themeswitcherdialogfragment git df diff git a catalog java io material catalog themeswitcher themeswitcherdialogfragment java b catalog java io material catalog themeswitcher themeswitcherdialogfragment java index defa661a 4c5204c6 100644 a catalog java io material catalog themeswitcher themeswitcherdialogfragment java b catalog java io material catalog themeswitcher themeswitcherdialogfragment java 117 7 117 7 public class themeswitcherdialogfragment extend bottomsheetdialogfragment shapecornersizegroup resourceprovider getshapesize resourceprovider getshapesizescontentdescription r i d theme feature corner family r i d theme feature corner size themingtype shape corner size
materialcomponentsmaterialcomponentsandroid
datepicker some test case in datestringstest fail
Bug
some test case in datestringstest fail I guess it s relate to the timezone shanghai china in my computer the fail case be like the follow java lang assertionerror expect be 30 but be 29 gradlew test task lib compiledebugunittestjavawithjavac the follow annotation processor be not incremental auto service 1 0 rc4 jar com google auto service auto service 1 0 rc4 make sure all annotation processor be incremental to improve your build speed task lib testdebugunitt com google android material datepicker datestringstest frmonthdaystre fail java lang assertionerror at datestringstest java 148 com google android material datepicker datestringstest usyearmonthdaystring fail java lang assertionerror at datestringstest java 71 com google android material datepicker datestringstest getdatestringcurrentyear fail java lang assertionerror at datestringstest java 214 com google android material datepicker datestringstest aryearmonthdaystre fail java lang assertionerror at datestringstest java 117 com google android material datepicker datestringstest zhmonthdaystring fail java lang assertionerror at datestringstest java 203 com google android material datepicker datestringstest getdaterangestringnextyear fail java lang assertionerror at datestringstest java 260 com google android material datepicker datestringstest getdatestringnextyear fail java lang assertionerror at datestringstest java 230 com google android material datepicker datestringstest ptyearmonthdaystre fail java lang assertionerror at datestringstest java 86 com google android material datepicker datestringstest getdaterangestringmultipleyear fail java lang assertionerror at datestringstest java 271 com google android material datepicker datestringstest iwyearmonthdaystring fail java lang assertionerror at datestringstest java 102 com google android material datepicker datestringstest iwmonthdaystre fail java lang assertionerror at datestringstest java 181 com google android material datepicker datestringstest ptmonthdaystre fail java lang assertionerror at datestringstest java 170 com google android material datepicker datestringstest usmonthdaystre fail java lang assertionerror at datestringstest java 159 com google android material datepicker datestringstest armonthdaystre fail java lang assertionerror at datestringstest java 192 com google android material datepicker datestringstest fryearmonthdaystre fail java lang assertionerror at datestringstest java 56 com google android material datepicker datestringstest zhyearmonthdaystre fail java lang assertionerror at datestringstest java 133 com google android material datepicker datestringstest getdaterangestringcurrentyear fail java lang assertionerror at datestringstest java 249 364 test complete 17 fail 24 skip task lib testdebugunittest fail last code commit git show head commit 4b01ac4b22dcba7ce7a51c5db7b18d97e481f54b head master origin master origin head author connieshi date thu jul 30 12 13 03 2020 0400 chip update chipgroup demo to include switch to toggle the requiredselection attr piperorigin revid 324015228
materialcomponentsmaterialcomponentsandroid
materialalertdialog transparent background
Bug
description I use the material design component for alert dialog I want a transparent black background color but there be something strange in the backgound there be a little white color how to solve this problem please the solution device 2020 07 29 210643 android api version 29 material library version 1 1 0
materialcomponentsmaterialcomponentsandroid
chip close button s color doesn t match the one from material design spec site
Bug
description the color of the close button of the chip do not match the one visible on the material design specification web site expect behavior the color of the close button be too dark if compare to the one from the spec website spec site input chip image library image source code the source of the issue seem to be color mtrl chip close icon tint xml a well fitting value for the alpha seem to be 0 54 image the disabled alpha seem also wrong this be what to I look more similar to the website image xml android api version api 29 material library version 1 2 0 rc01 device google pixel 2
materialcomponentsmaterialcomponentsandroid
path op not support
Bug
description when use intellij idea 2020 2 the layout editor be have an error on render the ui preview screen shoot 2020 07 29 at 7 11 08 pm I m also use the new layout render engine but for some reason it s still suggest it there maybe an issue with intellij idea here s the code to the xml layout xml style xml stack trace java awt geom illegalpathstateexception miss initial moveto in path definition at java desktop java awt geom path2d double needroom path2d java 1221 at java desktop java awt geom path2d closepath path2d java 1910 at android graphic path delegate close path delegate java 824 at android graphic path delegate nclose path delegate java 329 at android graphic path nclose path java at android graphic path close path java 513 at com google android material shape shapeappearancepathprovider calculatepath shapeappearancepathprovider java 123 at com google android material shape shapeappearancepathprovider calculatepath shapeappearancepathprovider java 83 at com google android material shape materialshapedrawable calculatestrokepath materialshapedrawable java 1160 at com google android material shape materialshapedrawable draw materialshapedrawable java 945 at com google android material textfield textinputlayout drawboxunderline textinputlayout java 3793 at com google android material textfield textinputlayout draw textinputlayout java 3779 at android view view draw original view java 21317 at android view view delegate draw view delegate java 68 at android view view draw view java 21089 at android view viewgroup drawchild original viewgroup java 4388 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4388 at android view viewgroup dispatchdraw viewgroup java 4149 at androidx constraintlayout widget constraintlayout dispatchdraw constraintlayout java 1800 at android view view draw original view java 21315 at android view view delegate draw view delegate java 68 at android view view draw view java 21089 at android view viewgroup drawchild original viewgroup java 4388 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4388 at android view viewgroup dispatchdraw viewgroup java 4149 at android view view draw original view java 21446 at android view view delegate draw view delegate java 56 at android view view draw view java 21417 at androidx core widget nestedscrollview draw nestedscrollview java 1998 at android view view draw original view java 21317 at android view view delegate draw view delegate java 68 at android view view draw view java 21089 at android view viewgroup drawchild original viewgroup java 4388 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4388 at androidx coordinatorlayout widget coordinatorlayout drawchild coordinatorlayout java 1277 at android view viewgroup dispatchdraw viewgroup java 4149 at android view view draw original view java 21315 at android view view delegate draw view delegate java 68 at android view view draw view java 21089 at android view viewgroup drawchild original viewgroup java 4388 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4388 at android view viewgroup dispatchdraw viewgroup java 4149 at android view view draw original view java 21315 at android view view delegate draw view delegate java 68 at android view view draw view java 21089 at android view viewgroup drawchild original viewgroup java 4388 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4388 at android view viewgroup dispatchdraw viewgroup java 4149 at android view view draw original view java 21315 at android view view delegate draw view delegate java 68 at android view view draw view java 21089 at android view viewgroup drawchild original viewgroup java 4388 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4388 at android view viewgroup dispatchdraw viewgroup java 4149 at android view view draw original view java 21446 at android view view delegate draw view delegate java 56 at android view view draw view java 21417 at com android layoutlib bridge impl rendersessionimpl renderandbuildresult rendersessionimpl java 404 at com android layoutlib bridge impl rendersessionimpl renderandbuildresult rendersessionimpl java 556 at com android layoutlib bridge impl rendersessionimpl render rendersessionimpl java 425 at com android layoutlib bridge bridgerendersession render bridgerendersession java 115 at com android ide common rendering api rendersession render rendersession java 142 at com android ide common rendering api rendersession render rendersession java 124 at com android tool idea render rendertask lambda renderinner 11 rendertask java 895 at java base java util concurrent completablefuture asyncsupply run completablefuture java 1700 at java base java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1128 at java base java util concurrent threadpoolexecutor worker run threadpoolexecutor java 628 at java base java lang thread run thread java 834 expect behavior it should generate the preview correctly android api version 29 material library version 1 3 0 alpha02
materialcomponentsmaterialcomponentsandroid
materialtimepicker text inside handle incorrectly tint
Bug
description when select a minute which be not a multiple of 5 it be visible that the gradient to hightlight select value be offset screenshot 20200729 122720 expect behavior it should correctly tint the text inside the handle source code materialtimepicker newinstance show supportfragmentmanager time picker android api version test on 29 but probably all material library version 1 3 0 alpha02 device oneplus 5 t oneplus 7 t I be able to track down the issue l223 this should be change to textviewrect offset tv getpaddingleft tv getpaddingtop
materialcomponentsmaterialcomponentsandroid
materialbutton strokecolor and strokewidth not work after set background attr
Bug
description materialbutton set strokecolor strokewidth and background attr in my layout xml file border not display only remove background node that strokecolor and strokewidth can work expect behavior materialbutton border can display source code android api version android 10 material library version 1 3 0 alpha02 device leeco 1pro
materialcomponentsmaterialcomponentsandroid
error inflate class com google android material slider slider
Bug
description error inflate class com google android material slider slider expect behavior screenshot and or description of expect behavior source code android api version android api version here material library version com google android material material 1 3 0 alpha01 device realme 2 pro
materialcomponentsmaterialcomponentsandroid
slider attribute android enable not work
Bug
description when use the default slider if provide the android enable attribute inside a layout the slider be not disabled expect behavior I expect that use android enable have the same effect than slider isenable false kotlin which work properly source code xml android api version execution env api 22 target env api 29 material library version 1 3 0 alpha02 device no name tablet run api 22
materialcomponentsmaterialcomponentsandroid
materialdatepicker crash when inflate its view when coloronprimary be a selector
Bug
description app crash when create a materialdatepicker with a color selector as the coloronprimary expect behavior app should not crash when color use in materialdatepicker be selector source code style xml color selector xml activity main xml mainactivity kt class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main findviewbyid r i d textview setonclicklistener materialdatepicker builder datepicker build show supportfragmentmanager tag androidmanif xml android api version 23 material library version 1 3 0 alpha02 device emulator nexus 5xapi 23 x86 64 stacktrace android view inflateexception binary xml file line 23 binary xml file line 52 error inflate class android view view at android view layoutinflater inflate layoutinflater java 539 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 148 at android app activitythread main activitythread java 5417 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 726 at com android internal os zygoteinit main zygoteinit java 616 cause by android view inflateexception binary xml file line 52 error inflate class android view view at android view layoutinflater createview layoutinflater java 645 at android view layoutinflater oncreateview layoutinflater java 677 at com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 68 at android view layoutinflater oncreateview layoutinflater java 694 at android view layoutinflater createviewfromtag layoutinflater java 762 at android view layoutinflater createviewfromtag layoutinflater java 704 at android view layoutinflater rinflate layoutinflater java 835 at android view layoutinflater parseinclude layoutinflater java 939 at android view layoutinflater rinflate layoutinflater java 831 at android view layoutinflater rinflatechildren layoutinflater java 798 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 148 at android app activitythread main activitythread java 5417 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 726 at com android internal os zygoteinit main zygoteinit java 616 cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance native method at android view layoutinflater createview layoutinflater java 619 at android view layoutinflater oncreateview layoutinflater java 677 at com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 68 at android view layoutinflater oncreateview layoutinflater java 694 at android view layoutinflater createviewfromtag layoutinflater java 762 at android view layoutinflater createviewfromtag layoutinflater java 704 at android view layoutinflater rinflate layoutinflater java 835 at android view layoutinflater parseinclude layoutinflater java 939 at android view layoutinflater rinflate layoutinflater java 831 at android view layoutinflater rinflatechildren layoutinflater java 798 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 148 at android app activitythread main activitythread java 5417 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 726 at com android internal os zygoteinit main zygoteinit java 616 cause by android content re resource notfoundexception file re color color selector xml from drawable resource i d 0x7f050030 at android content re resource loaddrawableforcookie resource java 2640 at android content re resource loaddrawable resource java 2540 at android content re typedarray getdrawable typedarray java 870 at android view view view java 3948 at android view view view java 3855 at android view view view java 3834 at java lang reflect constructor newinstance native method at android view layoutinflater createview layoutinflater java 619 at android view layoutinflater oncreateview layoutinflater java 677 at com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 68 at android view layoutinflater oncreateview layoutinflater java 694 at android view layoutinflater createviewfromtag layoutinflater java 762 at android view layoutinflater createviewfromtag layoutinflater java 704 at android view layoutinflater rinflate layoutinflater java 835 at android view layoutinflater parseinclude layoutinflater java 939 at android view layoutinflater rinflate layoutinflater java 831 at android view layoutinflater rinflatechildren layoutinflater java 798 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 148 at android app activitythread main activitythread java 5417 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 726 at com android internal os zygoteinit main zygoteinit java 616 cause by org xmlpull v1 xmlpullparserexception binary xml file line 3 tag require a drawable attribute or child tag define a drawable at android graphic drawable statelistdrawable inflatechildelement statelistdrawable java 182 at android graphic drawable statelistdrawable inflate statelistdrawable java 115 at android graphic drawable drawable createfromxmlinner drawable java 1215 at android graphic drawable drawable createfromxml drawable java 1124 at android content re resource loaddrawableforcookie resource java 2630 at android content re resource loaddrawable resource java 2540 at android content re typedarray getdrawable typedarray java 870 at android view view view java 3948 at android view view view java 3855 at android view view view java 3834 at java lang reflect constructor newinstance native method at android view layoutinflater createview layoutinflater java 619 at android view layoutinflater oncreateview layoutinflater java 677 at com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 68 at android view layoutinflater oncreateview layoutinflater java 694 at android view layoutinflater createviewfromtag layoutinflater java 762 at android view layoutinflater createviewfromtag layoutinflater java 704 at android view layoutinflater rinflate layoutinflater java 835 at android view layoutinflater parseinclude layoutinflater java 939 at android view layoutinflater rinflate layoutinflater java 831 at android view layoutinflater rinflatechildren layoutinflater java 798 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 148 at android app activitythread main activitythread java 5417 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 726 at com android internal os zygoteinit main zygoteinit java 616
materialcomponentsmaterialcomponentsandroid
material alert dialog button don t have state
Bug
description button use in alert dialog which be build with materialalertdialogbuilder don t have background set miss pressed and focused state I set button use the below documentation here be my code but if I change widget materialcomponent button textbutton dialog to widget appcompat button buttonbar alertdialog button have correct background and state use com google android material material 1 2 0 rc01
materialcomponentsmaterialcomponentsandroid
shapeappearancemodel the strange cut corner
Bug
description when I set 24dp cut corner to a 48dp height button its shape may be wrong but I can t ensure whether the rounded corner behave that expect behavior the button shouldn t have a strange shape source code the forth button image image this be not jetpack compose cutcorner 24 px equal to cornerfamily cut 24 px image image android api version 30 material library version 1 3 0 alpha02 device google pixel
materialcomponentsmaterialcomponentsandroid
materialtimepicker keyboard do not reliably open in keyboard input mode
Bug
description open the materialtimepicker in keyboard input mode do not open the soft keyboard only when tap on the area around the text input at some unclear location be the keyboard open expect behavior always open the keyboard when either the hour or minute text input have focus device 2020 07 24 120744 device 2020 07 24 120802 android api version api 30 android r material library version 1 3 0 alpha2 device emulator pixel 4xl
materialcomponentsmaterialcomponentsandroid
navigation drawer layout not work with theme materialcomponent daynight noactionbar
Bug
hello while set dark mode of materialcomponent there be unexpected bug found in material design library recently I change theme materialcomponent light noactionbar to theme materialcomponent daynight noactionbar suddenly com google android material navigation navigationview not work please check this be major issue my many of the app be design with this style and work fine without any issue thank
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup setenable method be not make materialbutton inside the group
Bug
description setenable method on materialbuttontogglegroup be not take effect in the child of the group expect behavior setenable method on materialbuttontogglegroup should enable or disable all the child inside the group android api version 21 to 29 material library version 1 3 0 alpha01 device one plus 6 t 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 crash when export with shrinkresource true
Bug
android studio and gradle 4 1 0 beta05 material design 1 3 0 alpha02 device test xiaomi redmi note 4 android 7 0 s10 android 10 release minifyenable true shrinkresource true need to turn off to fix this bug proguardfile getdefaultproguardfile proguard android txt proguard rule pro process com myapp pid 15960 android view inflateexception binary xml file line 45 in com myapp layout material timepicker dialog binary xml file line 45 in com myapp layout material timepicker dialog error inflate class com google android material timepicker timepickerview android view inflateexception binary xml file line 45 in com myapp layout material timepicker dialog binary xml file line 45 in com myapp layout material timepicker dialog error inflate class com google android material timepicker timepickerview cause by android view inflateexception binary xml file line 45 in com myapp layout material timepicker dialog error inflate class com google android material timepicker timepickerview 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 854 at android view layoutinflater createviewfromtag layoutinflater java 1006 at android view layoutinflater createviewfromtag layoutinflater java 961 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1084 at android view layoutinflater inflate layoutinflater java 682 at android view layoutinflater inflate layoutinflater java 534 at android view layoutinflater inflate layoutinflater java 481 at com google android material timepicker b v0 materialtimepicker java 2 at androidx fragment app fragment y0 fragment java 4 at androidx fragment app d y0 dialogfragment java 1 at androidx fragment app v e fragmentstatemanager java 15 at androidx fragment app n o0 fragmentmanager java 14 at androidx fragment app n n0 fragmentmanager java 1 at androidx fragment app n l0 fragmentmanager java 4 at androidx fragment app n m0 fragmentmanager java 8 at androidx fragment app a w backstackrecord java 31 at androidx fragment app n c0 fragmentmanager java 6 at androidx fragment app n d0 fragmentmanager java 21 at androidx fragment app n y0 fragmentmanager java 10 at androidx fragment app n a0 fragmentmanager java 4 at androidx fragment app n g run fragmentmanager java 1 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 8016 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 1076 cause by android view inflateexception binary xml file line 23 in com myapp layout material timepicker binary xml file line 32 in com myapp layout material clock display error inflate class com google android material chip chip cause by android view inflateexception binary xml file line 32 in com myapp layout material clock display error inflate class com google android material chip chip 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 854 at android view layoutinflater createviewfromtag layoutinflater java 1006 at android view layoutinflater createviewfromtag layoutinflater java 961 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1084 at android view layoutinflater parseinclude layoutinflater java 1263 at android view layoutinflater rinflate layoutinflater java 1119 at android view layoutinflater inflate layoutinflater java 656 at android view layoutinflater inflate layoutinflater java 534 at android view layoutinflater inflate layoutinflater java 481 at com google android material timepicker timepickerview timepickerview java 4 2020 07 24 09 22 44 273 15960 15960 e androidruntime at com google android material timepicker timepickerview timepickerview java 1 at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 854 at android view layoutinflater createviewfromtag layoutinflater java 1006 at android view layoutinflater createviewfromtag layoutinflater java 961 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1084 at android view layoutinflater inflate layoutinflater java 682 at android view layoutinflater inflate layoutinflater java 534 at android view layoutinflater inflate layoutinflater java 481 at com google android material timepicker b v0 materialtimepicker java 2 at androidx fragment app fragment y0 fragment java 4 at androidx fragment app d y0 dialogfragment java 1 at androidx fragment app v e fragmentstatemanager java 15 at androidx fragment app n o0 fragmentmanager java 14 at androidx fragment app n n0 fragmentmanager java 1 at androidx fragment app n l0 fragmentmanager java 4 at androidx fragment app n m0 fragmentmanager java 8 at androidx fragment app a w backstackrecord java 31 at androidx fragment app n c0 fragmentmanager java 6 at androidx fragment app n d0 fragmentmanager java 21 at androidx fragment app n y0 fragmentmanager java 10 at androidx fragment app n a0 fragmentmanager java 4 at androidx fragment app n g run fragmentmanager java 1 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 8016 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 1076 cause by android content re resource notfoundexception can t find colorstatelist from drawable resource i d 0x7f0600bb at android content re resourcesimpl loadcolorstatelist resourcesimpl java 1222 at android content re resource loadcolorstatelist resource java 1163 at android content re typedarray getcolorstatelist typedarray java 599 at android widget textview readtextappearance textview java 4270 at android widget textview textview java 1325 at android widget button button java 181 at android widget compoundbutton compoundbutton java 110 at android widget checkbox checkbox java 69 at android widget checkbox checkbox java 65 at androidx appcompat widget g appcompatcheckbox java 2 at com google android material chip chip chip java 2 at com google android material chip chip chip java 1
materialcomponentsmaterialcomponentsandroid
materialdatepicker daterangepicker show wrong date
Bug
description when materialdatepicker open the first time it s show the wrong date range but after that it s show the right date range set ist time to setselection date range text and dialog pair millisecond be same date range error android api version 29 material library version 1 2 0 rc01 device realme note 5 pro
materialcomponentsmaterialcomponentsandroid
textinputlayout fitsystemwindow notch bug
Bug
description textinputlayout windowlayoutindisplaycutoutmode draw on both side of notch result in behaviour below fitsystemwindowstruefalse first screen be fitsystemwindow set to false second screen be fitsystemwindow set to true third screen be what it look as xml layout which be perfectly what first screen be achieve source code I have create sample project which contain only the code necessary to reproduce the bug android api version min api 27 material library version any stable beta alpha all device any with notch test with both emulator and real device
materialcomponentsmaterialcomponentsandroid
textinputlayout nest view cause high cpu usage
Bug
description full description of issue here when nest one or many textinputlayout in a compound view this cause steady high cpu usage this make it impossible to create custom view with textinputlayout item could be other as well I do not have this problem use edittext or non material component this screenshot be clip but this loop continue what feel like indefinitely image image expect behavior screenshot and or description of expect behavior not get stick in a childview loop source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue this be double nest in a single xml normally this view be a parent constraintlayout which be either into another view or use with a custom view which have the same result of high cpu usage android api version android api version here 29 material library version material android library version you be use here e g 1 1 0 alpha07 both 1 2 0 rc01 and 1 3 0 alpha1 device device on which the bug be encounter here emulator and s9
materialcomponentsmaterialcomponentsandroid
tablayout tabpadding be effectively tabpaddingvertical
Bug
description currently tablayout have default tabpaddingstart and tabpaddingend in tablayout tabpaddingstart and tabpaddingend and tabpaddingtop and tabpaddingbottom be resolve in preference to tabpadde so tabpadde be effectively tabpaddingvertical expect behavior I think 2 pattern of expect behavior in this case 1 remove default tabpaddingstart and tabpaddingend to be effect tabpadde that user s define at layout xml 2 rename tabpadde to tabpaddingvertical to be behavior that do not interfere with appearance source code l19 l38 l180 l473 l480 l501 l510 material library version master branch
materialcomponentsmaterialcomponentsandroid
slider internal illegalstateexception
Bug
device huawei huawei y6 pro 2019 hwmrd m1 2816 mb ram android 9 material lib version 1 3 0 alpha01 stacktrace from play console I can t reproduce it java lang illegalstateexception at com google android material slider baseslider c baseslider java 38 at com google android material slider baseslider validateconfigurationifdirty baseslider java 4 at com google android material slider baseslider ondraw baseslider java 5 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 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 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 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 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 drawerlayout widget drawerlayout drawchild drawerlayout java 95 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
chipgroup check function not work in jellybean api 16
Bug
description in a jellybean device if some chip be create with no i d view no i d and add to the chipgroup the group be unable to set chip as check unchecked or guarantee that only one chip be select at any give moment expect behavior chipgroup should be able to perform check int and handle single selection as describe on the documentation source code kotlin val chipgroup chipgroup context apply issingleline true isselectionrequire true issingleselection true val firstchip chip context apply text all chipgroup addview it listofstrings map chip context apply text it foreach chipgroup addview it chipgroup check firstchip nothing be select user can also click in all chip and all of they will behave independently android api version 16 material library version 1 2 0 rc01 device emulator
materialcomponentsmaterialcomponentsandroid
shapeableimageview padding be apply to background unlike normal imageview
Bug
description in shapeableimageview android padding get apply to both the image itself and the shaped background this be unusual compare to most view though maybe typical for shapeable not sure expect behavior what the normal imageview do pad the image but not the background top shapeableimageview with padding bottom normal imageview with padding image it seem like the current behavior should be achieve by margin rather than pad and that padding should leave the background alone like it do in most view source code xml android api version 21 29 material library version 1 2 0 rc01 device pixel 3 emulator look at the shapeableimageview source it appear to be clear where the shape be set to honor the padding I d like to know if the current behavior be expect for some reason if it be I d like to know if the behavior I want can be accommodate by some new attribute or something if there s a clear path forward I d be happy to open a pr and if that pr could potentially land in 1 2 I d be happy to open a pr quickly let I know
materialcomponentsmaterialcomponentsandroid
share a great exmple product for material component android
Bug
materialcomponentsmaterialcomponentsandroid
slider invalidatechildinparentfast nosuchmethodexception
Bug
description I be test the slider on an old api version 15 after finish drag the slider I be get a runtimeexception this be happen because overlayviewgroup try to find the method invalidatechildinparentfast of viewgroup through reflection I also try to disable the label but this be not fix the issue on new api version there be no problem at all why be it that in my case the method can not be find be there some kind of issue or I be do something wrong stacktrace 07 16 23 04 56 533 19323 19323 com wrodarczyk showtracker2 e androidruntime fatal exception main java lang exceptionininitializererror at com google android material internal viewoverlayapi14 viewoverlayapi14 java 46 at com google android material internal viewgroupoverlayapi14 viewgroupoverlayapi14 java 27 at com google android material internal viewoverlayapi14 createfrom viewoverlayapi14 java 59 at com google android material internal viewutil getoverlay viewutil java 281 at com google android material internal viewutil getcontentviewoverlay viewutil java 313 at com google android material slider baseslider ontouchevent baseslider java 1539 at com google android material slider slider ontouchevent slider java 40 at android view view dispatchtouchevent view java 5541 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at com android internal policy impl phonewindow decorview superdispatchtouchevent phonewindow java 1912 at com android internal policy impl phonewindow superdispatchtouchevent phonewindow java 1371 at android app dialog dispatchtouchevent dialog java 738 at androidx appcompat view windowcallbackwrapper dispatchtouchevent windowcallbackwrapper java 69 at com android internal policy impl phonewindow decorview dispatchtouchevent phonewindow java 1860 at android view view dispatchpointerevent view java 5721 at android view viewrootimpl deliverpointerevent viewrootimpl java 2890 at android view viewrootimpl handlemessage viewrootimpl java 2466 at android view viewrootimpl processinputevent viewrootimpl java 845 at android view viewrootimpl handlemessage viewrootimpl java 2475 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 137 at android app activitythread main activitythread java 4424 at java lang reflect method invokenative native method at java lang reflect method invoke method java 511 at com android internal os zygoteinit methodandargscaller run zygoteinit java 784 at com android internal os zygoteinit main zygoteinit java 551 at dalvik system nativestart main native method cause by java lang runtimeexception java lang nosuchmethodexception invalidatechildinparentfast int int class android graphic rect at com google android material internal viewoverlayapi14 overlayviewgroup viewoverlayapi14 java 102 at com google android material internal viewoverlayapi14 viewoverlayapi14 java 46 at com google android material internal viewgroupoverlayapi14 viewgroupoverlayapi14 java 27 at com google android material internal viewoverlayapi14 createfrom viewoverlayapi14 java 59 at com google android material internal viewutil getoverlay viewutil java 281 at com google android material internal viewutil getcontentviewoverlay viewutil java 313 at com google android material slider baseslider ontouchevent baseslider java 1539 at com google android material slider slider ontouchevent slider java 40 at android view view dispatchtouchevent view java 5541 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at android view viewgroup dispatchtransformedtouchevent viewgroup java 1957 at android view viewgroup dispatchtouchevent viewgroup java 1726 at com android internal policy impl phonewindow decorview superdispatchtouchevent phonewindow java 1912 at com android internal policy impl phonewindow superdispatchtouchevent phonewindow java 1371 at android app dialog dispatchtouchevent dialog java 738 at androidx appcompat view windowcallbackwrapper dispatchtouchevent windowcallbackwrapper java 69 at com android internal policy impl phonewindow decorview dispatchtouchevent phonewindow java 1860 at android view view dispatchpointerevent view java 5721 at android view viewrootimpl deliverpointerevent viewrootimpl java 2890 at android view viewrootimpl handlemessage viewrootimpl java 2466 at android view viewrootimpl processinputevent viewrootimpl java 845 at android view viewrootimpl handlemessage viewrootimpl java 2475 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 137 at android app activitythread main activitythread java 4424 at java lang reflect method invokenative native method at java lang reflect method invoke method java 511 at com android internal os zygoteinit methodandargscaller run zygoteinit java 784 at com android internal os zygoteinit main zygoteinit java 551 at dalvik system nativestart main native method cause by java lang nosuchmethodexception invalidatechildinparentfast int int class android graphic rect at java lang class getconstructorormethod class java 460 at java lang class getdeclaredmethod class java 685 at com google android material internal viewoverlayapi14 overlayviewgroup viewoverlayapi14 java 9 source code this should happen with any slider on the mentioned api version android api version 15 material library version 1 3 0 alpha01 device galaxy nexusandroid 4 0 3 x86 avd
materialcomponentsmaterialcomponentsandroid
rtl issue with materialdatepicker
Bug
there be an issue with rtl layout for materialdatepicker the arrow for the month be reverse capture
materialcomponentsmaterialcomponentsandroid
appbarlayout flinging make the collapse animation flicker
Bug
description fling on the scroll view link to the appbarlayout make the collapsingtoolbarlayout flicker it could be due to a delay or wrong computation of the offset in case of fle this be visible in the catalog that use collapsingtoolbarlayout kapture 2020 07 16 at 18 03 23 but it s more visible in this example that use motionlayout in place of collapsingtoolbarlayout to listen and animate the progress here the button be constrain to the parent top in the start scene and to the parent bottom on the end scene as you can see they jump a bit kapture 2020 07 16 at 18 15 29 this issue be happen only with fle it s work as expect no flicker if the scroll view be drag without fle expect behavior no view jump flicker android api version 23 material library version 1 1 0 device pixel 2 xl but emulator too
materialcomponentsmaterialcomponentsandroid
materialtextview line height documentation be confuse
Bug
description the documentation for materialtextview say that you can specify the lineheight on a textappearance in order to apply it to the view in my testing this only work for sdk 28 so it must rely on the native lineheight attribute that be add at that time it do not work on a sdk 26 emulator I find this documentation confuse it should specify the minsdk or just not be in the documentation at all material library version 1 1 0
materialcomponentsmaterialcomponentsandroid
tablayout indicator color always influence indicator drawable
Bug
description indicator color always set tint to indicator drawable even when the color be clear use style or in layout problem be that indicator paint l2825 be never null and thus be always set to indicator drawable in ondraw l3180 so right now there be no option to keep the color of a drawable set app tabindicatorcolor null hide indicator drawable alpha 0 set app tabindicatorcolor to any color set color to the drawable intend behavior not set app tabindicatorcolor use primarycolor for drawable intend behavior expect behavior indicator color do not affect drawable when it be not set source code layout xml drawable tabbar indicator gradient blue xml in this case the indicator dissapear because the indicator color be apply even when it should not android api version 24 material library version 1 2 0 beta01 device huawei p20 lite api 28
materialcomponentsmaterialcomponentsandroid
chip unable to set chip text color
Bug
description full description of issue here I be use chip group and set a style to customize color I face with the problem when my chip be select background color be set properly but I do not see the text my text color selector my background selector expect behavior screenshot and or description of expect behavior when chip be check the textcolor color colorprimary chipbackground color colormain but the chip be completely paint over with the background color so I do not see the text on it chip text color and background color be the same color colormain 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 29 material library version material android library version you be use here e g 1 1 0 alpha07 1 3 0 alpha01 device device on which the bug be encounter here all device to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request thank you in advance
materialcomponentsmaterialcomponentsandroid
datepicker single dateselector conversion time zone error
Bug
description setselection in singledateselector convert date in utc date assume a scenario where the user be in india 5 30 the time be 13 jul 2020 5 am local time setselection in singledateselector be give in mill sec the function create a calender object at utc the date would be 12 jul 2020 the select date in the ui would be 12 jul 2020 rather than 13 jul 2020 which be the input expect behavior expect behavior should be date should be convert base on system default set rather than utc source code override public void setselection nullable long selection selecteditem selection null null utcdates canonicalyearmonthday selection material library version material android library version you be use here 1 1 0
materialcomponentsmaterialcomponentsandroid
transition axis transition crash if there be viewpager2 in layout
Bug
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 4988 at android view viewgroup addviewinner viewgroup java 5160 at android view viewgroup addview viewgroup java 4935 at android view viewgroup addview viewgroup java 4875 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 transition playtransition transition java 1821 at androidx transition transitionmanager multilistener onpredraw transitionmanager java 301 at android view viewtreeobserver dispatchonpredraw viewtreeobserver java 1088 reproduce at least with materialsharedaxis and fadethrough transition animate simple view material library version 1 3 0 alpha01 test on android 9 10 any device emulator
materialcomponentsmaterialcomponentsandroid
bottom sheet bottom sheet peek height give different result on api 29
Bug
description the bottom sheet s peek height appear differently on api 29 it work correctly for 28 and below but give incorrect peek behavior on 29 expect behavior I set the peak height to be 77dp which should only show the bottom navigation bar at start on api 27 28 it show up correctly as you can see on the left emulator device on which we can only see the bottom bar but on api 29 as you can see on the right it show some extra space from beneath which be incorrect it only occur on api 29 image source code I have attach a minimal project that show this behavior please run this on api 29 and 28 27 to see the difference bottomsheetpeekerror zip android api version 29 material library version 1 3 0 alpha01 1 2 0 beta01 1 2 0 alpha06 they all give incorrect peak height on api 29 the minimum I have to use be 1 2 0 alpha05 device multiple device run api 29
materialcomponentsmaterialcomponentsandroid
baseslider labelbehavior not accesible in package private implementation of baseslider
Bug
description full description of issue here the class com google android material slider baseslider require a value from the labelbehavior class which be a subclass inside the package private baseslider class expect behavior allow to consume the constant from the labelbehavior from app code android api version android 11 material library version 1 3 0 alpha01 device emulator
materialcomponentsmaterialcomponentsandroid
materialcheckbox textcolor in textappearance be ignore if specify in layout or style xml
Bug
description if you have a materialcheckbox and you apply a text appearance style to it in xml either directly in the layout xml or through a theme style then the textcolor attribute be completely ignore note that set the text appearance programmatically set the textcolor correctly expect behavior the expect behaviour be that the text color be set to the value specify in the text appearance source code an example layout fragment be the correspond style be android api version test on android q material library version 1 1 0 also test on 1 2 0 beta01 device huawei p30 although the bug can also be see in the android studio designer
materialcomponentsmaterialcomponentsandroid
progressindicator color be ignore when growmode be set
Bug
description set initial color indicatorcolor and trackcolor and set the growmode to grow mode income animate the grow phase with the android r attr pimarycolor and then switch to the give color when first display expect behavior use the give color for the grow animation source code kotlin class activityindicator activity activity progressindicator activity init indicatortype circular isindeterminate true growmode grow mode income indicatorcolor intarrayof color green trackcolor color red android api version android 11 material library version 1 3 0 alpha01 device emulator
materialcomponentsmaterialcomponentsandroid
materialdatepicker todayinutcmillisecond method return incorrectly
Bug
description use the materialdatepicker todayinutcmillisecond method within our app be return a timestamp that be a day out from the current date when it be use for selection this be especially odd as the same sample code return correctly on the same device when use in the material component library catalog app we be uk base so timezone should not be affect this see screenshot of the strange behavior below screenshot 20200707 100418 screenshot 20200707 100425 if it help we be utilize the threeten android backport elsewhere in the app expect behavior the todayinutcmillisecond should respect the current date source code kotlin val picker materialdatepicker materialdatepicker builder datepicker setinputmode materialdatepicker input mode calendar setselection materialdatepicker todayinutcmillisecond settitletext custom title build picker run addonpositivebuttonclicklistener viewmodel updatecontractdate show parentactivity supportfragmentmanager picker tostre android api version see on android 10 api 29 and android 8 1 api 27 material library version 1 3 0 alpha01 device google pixel 3a xl
materialcomponentsmaterialcomponentsandroid
call appcompatdelegate setdefaultnightmode leave afterimage on restart activity
Bug
description in my app I m call appcompatdelegate setdefaultnightmode appcompatdelegate mode night yes on a preference screen switchpreference listener that be open on the mainactivity the app switch to dark mode normally after I press the back button and go back to the mainactivity after the activity restart to dark mode the whole activity leave an afterimage on the background expect behavior no afterimage on background video to problem source code link to example project produce this issue android api version 29 30 material library version 1 3 0 alpha01 device all physical device emulator
materialcomponentsmaterialcomponentsandroid
use snapshot version
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
rangeslider right tooltip miss if value set with delay
Bug
description in case the value of a range slider be set in code via a delay the tooltip for the right thumb be miss img 20200703 212210 to be precise the right tooltip appear very short on first touch and be then go forever until app restart expect behavior right tooltip show as usual source code for demonstration purpose the code give below use a postdelaye but issue also happen in case of other delay e g when observe some computation result before set rangeslider value via livedata observe the follow code be test in activity s oncreate and in fragment s onviewcreate as well as oncreateview work slider valuefrom 1 0f slider valueto 10 0f slider setvalue 1 0f 10 0f not work handler postdelaye slider valuefrom 1 0f slider valueto 10 0f slider setvalue 1 0f 10 0f 500 also happen with discrete slider android api version 29 material library version 1 3 0 alpha01 device xiaomi mi mix 2s
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout maxline act not as expect
Bug
description hi I m try to make my collapsingtoolbarlayout to have two line which I do with app maxline 2 there be some margin in expand title so I remove it like this app expandedtitlemarginbottom 0dp app expandedtitlemarginend 0dp app expandedtitlemarginstart 0dp app expandedtitlemargintop 0dp now my second line be cut out of view I need to set app expandedtitlemarginbottom 8dp in order to see the full two line title when I remove app maxline 2 it work as expect it be not clear for I why this happen also collapsingtoolbarlayout be very mysterious consider write some doc on how this thing work
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup some button be not reachable when materialbuttontogglegroup be use inside a horizontalscrollview
Bug
description I want to display a single selection list of button use materialbuttontogglegroup because of the number of button that I want to display some button go beyond the edge of the screen so I nest the materialbuttontogglegroup inside a horizontalscrollview when I set android layout gravity center on materialbuttontogglegroup some button could not be reach with scrolling if I remove android layout gravity center then everything work fine here be some screenshot in the first screenshot button a be out of reach and button b be partially display in the second one I scroll to the right and there be a huge gap after the last button screenshot 1593776619 screenshot 1593776926 expect behavior all button should be reachable no matter what android layout gravity be use source code the follow layout demonstrate the issue xml android api version 29 material library version 1 3 0 alpha01 device any device
materialcomponentsmaterialcomponentsandroid
bottom sheet bottom sheet should clip layout content when be not expand
Bug
description when use shapeappearance or shapeappearanceoverlay on bottom sheet content of bottom sheet layout be not clip to shape appearance expect behavior when use shapeappearance or shapeappearanceoverlay on bottom sheet content of bottom sheet layout should be clip to it s shape and change when it s scroll to expand state no corner source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue demo repository android api version 29 material library version 1 1 0 stable also 1 2 0 beta01 device any to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputlayout nosuchfielderror mtrl textinput box bottom offset
Bug
material library version 1 2 0 beta01 robolectric version 4 3 1 when run ui test with espresso and robolectric they crash in some test configuration consistently on linux and macos regardless whether they re execute in android studio or via gradle command line because of an unknown field like so android view inflateexception binary xml file line 48 binary xml file line 48 error inflating class cause by android view inflateexception binary xml file line 48 error inflating class cause by java lang reflect invocationtargetexception at sun reflect nativeconstructoraccessorimpl newinstance0 native method at sun reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at sun reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java lang reflect constructor newinstance constructor java 423 at android view layoutinflater robo android view layoutinflater createview layoutinflater java 647 at android view layoutinflater createview layoutinflater java at android view layoutinflater robo android view layoutinflater createviewfromtag layoutinflater java 790 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater robo android view layoutinflater createviewfromtag layoutinflater java 730 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater robo android view layoutinflater rinflate layoutinflater java 863 at android view layoutinflater rinflate layoutinflater java at android view layoutinflater robo android view layoutinflater rinflatechildren layoutinflater java 824 at android view layoutinflater rinflatechildren layoutinflater java at android view layoutinflater robo android view layoutinflater rinflate layoutinflater java 866 at android view layoutinflater rinflate layoutinflater java at android view layoutinflater robo android view layoutinflater rinflatechildren layoutinflater java 824 at android view layoutinflater rinflatechildren layoutinflater java at android view layoutinflater robo android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java at android view layoutinflater robo android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java at androidx databinde databindingutil robo androidx databinde databindingutil inflate databindingutil java 126 at androidx databinde databindingutil inflate databindingutil java at androidx databinde viewdatabinding robo androidx databinde viewdatabinding inflateinternal viewdatabinding java 1368 at androidx databinde viewdatabinding inflateinternal viewdatabinding java at ourfragmentbinde inflate ourfragmentbinde java 173 at ourfragmentbinde inflate ourfragmentbinde java 159 at ourfragment oncreateview ourfragment kt 84 at androidx fragment app fragment robo androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragment performcreateview fragment java at androidx fragment app fragmentstatemanager robo androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movetostate fragmentmanager java 1187 at androidx fragment app fragmentmanager movetostate fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movetostate fragmentmanager java 1356 at androidx fragment app fragmentmanager movetostate fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1434 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movetostate fragmentmanager java 1497 at androidx fragment app fragmentmanager movetostate fragmentmanager java at androidx fragment app backstackrecord robo androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app backstackrecord executeops backstackrecord java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager executeop fragmentmanager java 2169 at androidx fragment app fragmentmanager executeop fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1992 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1947 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager execsingleaction fragmentmanager java 1818 at androidx fragment app fragmentmanager execsingleaction fragmentmanager java at androidx fragment app backstackrecord robo androidx fragment app backstackrecord commitnow backstackrecord java 297 at androidx fragment app backstackrecord commitnow backstackrecord java at androidx fragment app testing fragmentscenario 1 robo androidx fragment app testing fragmentscenario 1 perform fragmentscenario java 312 at androidx fragment app testing fragmentscenario 1 perform fragmentscenario java at androidx fragment app testing fragmentscenario 1 perform fragmentscenario java 291 at androidx test core app activityscenario lambda onactivity 2 activityscenario activityscenario java 551 at androidx test core app activityscenario lambda 4 run unknown source at androidx test core app activityscenario onactivity activityscenario java 561 at androidx fragment app testing fragmentscenario robo androidx fragment app testing fragmentscenario internallaunch fragmentscenario java 290 at androidx fragment app testing fragmentscenario internallaunch fragmentscenario java at androidx fragment app testing fragmentscenario robo androidx fragment app testing fragmentscenario launchincontainer fragmentscenario java 272 at androidx fragment app testing fragmentscenario launchincontainer fragmentscenario java at ourfragmentscenariorule launchfragment ourfragmentscenariorule kt 95 at ourfragmentscenariorule launchfragment default ourfragmentscenariorule kt 94 at ourfragmentstepdefinition 1 accept ourfragmentstepdefinition kt 140 at sun reflect nativemethodaccessorimpl invoke0 native method at sun reflect nativemethodaccessorimpl invoke nativemethodaccessorimpl java 62 at sun reflect delegatingmethodaccessorimpl invoke delegatingmethodaccessorimpl java 43 at java lang reflect method invoke method java 498 at cucumber runtime util 1 call util java 26 at cucumber runtime timeout timeout timeout java 16 at cucumber runtime util invoke util java 20 at cucumber runtime java8 java8stepdefinition execute java8stepdefinition java 113 at cucumber runner picklestepdefinitionmatch runstep picklestepdefinitionmatch java 50 at cucumber runner teststep executestep teststep java 65 at cucumber runner teststep run teststep java 50 at cucumber runner picklestepteststep run picklestepteststep java 43 at cucumber runner testcase run testcase java 46 at cucumber runner runner runpickle runner java 50 at io cucumber junit picklerunner nostepdescription run picklerunner java 146 at io cucumber junit featurerunner runchild featurerunner java 68 at io cucumber junit featurerunner runchild featurerunner java 23 at org junit runner parentrunner 3 run parentrunner java 290 at org junit runner parentrunner 1 schedule parentrunner java 71 at org junit runner parentrunner runchildren parentrunner java 288 at org junit runner parentrunner access 000 parentrunner java 58 at org junit runner parentrunner 2 evaluate parentrunner java 268 at org junit runner parentrunner run parentrunner java 363 at io cucumber junit cucumber runchild cucumber java 142 at io cucumber junit cucumber runchild cucumber java 65 at org junit runner parentrunner 3 run parentrunner java 290 at org junit runner parentrunner 1 schedule parentrunner java 71 at org junit runner parentrunner runchildren parentrunner java 288 at org junit runner parentrunner access 000 parentrunner java 58 at org junit runner parentrunner 2 evaluate parentrunner java 268 at io cucumber junit cucumber runcucumber evaluate cucumber java 172 at org junit runner parentrunner run parentrunner java 363 at org junit runner suite runchild suite java 128 at org junit runner suite runchild suite java 27 at org junit runner parentrunner 3 run parentrunner java 290 at org junit runner parentrunner 1 schedule parentrunner java 71 at org junit runner parentrunner runchildren parentrunner java 288 at org junit runner parentrunner access 000 parentrunner java 58 at org junit runner parentrunner 2 evaluate parentrunner java 268 at org junit runner parentrunner run parentrunner java 363 at org junit runner junitcore run junitcore java 137 at org junit runner junitcore run junitcore java 115 at org junit runner junitcore run junitcore java 105 at org junit runner junitcore runclasse junitcore java 62 at org junit runner junitcore runclasse junitcore java 49 at ourfeaturetestrunner testfeature ourfeaturetestrunner kt 24 at sun reflect nativemethodaccessorimpl invoke0 native method at sun reflect nativemethodaccessorimpl invoke nativemethodaccessorimpl java 62 at sun reflect delegatingmethodaccessorimpl invoke delegatingmethodaccessorimpl java 43 at java lang reflect method invoke method java 498 at org junit runner model frameworkmethod 1 runreflectivecall frameworkmethod java 50 at org junit internal runner model reflectivecallable run reflectivecallable java 12 at org junit runner model frameworkmethod invokeexplosively frameworkmethod java 47 at org junit internal runner statement invokemethod evaluate invokemethod java 17 at org robolectric robolectrictestrunner helpertestrunner 1 evaluate robolectrictestrunner java 546 at org robolectric internal sandboxtestrunner 2 lambda evaluate 0 sandboxtestrunner java 252 at org robolectric internal bytecode sandbox lambda runonmainthread 0 sandbox java 89 at java util concurrent futuretask run futuretask java 266 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1149 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 624 at java lang thread run thread java 748 cause by android view inflateexception binary xml file line 13 binary xml file line 13 error inflate class cause by android view inflateexception binary xml file line 13 error inflate class cause by java lang reflect invocationtargetexception at sun reflect nativeconstructoraccessorimpl newinstance0 native method at sun reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at sun reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java lang reflect constructor newinstance constructor java 423 at android view layoutinflater robo android view layoutinflater createview layoutinflater java 647 at android view layoutinflater createview layoutinflater java at android view layoutinflater robo android view layoutinflater createviewfromtag layoutinflater java 790 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater robo android view layoutinflater createviewfromtag layoutinflater java 730 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater robo android view layoutinflater inflate layoutinflater java 492 at android view layoutinflater inflate layoutinflater java at android view layoutinflater robo android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java at androidx databinde databindingutil robo androidx databinde databindingutil inflate databindingutil java 126 at androidx databinde databindingutil inflate databindingutil java at androidx databinde viewdatabinding robo androidx databinde viewdatabinding inflateinternal viewdatabinding java 1368 at androidx databinde viewdatabinding inflateinternal viewdatabinding java at ourviewdropdownbinde inflate ourviewdropdownbinde java 60 at ourviewdropdownbinde inflate ourviewdropdownbinde java 46 at ourdropdownview ourdropdownview kt 84 at ourdropdownview ourdropdownview kt 33 at ourdropdownview ourdropdownview kt at sun reflect nativeconstructoraccessorimpl newinstance0 native method at sun reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at sun reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java lang reflect constructor newinstance constructor java 423 at android view layoutinflater robo android view layoutinflater createview layoutinflater java 647 at android view layoutinflater createview layoutinflater java at android view layoutinflater robo android view layoutinflater createviewfromtag layoutinflater java 790 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater robo android view layoutinflater createviewfromtag layoutinflater java 730 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater robo android view layoutinflater rinflate layoutinflater java 863 at android view layoutinflater rinflate layoutinflater java at android view layoutinflater robo android view layoutinflater rinflatechildren layoutinflater java 824 at android view layoutinflater rinflatechildren layoutinflater java at android view layoutinflater robo android view layoutinflater rinflate layoutinflater java 866 at android view layoutinflater rinflate layoutinflater java at android view layoutinflater robo android view layoutinflater rinflatechildren layoutinflater java 824 at android view layoutinflater rinflatechildren layoutinflater java at android view layoutinflater robo android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java at android view layoutinflater robo android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java at androidx databinde databindingutil robo androidx databinde databindingutil inflate databindingutil java 126 at androidx databinde databindingutil inflate databindingutil java at androidx databinde viewdatabinding robo androidx databinde viewdatabinding inflateinternal viewdatabinding java 1368 at androidx databinde viewdatabinding inflateinternal viewdatabinding java at ourfragmentbinde inflate ourfragmentbinde java 173 at ourfragmentbinde inflate ourfragmentbinde java 159 at ourfragment oncreateview ourfragment kt 84 at androidx fragment app fragment robo androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragment performcreateview fragment java at androidx fragment app fragmentstatemanager robo androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movetostate fragmentmanager java 1187 at androidx fragment app fragmentmanager movetostate fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movetostate fragmentmanager java 1356 at androidx fragment app fragmentmanager movetostate fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1434 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager movetostate fragmentmanager java 1497 at androidx fragment app fragmentmanager movetostate fragmentmanager java at androidx fragment app backstackrecord robo androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app backstackrecord executeops backstackrecord java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager executeop fragmentmanager java 2169 at androidx fragment app fragmentmanager executeop fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1992 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1947 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java at androidx fragment app fragmentmanager robo androidx fragment app fragmentmanager execsingleaction fragmentmanager java 1818 at androidx fragment app fragmentmanager execsingleaction fragmentmanager java at androidx fragment app backstackrecord robo androidx fragment app backstackrecord commitnow backstackrecord java 297 at androidx fragment app backstackrecord commitnow backstackrecord java at androidx fragment app testing fragmentscenario 1 robo androidx fragment app testing fragmentscenario 1 perform fragmentscenario java 312 at androidx fragment app testing fragmentscenario 1 perform fragmentscenario java at androidx fragment app testing fragmentscenario 1 perform fragmentscenario java 291 at androidx test core app activityscenario lambda onactivity 2 activityscenario activityscenario java 551 at androidx test core app activityscenario lambda 4 run unknown source at androidx test core app activityscenario onactivity activityscenario java 561 at androidx fragment app testing fragmentscenario robo androidx fragment app testing fragmentscenario internallaunch fragmentscenario java 290 at androidx fragment app testing fragmentscenario internallaunch fragmentscenario java at androidx fragment app testing fragmentscenario robo androidx fragment app testing fragmentscenario launchincontainer fragmentscenario java 272 at androidx fragment app testing fragmentscenario launchincontainer fragmentscenario java at ourfragmentscenariorule launchfragment ourfragmentscenariorule kt 95 at ourfragmentscenariorule launchfragment default ourfragmentscenariorule kt 94 at ourfragmentstepdefinition 1 accept ourfragmentstepdefinition kt 140 at sun reflect nativemethodaccessorimpl invoke0 native method at sun reflect nativemethodaccessorimpl invoke nativemethodaccessorimpl java 62 at sun reflect delegatingmethodaccessorimpl invoke delegatingmethodaccessorimpl java 43 at java lang reflect method invoke method java 498 at cucumber runtime util 1 call util java 26 at cucumber runtime timeout timeout timeout java 16 at cucumber runtime util invoke util java 20 at cucumber runtime java8 java8stepdefinition execute java8stepdefinition java 113 at cucumber runner picklestepdefinitionmatch runstep picklestepdefinitionmatch java 50 at cucumber runner teststep executestep teststep java 65 at cucumber runner teststep run teststep java 50 at cucumber runner picklestepteststep run picklestepteststep java 43 at cucumber runner testcase run testcase java 46 at cucumber runner runner runpickle runner java 50 at io cucumber junit picklerunner nostepdescription run picklerunner java 146 at io cucumber junit featurerunner runchild featurerunner java 68 at io cucumber junit featurerunner runchild featurerunner java 23 at org junit runner parentrunner 3 run parentrunner java 290 at org junit runner parentrunner 1 schedule parentrunner java 71 at org junit runner parentrunner runchildren parentrunner java 288 at org junit runner parentrunner access 000 parentrunner java 58 at org junit runner parentrunner 2 evaluate parentrunner java 268 at org junit runner parentrunner run parentrunner java 363 at io cucumber junit cucumber runchild cucumber java 142 at io cucumber junit cucumber runchild cucumber java 65 at org junit runner parentrunner 3 run parentrunner java 290 at org junit runner parentrunner 1 schedule parentrunner java 71 at org junit runner parentrunner runchildren parentrunner java 288 at org junit runner parentrunner access 000 parentrunner java 58 at org junit runner parentrunner 2 evaluate parentrunner java 268 at io cucumber junit cucumber runcucumber evaluate cucumber java 172 at org junit runner parentrunner run parentrunner java 363 at org junit runner suite runchild suite java 128 at org junit runner suite runchild suite java 27 at org junit runner parentrunner 3 run parentrunner java 290 at org junit runner parentrunner 1 schedule parentrunner java 71 at org junit runner parentrunner runchildren parentrunner java 288 at org junit runner parentrunner access 000 parentrunner java 58 at org junit runner parentrunner 2 evaluate parentrunner java 268 at org junit runner parentrunner run parentrunner java 363 at org junit runner junitcore run junitcore java 137 at org junit runner junitcore run junitcore java 115 at org junit runner junitcore run junitcore java 105 at org junit runner junitcore runclasse junitcore java 62 at org junit runner junitcore runclasse junitcore java 49 at ourfeaturetestrunner testfeature ourfeaturetestrunner kt 24 at sun reflect nativemethodaccessorimpl invoke0 native method at sun reflect nativemethodaccessorimpl invoke nativemethodaccessorimpl java 62 at sun reflect delegatingmethodaccessorimpl invoke delegatingmethodaccessorimpl java 43 at java lang reflect method invoke method java 498 at org junit runner model frameworkmethod 1 runreflectivecall frameworkmethod java 50 at org junit internal runner model reflectivecallable run reflectivecallable java 12 at org junit runner model frameworkmethod invokeexplosively frameworkmethod java 47 at org junit internal runner statement invokemethod evaluate invokemethod java 17 at org robolectric robolectrictestrunner helpertestrunner 1 evaluate robolectrictestrunner java 546 at org robolectric internal sandboxtestrunner 2 lambda evaluate 0 sandboxtestrunner java 252 at org robolectric internal bytecode sandbox lambda runonmainthread 0 sandbox java 89 at java util concurrent futuretask run futuretask java 266 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1149 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 624 at java lang thread run thread java 748 cause by java lang nosuchfielderror mtrl textinput box bottom offset at com google android material textfield textinputlayout textinputlayout java 278 at com google android material textfield textinputlayout textinputlayout java 247 150 more I be unable to find the said field in the current source so I don t know where it come from actually from what I figure be that it seem to be some kind of diman resource value that apparently be not part of the compile r java though I see it in my module s build output when I grep for it build intermediate re merge debug value value xml 3dp
materialcomponentsmaterialcomponentsandroid
collapsingtexthelper not show in rtl locale android 19
Bug
start from the 1 2 0 alpha02 hint in textinputlayout not show in device run below android 4 4 and I think this be because of change in collapsingtexthelp ltr mode rtl locale 1 3 0 alpha01 google nexus
materialcomponentsmaterialcomponentsandroid
tablayout arraylist get clear when app be background
Bug
description tablayout tabs don t respond to click after be background I ve set breakpoint and notice tablayout clearontabselectedlistener get invoke when the app go to the background I can however still swipe between tab but ontabselectedlistener method don t fire expect behavior I would expect to still be able to switch between page by click on the tab after background the app source code the follow method be invoke after the app be background I assume something internally be listen to the host activity s onpause lifecycle method public class tablayout extend horizontalscrollview private final arraylist selectedlistener new arraylist public void clearontabselectedlistener selectedlistener clear android api version observe on android device run android 10 late as of now material library version 1 1 0 device google 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
bottomappbar performhide isn t work properly
Bug
description I m use the jetpack navigation for fragment transaction well I have a bottomappbar in the activity main xml my app use only dark theme theme materialcomponent say I have two fragment fragmenta and fragmentb in fragmenta bottomappbar should be show and I call performshow in fragmentb bottomappbar should be hide so I call performhide in ondestinationchangedlistener of navcontroller whenever I change the system theme from setting to either light or dark and navigate back to the app bottomappbar show back in fragmentb even though it be expect to be hide android api version 28 and 29 material library version 1 3 0 alpha01 device redmi 3s prime android 9 pocophone f1 android 10
materialcomponentsmaterialcomponentsandroid
materialdatepicker lot of crash
Bug
materialdatepicker be crash all the time here be my code then val builder materialdatepicker builder daterangepicker builder settheme r style customthemeoverlay materialcalendar fullscreen when I remove the colorsurface field then I get the colorsurface error thing when I have it I get this android view inflateexception binary xml file line 23 binary xml file line 17 error inflate class textview cause by android view inflateexception binary xml file line 17 error inflate class textview cause by java lang unsupportedoperationexception fail to resolve attribute at index 5 typedvalue t 0x2 d 0x7f0300ab a 2 at android content re typedarray getcolorstatelist typedarray java 546 at com google android material datepicker materialdatepicker oncreateview materialdatepicker java 209 wtf go on I just use implementation com google android material material 1 3 0 alpha01 the same with the bridge style when I use the build in style with the 1 3 0 alpha01 builder settheme r style themeoverlay materialcomponent materialcalendar then I get the same java lang illegalargumentexception com google android material datepicker materialdatepicker require a value 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
materialcomponentsmaterialcomponentsandroid
materialalertdialog when display on top of bottomsheetdialog screen flicker
Bug
description when show a materialalertdialog on top of a bottomsheetdialog the scrim go very dark and then become light again see the attach gif at 50 speed edit there be video file in the attached repo ezgif com gif maker this be not a great experience for the user as it be quite jarring to see the background change brightness quickly expect behavior I expect the materialalertdialog to not have any issue with the bottomsheetdialog elevation and simply appear on top as it do normally source code within a bottomsheetdialog kotlin materialalertdialogbuilder requirecontext settitle r string dialog close title setmessage r string dialog close message setpositivebutton r string dialog close positive dialog setcancelable true dialog cancel setnegativebutton r string dialog close negative null show see example project android api version test on 27 material library version 1 3 0 alpha01 device emulator
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description I be currently work on an app and have find the bug in the coding that since material 1 2 0 alpha06 if you use a persistent bottomsheet the xml method setpeekheight ignore all enter value and simply set an unchangeable standard expect behavior the method should change set the peek height but instead the value be ignore and eine dort of default ist use android api version 26 29 material library version 1 2 0 alpha06 and follow device emulate device xiaomi mi mix 2s samsung tabs6 we also happily accept pull request update 23 02 2022 the bug be not show on later version I can not reproduce so I be close the issue
materialcomponentsmaterialcomponentsandroid
chipgroup vertical chip spacing can t be reduce below certain dp
Bug
description when set space for chip in a chipgroup spacing should match the give attribute value e g app chipspace 0dp app chipspacingvertical 0dp app chipspacinghorizontal 0dp should result in chip sit right next to each other this work well for horizontal spacing but vertical spacing do not seem to be affect from a certain point expect behavior vertical spacing can be bring down all the way to 0dp source code see attachment android api version 29 device pixel 4 demo project
materialcomponentsmaterialcomponentsandroid
error icon and password icon overlap
Bug
overlap of error icon and show password icon when both be visible image
materialcomponentsmaterialcomponentsandroid
bottomnavigationview itemtextappearanceactive not work
Bug
description attribute app itemtextappearanceactive and app itemtextappearanceinactive be not work as expect they be work in v1 1 0 not work v 1 2 0 beta01 onwards expect behavior screenshot and or description of expect behavior source code app itemtextappearanceactive style bottomnavigationviewactive app itemtextappearanceinactive style bottomnavigationviewinactive android api version android api version here material library version 1 2 0 beta01 device one plus 7 t 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
materialdialog single item layout attribute doesn t seem to work as expect
Bug
description the attribute singlechoiceitemlayout be say to allow to provide a custom layout for the rendering of the single choice item however it doesn t do that and instead the look and feel of the list item on the dialog remain unchanged expect behavior screenshot and or description of expect behavior source code
materialcomponentsmaterialcomponentsandroid
textinputlayout notch styling attribute be make view glitche
Bug
description shortedge at level 27 and above which be make background draw on both side of top notch be make the effect attach below expect behavior screenshot and or description of expect behavior source code item name android windowlayoutindisplaycutoutmode shortedge item android api version 27 above with notch available material library version 1 1 0 but the same on 1 2 beta and 1 3 alpha textinputlayout
materialcomponentsmaterialcomponentsandroid
progressindicator setprogresscompat with animation result in memory leak
Bug
description when call setprogresscompat progress 100 animate true leakcanary be inform I of a leak of the underlying activity for sanity s sake I ve check that setprogresscompat progress 100 animate false doesn t leak full trace here gc root system class android os looper class leak no thread be not leak and a class be never leak static looper smainlooper android os looper instance leak no thread be not leak looper mthread java lang thread instance leak no the main thread always run thread name main thread threadlocal java lang threadlocal threadlocalmap instance leak unknown threadlocal threadlocalmap table java lang threadlocal threadlocalmap entry array leak unknown threadlocal threadlocalmap entry 21 java lang threadlocal threadlocalmap entry instance leak unknown threadlocal threadlocalmap entry value android animation animationhandler instance leak unknown animationhandler manimationcallback java util arraylist instance leak unknown arraylist elementdata java lang object array leak unknown object 1 android animation animatorset instance leak unknown animatorset mlistener java util arraylist instance leak unknown arraylist elementdata java lang object array leak unknown object 0 com google android material progressindicator linearindeterminatedrawable 4 instance leak unknown anonymous subclass of android animation animatorlisteneradapter linearindeterminatedrawable 4 this 0 com google android material progressindicator linearindeterminatedrawable instance leak unknown linearindeterminatedrawable context co cuvva presentation ltm about you ui aboutyouactivity instance leak yes objectwatcher be watch this because co cuvva presentation ltm about you ui aboutyouactivity receive activity ondestroy callback and activity mdestroye be true key 64ef07bf c99d 4498 b3e8 d91df1cf5eca watchdurationmillis 34092 retaineddurationmillis 29091 metadata build version sdk int 29 build manufacturer google leakcanary version 2 4 app process name co cuvva hourly analysis duration 9845 ms expect behavior no leak source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 29 material library version 1 3 0 alpha01 device pixel 2 emulator version 30 0 18
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder set different title size
Bug
description the text size of the title in materialalertdialogbuilder can t be change by define a textsize in the textappearance or by inherit materialalertdialog materialcomponent title text and set the textsize directly the text size of the dialog always seem to fallback to a default size see source code below expect behavior I would expect the text size to change with the textappearance even though the textappearance define a textsize of 16sp or when you directly change it in the title style of the dialog the size doesn t change image the dialog remain unchanged when change the textsize in either the textappearance or directly with android textsize source code I m change the appearance of the dialog by implement the follow styling xml when the dialog be create the theme be set kotlin val builder materialalertdialogbuilder requirecontext r style component temper dialogthemeoverlay the textappearance be correctly set and the text change to the font family that we have set in our designsystem however the text size doesn t change for the dialog title the title be always big we try to set it to 16sp whilst it seem to fallback to around 17 or 18sp xml change the text size directly in the style also doesn t make it small be this a bug or do you have to change the text size a different way android api version 10 material library version com google android material material 1 3 0 alpha01 device test on multiple device and android version but I mainly test on a nexus 5 emulator with android 10
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup materialbutton of materialbuttontogglegroup transparent stroke color be not transparent in fact
Bug
description if materialbutton outline of materialbuttontogglegroup stroke color be set to transparent it will have other color if single materialbutton outline stroke color be set to transparent it will have transparent color