repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
linearprogressindicator when set indicator color programatically track color doesn t change
Bug
be it a bug or feature when set indicator color in xml app indicatorcolor color somecolor the track color display with disabledalpha of indicator color when set color programmatically progress bar setindicatorcolor contextcompat getcolor context r color somecolor the track color doesn t change material library version 1 3 0
materialcomponentsmaterialcomponentsandroid
the style on this component require your app theme to be theme appcompat or a descendant
Bug
description crash in inflate of com google android material bottomnavigation bottomnavigationview start to come on some device only only android 10 there have no change in theme of application or activity expect behavior app should not crash source code app labelvisibilitymode label app layout constraintbottom tobottomof parent app layout constraintend toendof parent app layout constraintstart tostartof parent theme define theme materialcomponent light which I use theme appcompat light what I see on source code of material library I be inflate xml contain bottomnavigationview use viewbinding and for sure use activity context any way this crash be just come for some device log on crashlytic android api version android 10 api 29 material library version 1 2 0 device xiaomi 86 samsung 10 and other real I one plus 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
textinputedittext text get hide when select from google save password
Bug
first of all when I choose username and password textinputedittext from google save password by autofill background color of both edittext get yellow color shade I fix that by add below line in v26 style xml drawable round button but after that get another issue now the text itself hide when choose from google password and right drawable of that field also hide it be visible only after type any text to that my cursor color change from white to blue after choose username and password from google save credential my textinputedittext field text color need to be white and right drawable need to be display how to achieve that I be use below material android library version implementation com google android material material 1 2 1 test this issue in android 10
materialcomponentsmaterialcomponentsandroid
luminosity ratio for the usage datum toggle button be not meet the standard non text contrast ratio
Bug
description foreground to background ratio for the talkback off state toggle button from the default android setting be 1 542 1 expect behavior the non text contrast ratio for the talkback off state toggle button from the default android setting should be great than or equal to 3 0 1 android api version 30 device pixel 3a toggle button off state android setting 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 content description of icon be not read by the screen reader
Bug
description the content description of the icon be not read by the screen reader expect behavior the content description will be read via screen reader or other accessibility system to explain the action of the icon reference setendiconcontentdescription java lang charsequence source code fun textinputlayout setcomplete complete boolean if complete endiconmode textinputlayout end icon custom setendicondrawable r drawable ic valid small setendiconcontentdescription r string complete setendicontintlist contextcompat getcolorstatelist context r color green isendiconvisible true else endiconmode textinputlayout end icon none endicondrawable null endiconcontentdescription null setendicontintlist null isendiconvisible false android api version 29 material library version 1 2 1 device nokia 7 plus with android 10
materialcomponentsmaterialcomponentsandroid
chip set the chip text size result in incorrect padding
Bug
this be especially noticeable for long chip text be no long correctly space my guess be it s never check the new text size and rely on the text size cache when the view be inflate
materialcomponentsmaterialcomponentsandroid
badgedrawable text color do not update if badge reuse when switch dark mode
Bug
description I want the text color of my badge to be different depend on whether dark mode be enable when the badge be originally create the text color be successfully set but subsequent attempt to update the color e g if you switch mode and come back in the attached sample app everything except the badge text color update badge text color do not change interestingly you can see from the log line that the store value retrieve from badge getbadgetextcolor have already be update to reflect the change in dark mode but the color draw do not perhaps the color appear not to change be prevent a redraw I wasn t familiar enough with the code to follow this line of inquiry the attached zip contain a recording demonstrate the issue with the provide sample app expect behavior switch dark mode and call badge setbadgetextcolor color should actually update the text color show on screen source code I add the following to the bottom of mainactivity s oncreate of the bottom navigation activity template in android studio java int flag navview getcontext getresource getconfiguration uimode configuration ui mode night mask boolean darkmode flag configuration ui mode night yes int color darkmode color black color white badgedrawable badge navview getorcreatebadge r i d navigation dashboard log d test badge text color before badge getbadgetextcolor badge setbadgetextcolor color log d test badge text color after badge getbadgetextcolor badge setnumber 1 the attach zip file contain the actual project use android api version 30 material library version the include sample app use 1 2 1 but I also test on the late rc and that also do not work device pixel 3a emulator the zip with sample app and recording can be download from here
materialcomponentsmaterialcomponentsandroid
materialtimepicker you must supply a layout height attribute
Bug
description when I try to open the material timepicker it crash with this error layout material timepicker binary xml file line 35 you must supply a layout height attribute expect behavior should open the time picker source code calendar cal calendar getinstance cal settime mdate cal setlenient false int hour cal get calendar hour int minute cal get calendar minute materialtimepicker materialtimepicker new materialtimepicker builder settimeformat timeformat clock 24h sethour hour setminute minute build android api version 30 and 29 material library version try with com google android material material 1 2 0 and this com google android material material 1 3 0 rc01 device 1 android emulator pixel 4 api 30 2 motorola fusion api 29 3 motorola one power api 29 my concussion as I diagnosis I find that in the layout file material timepicker 27 no line include layout material clock period toggle line no 35 viewgroup java 8429 at android widget linearlayout layoutparams linearlayout java 2023 at android widget linearlayout generatelayoutparams linearlayout java 1917 at android widget linearlayout generatelayoutparams linearlayout java 89 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater parseinclude layoutinflater java 1261 at android view layoutinflater rinflate layoutinflater java 1117 at android view layoutinflater inflate layoutinflater java 654 at android view layoutinflater inflate layoutinflater java 532 at android view layoutinflater inflate layoutinflater java 479 2021 02 03 20 11 36 767 3355 3355 com myapp e androidruntime at com google android material timepicker timepickerview timepickerview java 100 at com google android material timepicker timepickerview timepickerview java 95 at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 852 at android view layoutinflater createviewfromtag layoutinflater java 1004 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate layoutinflater java 1121 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 532 at android view layoutinflater inflate layoutinflater java 479 at com google android material timepicker materialtimepicker oncreateview materialtimepicker java 205 at androidx fragment app fragment performcreateview fragment java 2699 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1199 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1368 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1446 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1509 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2181 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 2004 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1959 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1861 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 223 at android app activitythread main activitythread java 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947
materialcomponentsmaterialcomponentsandroid
material 1 2 1 nosuchmethoderror crash specific for android 10
Bug
description nosuchmethoderror crash specific for android 10 expect behavior not crash stack trace fatal exception java lang nosuchmethoderror no virtual method getmandatorysystemgestureinset landroidx core graphic inset in class landroidx core g ae or its super class declaration of androidx core g ae appear in base apk at com google android material bottomsheet bottomsheetbehavior 3 onapplywindowinset bottomsheetbehavior java 1276 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 10559 at android view viewgroup dispatchapplywindowinset viewgroup java 7256 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewgroup brokendispatchapplywindowinset viewgroup java 7268 at android view viewgroup dispatchapplywindowinset viewgroup java 7258 at android view viewrootimpl dispatchapplyinset viewrootimpl java 2025 at android view viewrootimpl performtraversal viewrootimpl java 2276 at android view viewrootimpl dotraversal viewrootimpl java 1819 at android view viewrootimpl traversalrunnable run viewrootimpl java 7783 at android view choreographer callbackrecord run choreographer java 1058 at android view choreographer docallback choreographer java 865 at android view choreographer doframe choreographer java 800 at android view choreographer framedisplayeventreceiver run choreographer java 1043 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 224 at android app activitythread main activitythread java 7562 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 539 at com android internal os zygoteinit main zygoteinit java 950 android api version 10 material library version 1 2 1 device xiaomi
materialcomponentsmaterialcomponentsandroid
circular progress indicator do not work on api 22 only
Bug
description inflate and put an indeterminate circular spin indicator programmatically in a layout and try to start the app for the record I ve set it as the actionview for a menu but I bet it s the same for every other case expect behavior the progress indicator should be visible and spin this be not the case on api 22 where the progress indicator doesn t spin at all from my test it work on api 19 21 23 24 29 and doesn t work on api 22 only source code loading xml main class override public boolean oncreateoptionsmenu menu menu menu finditem r i d item setactionview r layout load android api version 22 material library version 1 3 0 rc01 1 3 0 stable 1 4 0 alpha02 1 4 0 stable 1 6 0 alpha01 1 7 0 alpha01 device emulator x86 or x86 64
materialcomponentsmaterialcomponentsandroid
material date picker last week of january 2021 be not fully load when the calendar be open in swedish locale
Bug
on a tablet run in the swedish locale language set to swedish the last week of most month be miss when the calendar be first open one way I find to get it to show up be by press any random date as show in the attach video tap the month selection arrow to go to the month of march and back to january also seem to correct this problem also minimize the app and restore it will resolve the problem the video attach be from a samsung tablet run android 10 material design version 1 3 0
materialcomponentsmaterialcomponentsandroid
textinputlayout clear text end icon be visible for field when edittext text content be modify via code
Bug
description the clear text end icon be display if we modify the text of the edittext via code for example via settext expect behavior the clear text end icon should not be display if the textinputlayout be not focus source code the issue be present when use settext on the child edittext kotlin override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val edittext findviewbyid r i d edittext edittext settext r string end icon not work xml android api version 28 material library version 1 3 0 rc01 device samsung galaxy s10 sm g973f
materialcomponentsmaterialcomponentsandroid
materialbutton opaque shape inside button
Bug
description there be an opaque shape inside button it be visible when background tint be set to a transparent color expect behavior opaque shape shouldn t be available source code android api version all version material library version 1 2 0 device xiomi redmi 8
materialcomponentsmaterialcomponentsandroid
transition strictmode leakedclosableviolation on android 11
Bug
description when strict mode detectleakedclosableobject be enable when do a share element transition use the material transition library it be observe that after a few trial it crash on android 11 device expect behavior no crash even after do the share element transition many time step to reproduce this can be reproduce by add strictmode setthreadpolicy strictmode threadpolicy builder detectall penaltylog build strictmode setvmpolicy strictmode vmpolicy builder detectleakedsqlliteobject detectleakedclosableobject penaltylog penaltydeath build to the disneyapplication oncreate for example in the disney motion demonstration of the material transition and then after run the app open and close a disney card multiple time on an android 11 device until it crash we have be notice a crash after about every 15 16 time stacktrace d strictmode strictmode policy violation android os strictmode leakedclosableviolation a resource be acquire at attached stack trace but never release see java io closeable for information on avoid resource leak callsite readfromparcel at android os strictmode androidcloseguardreporter report strictmode java 1929 at dalvik system closeguard warnifopen closeguard java 305 at android view surfacecontrol finalize surfacecontrol java 1104 at java lang daemon finalizerdaemon dofinalize daemon java 291 at java lang daemon finalizerdaemon runinternal daemon java 278 at java lang daemon daemon run daemon java 139 at java lang thread run thread java 923
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
tab in tablayout not fill to parent in hdpi device
Bug
description I have a tab in my application at bottom I be use com google android material tabs tablayout for it the issue I m face be the two tab get centre with wrap content I search at max most of the developer suggest set the tabmaxwidth to 0dp tabmode to fix and tabgravity to fill I try with this solution but nothing be work for I I m deal with this minor issue for more than a day expect behavior tab should be fill with the match parent width source code android api version for all api version but for only hdpi and mdpi device material library version materail version 1 3 0 alpha01 device hdpi emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
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
app passwordtoggleenable true have bug until 1 3 0 beta01 to 1 3 0 rc01
Bug
password hide password show
materialcomponentsmaterialcomponentsandroid
autocompletetextview expose dropdown menu not show item
Bug
description expose dropdown menu implement an expose dropdown menu doesn t show item after user selection and fragment transition follow be the basic xml declaration and the declare code on the fragment inside onviewcreate val item listof material design component android val adapter arrayadapter requirecontext r layout item menu item dropdown setadapter adapter dropdown settext item 0 false as mention here expose dropdown menu it be set on autocompletetextview s settext method dropdown settext false the filter parameter as false however after navigate to a next fragment and come back to it only the pre select text be show on the dropdown fragment be change use navigation component v 2 3 2 expect behavior dropdown should show all item android api version android api 30 material library version 1 3 0 rc01 device emulator pixel 4 xl
materialcomponentsmaterialcomponentsandroid
android fragment and slide menu navigation
Bug
I have implement slide menu navigation in my app like in this picture when the user click an item in the slide menu a fragment be create for the correspond menu entry and it replace any exist fragment when the use navigate far away for example the top level fragment be a thinglistfragment for a list of thing and he tap one to open a thingdetailfragment then I want to replace the slide menu icon with an icon of a back arrow so the user must first go back to the top level either by this button or by hardware back button before be able to access the menu image
materialcomponentsmaterialcomponentsandroid
materialbutton icongravity textstart work incorrectly with multi line text
Bug
description when a materialbutton use icongravity textstart and have text with line break its icon be position too far away as if the text be single line 2 multi line 1 single line expect behavior icon position close to the text android api version 21 30 material library version 1 2 1 1 3 0 rc01 device layout preview in android studio device emulator
materialcomponentsmaterialcomponentsandroid
circularprogressindicator error inflate class circularprogressindicator with api 19
Bug
description problem use themed circularprogressindicator with api 19 expect behavior no crash source code have the follow main theme xml and this style xml I get the follow crash binary xml file line 46 error inflate class com google android material progressindicator circularprogressindicator reason seem to be trackthickness android api version 19 material library version 1 3 0 rc01 device simulator pixel 2 api 19
materialcomponentsmaterialcomponentsandroid
linearprogressindicator linearprogressindicator do not show when use androidx fragment 1 3 0 rc01
Bug
description linearprogressindicator in material component 1 3 0 rc01 do not show when use androidx fragment 1 3 0 rc01 the same code work correctly with fragment 1 2 5 expect behavior linearprogressindicator should also work with androidx fragment 1 3 0 rc01 android api version android 10 material library version 1 3 0 rc01 device emulator api 30
materialcomponentsmaterialcomponentsandroid
matrial design spec be md state additive or not
Bug
material library version the recent material design spec description follow the spec principle additive when multiple state occur at once such as selection and hover both state indicator should be display anatomy overlay only one state layer be apply at a time for example if an element be first focus and then hover the hover state layer will be show only until the hover be complete then return to the focus state layer if the element be still focus so be overlay additive or apply only one at a time if we carefully read the spec we will find the next allow state combination can be combine in both way hover focus hover select hover activate focus activate focus select press hover press select can be combine in one way only press focus focus state can be represent in combination with hover activate or select state press state can be combine with hover focus activate or select state press activate activate state can be represent in combination with hover and focus state press state can be combine with hover focus activate or select state select drag select state can be represent in combination with hover focus press or drag state there be no list of allow state to combine with drag as it s provide explicitly for the other state state combination so it s not clear many state at a time see principle additive section of the spec one state at a time see anatomy overlay section of the spec if many state at a time allow then how several overlay must be apply variant all realte overlay per each current state only one overlay with sum of all state opacity only one overlay with maximum opacity find in all apply state principle distinct of the spec tell state must have clear affordance distinguish they from one other and the surround ui emphasize accord to their priority level what be these priority level for all list state be the hover deemphasize state have high priority than focus high emphasis state as it show in anatomy overlay section or vice versa what about hover deemphasize and error no emphasis provide state priority spec inconsistency the pressed spec show 16 overlay opacity on in press section and the same spec show 12 overlay opacity in the anatomy section so what press overlay opacity value be correct 12 or 16 what about overlay opacity value for previosly focus component in activate state like checkbox radio button etc when I hover over it and go to the press state for it be it all 4 overlay on the same time must be apply this will make all content of such component almost not visible because follow the spec for on primary background it will give 24 8 32 24 88 of combine overlay opacity why the md spec be so inconsistent after 7 year of edit p s why the most of the state be have ed suffix except focus mix with focused in many place and hover mix with hovered in many place what be so special in word focus or hover why they can t be consistent with with select press activate and drag name p p s where to ask discuss fix all these md inconsistence issue in what github repository be it any slack discord group to clarify the md spec question with md developer for example I want to migrate from the current material design color tool base on the ancient lab color space with know non uniform hue issue and lot of know deltae 2000 issue to the recent state of the art more hue lightness chrome stable and uniform color space like jzazbz or cam 16 in what group or chat I should discuss it another example I want to fix ton of issue in md icon just check mdi norm repository or see the gallery or issue and duplicate where I can do it
materialcomponentsmaterialcomponentsandroid
materialdatepicker day of the week not color correctly
Bug
I m try to apply custom theme to date picker by override colorprimary to a blue shade colorsurface to a dark gray shade and coloronsurface to a light gray shade for dark mode though most part of the ui be color correctly the day of the week be not screenshot notice how day of the week be black expect behavior day of the week use coloronsurface source code I think daysofweekadapter java isn t apply styling to the text like monthadapter java or yeargridadapter java do which I suspect be a bug android api version 10 material library version 1 2 0 device pixel3
materialcomponentsmaterialcomponentsandroid
appbarlayout snap behavior bug
Bug
description there be a bug with appbarlayout in how it calculate snapbottom within snaptochildifneede the issue happen when the appbarlayout have more than one child for example collapsingtoolbarlayout and another view below it such as tablayout after scroll the collapse toolbar expand again automatically the logical error be in the follow code in snaptochildifneede java if offsetchildindex abl getchildcount 1 if this be the last child we need to take the top inset into account snapbottom abl gettopinset the top inset be only use for the last child which in this case would be tablayout I think instead of the last child the first child need to take the top inset into account so logic should be java if offsetchildindex 0 snapbottom abl gettopinset 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 30 material library version 1 2 0 device pixel 4a
materialcomponentsmaterialcomponentsandroid
materialbutton text misalignment with icon with viewstart alignment
Bug
description textalignment be be offset base on the icon intrinsicwidth when set as viewstart cause the button text to not be properly center this be more prominently see when the button s width be set at match constraint as oppose to wrap content expect behavior button text to remain horizontally center regardless of icon placement android api version api 29 and 30 test so far material library version com google android material material 1 2 1 device pixel 3 xl and pixel 4 xl so far
materialcomponentsmaterialcomponentsandroid
materialcardview check icon could not be tint on android 21
Bug
description when use a checkable materialcardview when check the materialcardview the checkicon be black whatever the tint of the set drawable or drawable resource expect behavior the check icon be tint as specify source code all of those solution be not work when use plain xml when use plain code materialcardview ischecke true materialcardview checkedicontint colorstatelist valueof coloronbackground materialcardview checkedicon drawablecompat wrap resource getdrawable r drawable lock apply drawablecompat settint this coloronbackground not that set a wrap tint drawablecompat drawable everywhere else worke as expect imageview view background etc but not the check drawable of materialcardview drawablecompat wrap resource getdrawable r drawable lock apply drawablecompat settint this coloronbackground android api version 16 17 18 19 20 material library version 1 2 1 and 1 3 0 rc01 device emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
searchview rtl doesn t apply to r i d search src text
Bug
description when change the layout direction the searchview hint text or input text be not honor the set hint input text look incorrect when rtl rtl screen hint text input text hint input text look correct when ltr ltr screen hint text input text expect behavior to honor the set source code android api version 29 material library version com google android material material 1 2 1 device pixel 4xl
materialcomponentsmaterialcomponentsandroid
textinputlayout autocompletetextview not show correctly
Bug
I create a spinner use textinputlayout autocompletetextview and outlinedbox exposeddropdownmenu style but the hint be not show correctly see image whatsapp image 2021 01 15 at 17 16 59 you can see how gender hint be overlap the outlinedbox this be the code material library version I use material 1 2 1 but also try the late material 1 3 0 rc01 device samsung galaxy s8 sm g950f api 28
materialcomponentsmaterialcomponentsandroid
materialalertdialog colorcontrolhighlight selector crash
Bug
description have a theme that extend materialcomponent and override colorcontrolhighlight with a color selector for example will crash any materialalertdialog in some device the temporary fix be to use a color instead of a selector this should not happen stacktrace process com xx xx debug pid 10397 android view inflateexception binary xml file line 33 binary xml file line 33 error inflate class 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 android view view performclick view java 5198 at android view view performclick run view java 21147 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 expect behavior no crash should occur in certain device android api version min 22 material library version 1 3 0 beta01 device emulator pixel xl api 22
materialcomponentsmaterialcomponentsandroid
textinputlayout unexpected behavior when set endicondrawable with arabic rtl locale
Bug
screenshot 20210114 181259 01 description textinputlayout show extra space at the start of view when set endicondrawable when the locale be rtl ar while it s work fine with english locale expect behavior no space should be add at the start of view when set endicondrawable source code android api version above 21 material library version 1 3 0 beta01
materialcomponentsmaterialcomponentsandroid
textinputlayout placeholder gravity not work as expect
Bug
description I set the gravity inside placeholdertextappearance as center to match the text alignment of the textinputedittext but it do not center I ve also center the placeholder textalignment and still no effect expect behavior the text gravity of the placeholder should be as set in placeholdertextappearance source code style textinputlayout code picture image android api version 29 material library version 1 3 0 beta01 device xiaomi pocophone f1
materialcomponentsmaterialcomponentsandroid
textinputlayout textinputedittext set the background to transparent doesn t render outlinedbox or filledbox
Bug
description perhaps this issue be more about not rely on set either the textinputlayout or textinputedittext background to be transparent in order to use the no background text field neither outlinedbox nor filledbox the follow cause not to render the outlinedbox or filledbox or expect behavior if the style hasn t be specify then the component should default to the no background text field neither outlinedbox nor filledbox android background android color transparent should do the same as android background null set the background to null render properly the textinputlayout background null screen source code background transparent screen android api version 30 material library version com google android material material 1 3 0 alpha04 device pixel 4xl
materialcomponentsmaterialcomponentsandroid
snackbar empty space between gesture navigation bar and snackbar when snackbar be use in coordinatorlayout and appcompat theme
Bug
description after update to material 1 1 0 alpha10 and later when snackbar be use in the coordinatorlayout the app be use appcompat base theme and user have android 10 gesture navigation enable device there be an empty space between navigation bar and the snackbar the issue can be reproduce with this project try to override snackbarstyle in the app s theme e g set layout margin or padding to 0 doesn t have any effect expect behavior there be no empty space between navigation bar and the snackbar source code android api version 29 and later android 10 11 material library version the wrong behavior be introduce in 1 1 0 alpha10 the issue be still reproducible with 1 3 0 beta01 device pixel 2xl android 11 most likely other android 10 device with gesture navigation enable be affect
materialcomponentsmaterialcomponentsandroid
materialtimepicker button unreachable in landscape mode
Bug
description in landscape mode with big font display size part of the dialog be unreachable probably some kind of scroll need here android api version 30 material library version com google android material material 1 3 0 beta01 device pixel 4 image
materialcomponentsmaterialcomponentsandroid
materialdatepicker crash on date choose if monthadapter scroll
Bug
description there be a crash in landscape mode with a big font display size when select day from last row java lang nullpointerexception attempt to invoke virtual method void android widget textview setenable boolean on a null object reference at com google android material datepicker monthadapter updateselectedstate monthadapter java 164 at com google android material datepicker monthadapter updateselectedstatefordate monthadapter java 157 at com google android material datepicker monthadapter updateselectedstate monthadapter java 146 at com google android material datepicker monthspageradapter onbindviewholder monthspageradapter java 114 at com google android material datepicker monthspageradapter onbindviewholder monthspageradapter java 38 at androidx recyclerview widget recyclerview adapter onbindviewholder recyclerview java 7065 at androidx recyclerview widget recyclerview adapter bindviewholder recyclerview java 7107 at androidx recyclerview widget recyclerview recycler trybindviewholderbydeadline recyclerview java 6012 at androidx recyclerview widget recyclerview recycler trygetviewholderforpositionbydeadline recyclerview java 6279 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6118 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6114 at androidx recyclerview widget linearlayoutmanag layoutstate next linearlayoutmanager java 2303 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1627 at androidx recyclerview widget linearlayoutmanager fill linearlayoutmanager java 1587 at androidx recyclerview widget linearlayoutmanag onlayoutchildren linearlayoutmanag java 665 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4134 at androidx recyclerview widget recyclerview onmeasure recyclerview java 3540 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurehorizontal linearlayout java 1204 at android widget linearlayout onmeasure linearlayout java 723 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 android api version 30 material library version com google android material material 1 3 0 beta01 device pixel 4
materialcomponentsmaterialcomponentsandroid
textinputlayout textinputedittext the style be break when use it programmatically
Bug
description I m try to create a textinputlayout programmatically and put it in a alertdialog but the style be completely break kotlin val view textinputlayout this null r style widget materialcomponent textinputlayout filledbox also it hint gettext r string medicalrecord hint height it setboxbackgroundcolorresource r color dark gray it boxbackgroundmode textinputlayout box background fill it setstarticondrawable r drawable medicalrecord height it addview textinputedittext it context viewgroup layoutparam match parent viewgroup layoutparams wrap content alertdialog builder this setview view show image expect behavior xml kotlin val heightbinde by viewbinde viewweightorheightbinde inflate heightbinde input also it hint gettext r string medicalrecord hint height it setstarticondrawable r drawable medicalrecord height alertdialog builder this setview bind root show image android api version android api 22 material library version 1 2 1 device android emulator
materialcomponentsmaterialcomponentsandroid
materialdatepicker get selection on null object reference
Bug
description after build the date picker with an initial selection if I want to retrieve that selection this exception be throw java lang nullpointerexception attempt to invoke interface method java lang object com google android material datepicker dateselector getselection on a null object reference expect behavior if an initial selection be set in the builder retrieve that selection could be possible source code val datepickerbuilder materialdatepicker builder daterangepicker datepickerbuilder apply settitletext select a date settheme r style materialcalendartheme setselection pair materialdatepicker todayinutcmillisecond materialdatepick todayinutcmillisecond val dp datepickerbuilder build dp selection throw exception material library version 1 3 0 beta01
materialcomponentsmaterialcomponentsandroid
materialdatepicker can t change status bar color
Bug
description when an app display fullscreen materialdatepicker the status bar color be always black this issue be noticable even in the material android catalog app I try change the status bar color use android statusbarcolor and android windowlightstatusbar but it didn t have any effect expect behavior status bar color respect theme of the app or can be at least overridden in theme style source code android api version I test it on api 30 and 23 material library version 1 2 1 device emulator 30 and 23
materialcomponentsmaterialcomponentsandroid
autocompletetextview re announce the activity title after item selection
Bug
description implement the expose dropdown menu as explain here under implement an expose dropdown menu use text field turn on talkback and select an item in the dropdown talkback will re announce the title of the activity after the dropdown item selection most likely this be due to the listpopupwindow that the autocompletetextviewuse be outside the current view hierarchy expect behavior talkback should not announce the title of the activity when use a dropdown source code implement the expose dropdown menu as explain here under implement an expose dropdown menu use text field android api version api 29 material library version com google android material material 1 2 1 device emulate pixel 3a
materialcomponentsmaterialcomponentsandroid
date picker select date text not align vertically when run in fragment scenario
Bug
description this issue be somewhat minor since it only affect testing but when do screenshot testing and manual screenshot review for content and layout correctness by non devs it become a bit more of an issue when open the material date picker inside a fragment scenario test override the theme with the app s theme the select date text be incorrectly align this only occur in fragment scenario test and not when the app be run normally it be also the only difference I can spot between the app theme run in an app versus the same app theme run in a fragment scenario screenshot from layout inspector show border from what I can tell the view appear to be miss its paddingtop property when run in a fragment scenario test image expect behavior calendar should have the correct text alignment image android api version 29 material library version 1 3 0 alpha04 device samsung galaxy s10 though I ve see it occur on other device and in the emulator
materialcomponentsmaterialcomponentsandroid
theme materialcomponent activity background color not set
Bug
description issue start since 1 3 0 alpha04 but not affect all the device I personally don t have issue neither I be possible to reproduce it while some of the user have it I have attach video of the issue background should be dark as I set in theme I m use the same approach for year without issue this be the line use for the background android api version 29 material library version 1 3 0 alpha04 1 3 0 beta01 device samsung note 10
materialcomponentsmaterialcomponentsandroid
materialtimepicker error inflate materialtimepicker miss layout height attribute
Bug
description with the late update to 1 3 0 beta01 my app crash when try to show the materialtimepicker dialog here be the stack trace of the crash cause by android view inflateexception binary xml file line 46 in my app i d 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 852 at android view layoutinflater createviewfromtag layoutinflater java 1004 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate layoutinflater java 1121 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 532 at android view layoutinflater inflate layoutinflater java 479 at com google android material timepicker materialtimepicker oncreateview materialtimepicker java 205 at androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1187 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1356 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1434 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1497 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2169 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1992 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1947 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1849 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 223 at android app activitythread main activitythread java 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947 cause by android view inflateexception binary xml file line 27 in my app i d layout material timepicker binary xml file line 35 you must supply a layout height attribute cause by java lang unsupportedoperationexception binary xml file line 35 you must supply a layout height attribute at android content re typedarray getlayoutdimension typedarray java 830 at android view viewgroup layoutparam setbaseattribute viewgroup java 8232 at android view viewgroup marginlayoutparam viewgroup java 8429 at android widget linearlayout layoutparams linearlayout java 2023 at android widget linearlayout generatelayoutparams linearlayout java 1917 at android widget linearlayout generatelayoutparams linearlayout java 89 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater parseinclude layoutinflater java 1261 at android view layoutinflater rinflate layoutinflater java 1117 at android view layoutinflater inflate layoutinflater java 654 2020 12 28 15 22 07 350 1705 1705 my app i d e androidruntime at android view layoutinflater inflate layoutinflater java 532 at android view layoutinflater inflate layoutinflater java 479 at com google android material timepicker timepickerview timepickerview java 100 at com google android material timepicker timepickerview timepickerview java 95 at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 852 at android view layoutinflater createviewfromtag layoutinflater java 1004 at android view layoutinflater createviewfromtag layoutinflater java 959 at android view layoutinflater rinflate layoutinflater java 1121 at android view layoutinflater rinflatechildren layoutinflater java 1082 at android view layoutinflater inflate layoutinflater java 680 at android view layoutinflater inflate layoutinflater java 532 at android view layoutinflater inflate layoutinflater java 479 at com google android material timepicker materialtimepicker oncreateview materialtimepicker java 205 at androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1187 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1356 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1434 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1497 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2169 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1992 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1947 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1849 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java 938 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 223 at android app activitythread main activitythread java 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947 I don t define the time picker in a layout file at all in my app only programmatically the crash seem to be come from the library s xml layout file from what I can see in the trace expect behavior no crash when execute the dialog show method source code private lateinit var materialtimepicker materialtimepicker materialtimepicker materialtimepicker builder settitletext title sethour jodalocaltime hourofday setminute jodalocaltime minuteofhour settimeformat timeformat clock 12h build show the material time picker materialtimepicker show requireactivity supportfragmentmanager materialtimepicker tostre android api version android 11 30 material library version 1 3 0 beta01 device pixel 3xl
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment snackbar invisible when show from bottomsheetdialogfragment
Bug
description full description of issue here snackbar invisible when show from bottomsheetdialogfragment expect behavior screenshot and or description of expect behavior snackbar visible when show from bottomsheetdialogfragment source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue class mybottomsheetdialogfragment bottomsheetdialogfragment override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle view createmyview override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate snackbar make view test snackbar length indefinite show 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 2 1 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request bottomsheet have a default elevation 16dp while snackbar have a default elevation 6dp maybe botomsheettheme should override the default snackbar style to have a large elevation
materialcomponentsmaterialcomponentsandroid
materialcardview support cliptooutline in a general way
Bug
currently in materialcardview I want my card to be cut from all corner without clip the content but it be not possible because if I use shape appearance then my card will get default clip if I remove that then my content will be over the corner
materialcomponentsmaterialcomponentsandroid
materialdatepicker mix of locale below api 26
Bug
description in my app I allow the user to select a locale different from the device s locale on android 8 0 api 26 and above the date picker show everything correctly use the locale select by the user however below api 26 the picker show a mix of the user s locale and the device s locale like this date picker in this screenshot the device s locale be english and the user s locale be spanish as the screenshot show the title of the picker and the button appear correctly in spanish the user s locale but day name and month name appear incorrectly in english the device s locale expect behavior all string should appear use the select user s locale in all api s instead of only api 26 source code not relevant as the locale be not selectable in date picker android api version test on apis 16 through 30 with android studio emulator material library version 1 3 0 beta01 device test on apis 16 through 30 with android studio emulator note I don t know if you have this on your plan but it could be useful to have the option to force the locale when build the picker
materialcomponentsmaterialcomponentsandroid
circularprogressindicator white transparent line on progress indicator end when use rounded track
Bug
description when enable rounded end on the progress indicator use trackcornerradius there be fine white transparent line at the beginning and end of the actual progress indicator as well as in the middle of the round corner see this screenshot image expect behavior no white transparent line on progress indicator source code xml android api version test on api level 30 material library version 1 3 0 beta01 device pixel 2 android 11
materialcomponentsmaterialcomponentsandroid
materialdatepicker switch mode cause crash
Bug
description follow workflow only crash on my api 30 emulator 1 open materialdatepicker 2 switch to text mode 3 switch to calendar mode 4 half of calendar not visible and click on any date cause crash stack trace java lang nullpointerexception attempt to invoke virtual method void android widget textview setenable boolean on a null object reference at com google android material datepicker monthadapter updateselectedstate monthadapter java 164 at com google android material datepicker monthadapter updateselectedstatefordate monthadapter java 157 at com google android material datepicker monthadapter updateselectedstate monthadapter java 140 at com google android material datepicker monthspageradapter onbindviewholder monthspageradapter java 114 at com google android material datepicker monthspageradapter onbindviewholder monthspageradapter java 38 at androidx recyclerview widget recyclerview adapter onbindviewholder recyclerview java 7228 at androidx recyclerview widget recyclerview adapter bindviewholder recyclerview java 7308 at androidx recyclerview widget recyclerview recycler trybindviewholderbydeadline recyclerview java 6175 at androidx recyclerview widget recyclerview recycler trygetviewholderforpositionbydeadline recyclerview java 6441 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6281 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6277 at androidx recyclerview widget linearlayoutmanag layoutstate next linearlayoutmanager java 2330 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1631 at androidx recyclerview widget linearlayoutmanager fill linearlayoutmanager java 1591 at androidx recyclerview widget linearlayoutmanag onlayoutchildren linearlayoutmanag java 668 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4277 at androidx recyclerview widget recyclerview onmeasure recyclerview java 3654 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget linearlayout measurechildbeforelayout linearlayout java 1552 at android widget linearlayout measurevertical linearlayout java 842 at android widget linearlayout onmeasure linearlayout java 721 at android view view measure view java 25466 at android view viewgroup measurechildwithmargin viewgroup java 6957 at android widget framelayout onmeasure framelayout java 194 at com android internal policy decorview onmeasure decorview java 747 at android view view measure view java 25466 at android view viewrootimpl performmeasure viewrootimpl java 3397 at android view viewrootimpl measurehierarchy viewrootimpl java 2201 at android view viewrootimpl performtraversal viewrootimpl java 2486 at android view viewrootimpl dotraversal viewrootimpl java 1952 at android view viewrootimpl traversalrunnable run viewrootimpl java 8171 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 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947 expect behavior the full calendar be still visible after switch mode android api version 30 material library version 1 3 0 beta01 device nexus 6 emulator
materialcomponentsmaterialcomponentsandroid
materialtimepicker design issue api 15
Bug
description I find some design issue when I be test on an emulator with api 15 I don t know exactly if this api version be support but this be the flaw I find no left margin padding on title minute be not center inside its rectangle background no left margin padding on be pm toggle text of initial select hour be not visible only on first start image expect behavior image source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version api 15 material library version 1 3 0 beta01 device galaxy nexus emulator
materialcomponentsmaterialcomponentsandroid
monthadapter nullpointerexception on monthadapter updateselectedstate monthadapter java 164
Bug
description we receive a nullpointerexception on the materialdatepicker component we don t have more information except the firebase crashlytic log information expect behavior at the source code should be a check first if the object isn t null source code fatal exception java lang nullpointerexception attempt to invoke virtual method void android widget textview setenable boolean on a null object reference at com google android material datepicker monthadapter updateselectedstate monthadapter java 164 at com google android material datepicker monthadapter updateselectedstatefordate monthadapter java 157 at com google android material datepicker monthadapter updateselectedstate monthadapter java 146 at com google android material datepicker monthspageradapter onbindviewholder monthspageradapter java 114 at com google android material datepicker monthspageradapter onbindviewholder monthspageradapter java 38 at androidx recyclerview widget recyclerview adapter onbindviewholder recyclerview java 7093 at androidx recyclerview widget recyclerview adapter bindviewholder recyclerview java 7172 at androidx recyclerview widget recyclerview recycler trybindviewholderbydeadline recyclerview java 6037 at androidx recyclerview widget recyclerview recycler trygetviewholderforpositionbydeadline recyclerview java 6304 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6143 at androidx recyclerview widget recyclerview recycler getviewforposition recyclerview java 6139 at androidx recyclerview widget linearlayoutmanag layoutstate next linearlayoutmanager java 2314 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1631 at androidx recyclerview widget linearlayoutmanager fill linearlayoutmanager java 1591 at androidx recyclerview widget linearlayoutmanag onlayoutchildren linearlayoutmanag java 668 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4141 at androidx recyclerview widget recyclerview onmeasure recyclerview java 3542 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget linearlayout measurechildbeforelayout linearlayout java 1562 at android widget linearlayout measurevertical linearlayout java 849 at android widget linearlayout onmeasure linearlayout java 728 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget linearlayout measurechildbeforelayout linearlayout java 1562 at android widget linearlayout measurevertical linearlayout java 849 at android widget linearlayout onmeasure linearlayout java 728 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget linearlayout measurechildbeforelayout linearlayout java 1562 at android widget linearlayout measurevertical linearlayout java 849 at android widget linearlayout onmeasure linearlayout java 728 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget linearlayout measurechildbeforelayout linearlayout java 1562 at android widget linearlayout measurevertical linearlayout java 849 at android widget linearlayout onmeasure linearlayout java 728 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget linearlayout measurechildbeforelayout linearlayout java 1562 at android widget linearlayout measurevertical linearlayout java 849 at android widget linearlayout onmeasure linearlayout java 728 at android view view measure view java 24742 at android view viewgroup measurechildwithmargin viewgroup java 6903 at android widget framelayout onmeasure framelayout java 194 at com android internal policy decorview onmeasure decorview java 896 at android view view measure view java 24742 at android view viewrootimpl performmeasure viewrootimpl java 3211 at android view viewrootimpl measurehierarchy viewrootimpl java 1947 at android view viewrootimpl performtraversal viewrootimpl java 2295 at android view viewrootimpl dotraversal viewrootimpl java 1857 at android view viewrootimpl traversalrunnable run viewrootimpl java 8089 at android view choreographer callbackrecord run choreographer java 1057 at android view choreographer docallback choreographer java 875 at android view choreographer doframe choreographer java 776 at android view choreographer framedisplayeventreceiver run choreographer java 1042 at android os handler handlecallback handler java 888 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 213 at android app activitythread main activitythread java 8178 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 513 at com android internal os zygoteinit main zygoteinit java 1101 android api version 29 android 10 material library version 1 3 0 alpha04 device huawei p smart 2019 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 activate the error state without error text
Bug
description sometimes we need to activate the error state of the textinputlayout but send an empty text be not activate it so we have to send a space as a text to activate the error state this be cause an empty space below the textinputlayout be there a way to activate the error state without send a text or to hide the error text view default state error state check empty space since the error text be visible material library version 1 3 0 alpha01
materialcomponentsmaterialcomponentsandroid
material cardview child not be clip when material cardview have round corner below api 29
Bug
description on api 28 and below when use a material card view with rounded corner child such as other material card view be not clip and instead overlap the rounded corner expect behavior source code just make a simple material card view with rounded corner put a nest scrollview inside and scroll through other material cardview child and you will see on api 28 and below they be not clip and spill over the corner android api version bug visible on api 28 and below material library version 1 2 1 device emulator pixel 4xl api 28
materialcomponentsmaterialcomponentsandroid
textinputlayout invalid email address error overlap endicon
Bug
description 1 create a textinputlayout with a textinputedittext 2 set input type email address in edit text set endiconmode to cleartext in textinputlayout 3 enter some text in edittext set error in edit text to enter a valid email address 4 error will overlap the end icon expect behavior end icon should be visible overlap shouldn t occur error should be set on textinputlayout android api version 30 material library version 1 2 1 device emulator android 11
materialcomponentsmaterialcomponentsandroid
linearprogressindicator doesn t hide if app be put in background immediately after hide
Bug
description 1 hide be call 2 app put in background immediately after call home button press for example 3 app return to foreground 4 loader be show expect behavior 1 hide be call 2 app put in background immediately after call home button press for example 3 app return to foreground 4 loader be hide source code 1 line where hide be call l122 2 isloadervisible be a regular mutablelivedata object l32 3 temporarily fix with l230 android api version reproduce in 21 24 28 and 30 material library version 1 3 0 beta01 device samsung galaxy s8 api 28 huawei p10 lite api 24 nexus 5x emulator api 21 and 30
materialcomponentsmaterialcomponentsandroid
basetransientbottombar why must style on this component require your app theme to be appcompat
Bug
if style on this component be not appcompat style but component also work only some experience problem if my style not extend appcompat style your code will throw exception and crash our app actully I don t check style also work for my app so why must check sytle and if not will throw exception crash our app
materialcomponentsmaterialcomponentsandroid
materialdatepicker wrong month title for april 1981 1984
Bug
description datepicker be show title march instead of april issue a be for year 1981 1984 issue seem to be only the title value select from calendar be correct expect behavior month title for april should be april material library version 1 3 0 beta01
materialcomponentsmaterialcomponentsandroid
materialtimepicker can not resolve symbol materialtimepicker
Bug
description can not resolve symbol materialtimepicker expect behavior able to use materialtimepicker from material lib source code materialtimepicker materialtimepicker new materialtimepicker builder settimeformat clockformat sethour hour setminute minute build android api version 29 material library version 1 2 1 device samsung s7 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 unexpected focus acquisition
Bug
description nest textinputedittext get focus when textinputlayout setenable true with a small delay and if its default be false xml expect behavior nest textinputedittext doesn t get focus source code public void onviewcreate nonnull view view nullable bundle savedinstancestate fragmenthomebinding viewbinding fragmenthomebinde bind view completable complete delay 5 timeunit millisecond observeon androidschedulers mainthread subscribe viewbinde textinputlayout setenable true android api version android 28 material library version 1 3 0 beta01 device xiaomi mi a3
materialcomponentsmaterialcomponentsandroid
materialbutton click event not work on google pixel 5
Bug
description the click event do not work in google pixel 5 android 11 expect behavior click event be trigger work on google pixel 3a with android 11 source code android api version android 11 material library version 1 2 0 alpha06 device google pixel 5 ezgif com gif maker
materialcomponentsmaterialcomponentsandroid
rangeslider there be a line when two thumb be overlap
Bug
description there be a line when two thumb be overlap image expect behavior no redundant line source code xml layout java code public class myslideractivity extend appcompatactivity override protect void oncreate nullable bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout act slider rangeslider rangeslider findviewbyid r i d range slider rangeslider setvalue 10f 100f rangeslider setvaluefrom 10 rangeslider setvalueto 100 android api version 29 material library version 1 2 1 device samsung galaxy s7
materialcomponentsmaterialcomponentsandroid
slider slider thumb top and bottom clip
Bug
description the slider thumb be clip at the top and bottom here s a screenshot of an example with show layout bound turn on screenshot 20201211 152421 it look like the issue be a non configurable widgetheight property define in a material dimen file the diman be call mtrl slider widget height this value determine the height of the rectangle that s clip the thumb in the screenshot above it d be nice if either this property could be set by a style attribute or if the height could instead be calculate base on the trackheight thumbradius and any other relevant property expect behavior the thumb be not clip source code class customslider jvmoverloads constructor context context defstylere int 0 attributeset attributeset slider context attributeset defstylere init inittrack initthumb private fun inittrack valuefrom 0f valueto 2500f stepsize valueto 25 trackheight resource getdimensionpixelsize r diman slider track height 40dp istickvisible false contextcompat getcolorstatelist context r color selector slider track active let trackactivetintlist it contextcompat getcolorstatelist context r color selector slider track inactive let trackinactivetintlist it private fun initthumb thumbradius resource getdimensionpixelsize r diman slider thumb radius 57dp thumbstrokewidth resource getdimensionpixelsize r diman slider thumb stroke width tofloat 4dp thumbstrokecolor contextcompat getcolorstatelist context r color selector slider thumb stroke contextcompat getcolorstatelist context r color selector slider thumb let thumbtintlist it android api version 29 material library version 1 3 0 alpha04 device google pixel 3 relate issue 1579
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Invalid
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
material outline button label text color not change
Bug
description hi I be work in material outline button I try to set label color in material button with enable and disable state but its not take color from my style instead it take my accent color source code style textselector color android api version 30 material library version com google android material material 1 2 1 I be get this result
materialcomponentsmaterialcomponentsandroid
linearprogressindicator linearprogressindicator inside recyclerview viewholder disappear when scroll off screen
Bug
description linearprogressindicator inside recyclerview viewholder disappear after scroll off screen and scroll back expect behavior linearprogressindicator stay visible in recyclerview viewholder source code android api version 29 material library version 1 3 0 alpha04 device xiaomi mi 9 t
materialcomponentsmaterialcomponentsandroid
materialdatepicker november only show 29 day
Bug
description in a particular case november only show 29 day instead of 30 other month can also be wrong the problem occur when load the materialdatepicker and either the previous or next month be display across 6 row basically the layout get constrain to the height of the current month eg december 2020 with 5 row and the previous and next month get load in to the recyclerview respect this height however november require 6 row so the last row isn t render when interact with the recyclerview the height get correct and the correct date will be show so if you start in december then scroll to january so the november get recycle then back to november it will have the correct 30 day step open a materialdatepicker that default to show december 2020 scroll back one month to november 2020 witness it only show 29 day scroll to january 2021 then back to november 2020 witness it now show the correct 30 day note this also depend on what day the start of week be I ve be reproduce this issue with monday as the start of week due to device language set be new zealand english for different start of week this issue will exist for different month as different month will need the 6th row device 2020 12 03 114039 expect behaviour device 2020 12 03 114124 source code reproduce in the catalog app 1 3 0 alpha04 material library version 1 3 0 alpha04 android api version 29 device lenovo tb x605lc have also reproduce on other tablet there have be a fix to a related bug 1338 however while that stop the crash by simply select the november 29th instead of the 30th it doesn t address the root cause which be that the 30th isn t be display I attempt to find a fix but be unsuccessful appear to be some strange interaction between layout constraint
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton draw text in center of component in rtl layout
Bug
description I m try to make a custom view that have extend from extendedfloatingactionbutton I m draw a text counter at center of this widget this be the code snippet init customize textpaint for counter paint apply textsize context getdimension r diman 17sp color context getcolorcompat r color color on secondary orwhite textalign paint align center override fun ondraw canvas canvas super ondraw canvas drawcontent canvas private fun drawcontent canvas canvas if count 0 show counter val text count tostre val xpos width 2 tofloat val ypos height 2 paint descent paint ascent 2 canvas drawtext text xpos ypos paint hide icon icon context getdrawablecompat r drawable ic empty else show icon icon cachedicon now this code work when the layout direction be ltr but when I change it to rtl text be not align to center expect behavior layoutdirection ltr counter 0 layoutdirection rtl counter 0 layoutdirection ltr or rtl counter 0 android api version 30 material library version 1 3 0 alpha04 device android studio emulator
materialcomponentsmaterialcomponentsandroid
bottomnavigationview unnecessary space be add after set hide navigation flag and rotate the screen
Bug
description if you set the system ui flag layout hide navigation and system ui flag hide navigation flag when landscape mode and then remove those flag when portrait mode the unnecessary space window inset be add expect behavior do not be add unnecessary space source code I guess the cause of this issue be the follow commit android api version android 8 10 material library version 1 3 0 alpha01 04 device sony xperia xzs sony xperia 5
materialcomponentsmaterialcomponentsandroid
materialtimepicker break layout if reuse materialtimepicker
Bug
description I be create a materialtimepicker instance and show it in an datepicker addonpositivebuttonclicklistener method the problem be that the layout be break if I try to show that timepicker instance again after close the first one screenshot 20201127 150152 expect behavior if the materialtimepicker be call a second time the layout should be show as usual source code materialdatepicker builder datepicker val builder materialdatepicker builder datepicker val pickerdialog builder build val timepicker materialtimepicker builder setinputmode materialtimepicker input mode clock settimeformat timeformat clock 24h build pickerdialog addonpositivebuttonclicklistener timepicker show childfragmentmanager pickerdialog tag timepicker addonpositivebuttonclicklistener view findviewbyid r i d button first setonclicklistener pickerdialog show childfragmentmanager android api version api 30 material library version 1 3 0 alpha04 device google pixel 3a 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
constraintlayout layout constraintheight max work incorrectly
Bug
description after transfer from material 1 3 0 alpha01 to material 1 3 0 alpha02 alpha04 style argument layout constraintheight max from the code below break layout height expect behavior the height of the component must be 0 3 from the parent and must not exceed the maximum but component height be 0 after problem argument layout constraintheight max remove the component height be perfectly 30 of parent size on 1 3 0 alpha01 version the code below work correctly source code I have this code in style 0dp 0dp 0 3 percent 240dp android api version api 16 material library version 1 3 0 alpha04 constraint layout version 1 1 3 device nexus one 3 7 api 16 emulator
materialcomponentsmaterialcomponentsandroid
circularprogressindicator circularprogressindicator inside recyclerview item disappear when scroll off screen
Bug
description full description of issue here circularprogressindicator inside recyclerview item disappear when scroll off screen 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 android 10 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 unexpected multiple addonchangelistener invocation
Bug
description when use a rangeslider and use addonchangelistener the listener be invoke multiple time addonchangelistener do not have that behavior document rangeslider java at onchangelistener do have that document but the sentence do not really make sense expect behavior well documentation explanation of behavior at comment source code register a callback to be invoke when the slider change param listener the callback to run when the slider change public void addonchangelistener nullable l listener interface definition for a callback invoke when a slider s value be change this be call for all exist value to check all the current value use see rangeslider getvalue public interface onchangelistener extend baseonchangelistener android api version not relevant material library version 1 2 1 device not relevant
materialcomponentsmaterialcomponentsandroid
bottomnavigationview badge accessibility not translate and not changeable
Bug
description the bottomnavigationview badge be available only in english and there be no possibility to change it expect behavior accessibility string resource should be translate or give developer possibility to implement own accessibility 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 10 material library version 1 2 1 device pixel 3 the same apply for more component and I be wonder why be accessibility set hide so deep sometimes and developer have no chance to change it
materialcomponentsmaterialcomponentsandroid
textinputlayout auto scrolling to the bottom of textinputlayout whenever cursor be place on textinputedittext
Bug
description on material lib version 1 2 1 1 3 0 alpha03 latest whenever a cursor be place on textinputedittext it autoscroll to the bottom of the textinputlayout so when the text be very long and cursor be place on the first few line it autoscroll to the bottom of the textinputlayout user can no long see the cursor and can not continue edit where the cursor be point at expect behavior on material lib version 1 1 0 this bug doesn t exist whenever a cursor be place the cursor be always visible to the user source code you can read readme for how to reproduce this issue android api version api 30 material library version 1 2 1 1 3 0 alpha03 late both have this bug and this bug doesn t exist on 1 1 0 device pixel 3a pixel 4 xl 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 not work after configuration change
Bug
I control a bottom app bar in the activity in some fragment it should be hide in some fragment it should be show performshow and performhide work nicely the fragment onresume call a method in the activity and the bottom app bar be either hide or show as soon as I turn the device emulator performhide do not work anymore when check if bottomappbar isshown its false even tho the bottom app bar be visible on the screen when turn the screen and navigate away from a fragment where the bottom app bar should not be show to another fragment where it should not be show its hidden again until turn the screen again but only when call performshow before performhide public void hideshowcallback int fragmentid mbottomappbar performshow switch fragmentid case 1 case 2 case 3 mbottomappbar performhide break override public void onresume super onresume if requireactivity instanceof mainactivity mainactivity requireactivity hideshowcallback getfragmentsid log d tag onresume call to activity I try use various lifecycle method from the fragment to call back to my activity but same result
materialcomponentsmaterialcomponentsandroid
textinputedittext the cursor stay at the beginning and addtextchangelistener be never trigger temporary fix inputtype text but doesn t work on anything else
Bug
description if you use textinputlayout with textinputedittext the cursor stay at the start and doesn t move at the end of text when write but be fix at the beginning it work if you put inputtype as text but it doesn t work for anything else for example multiline the textchangelistener be call only if you set the text programatically expect behavior cursor follow last character when write text source code bind textinputedittext addtextchangedlistener if it null bind buttonnext isenable it trimmedlength 0 android api version 30 material library version 1 3 0 alpha03 device oneplus 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
textinputlayout invisible box outline on empty text and suffix ruin box
Bug
description box outline doesn t appear when focus with empty text unfocused screenshot 2020 11 22 113239 focus screenshot 2020 11 22 113326 focus with text screenshot 2020 11 22 115504 also in error screenshot 2020 11 22 113452 another issue be that suffix and trail icon overlap the stroke screenshot 2020 11 22 113503 and my calendar s trail icon disappear on error even though it s still clickable screenshot 2020 11 22 115121 expect behavior for the outline to appear even with empty text and error and my trail icon to still be visible on error source code a snippet of one of my field android api version api 29 material library version com google android material material 1 2 1 device pixel 2 api 30 emulator and my htc 10 android 8 0
materialcomponentsmaterialcomponentsandroid
materialtimepickerdialog can not inherit default theme overlay
Bug
description when use materialtimepickerdialog I can not seem to inherit from themeoverlay materialcomponent materialtimepicker if I want to override certain theme attribute and provide my own custom theme overlay for materialtimepickertheme be that intentional or be I miss something expect behavior be able to inherit the default theme overlay source code for example I want to override just these two text appearance for material time picker dialog theme while also retain the default attrs provide from the library xml android api version 30 material library version 1 3 0 alpha03 device pixel 3
materialcomponentsmaterialcomponentsandroid
textinputlayout filledbox without rounded corner at top
Bug
description my designer want to use this component by material guide but when I use it in a new empty project I get a problem with rounded corner at top of textinputlayout expect behavior image source code image android api version 29 30 material library version 1 2 1 but when I m search to resolve this issue I check all version from 1 0 0 and see that the problem didn t reproduce on 1 0 1 alpha 02 03 04 look at screenshot image device pixel 3a pixel 4 and probably on any other device cause I see it at xml preview
materialcomponentsmaterialcomponentsandroid
material custom view accessibilitydelegate do not work as expect on materialautocompletetextview
Bug
artifact use com google android material material 1 2 0 version use theme use device android version reproduce on pixel 4 android 11 samsung a 50 android 10 it be very possibly our own error but we do not find any helpful information on other platform so we decide to try it here source code the problem it should be a not editable dropdown list by default talkback read double tap to edit text double tab und hold to long press edit option available on it voice assistant of samsung read double tab to enter text double tap and hold to long press we want to change it to something like double tap to select xxx from a list so we write a custom accessibilitydelegate class dropdownlistaccessibilitydelegate view textinputlayout view accessibilitydelegate override fun oninitializeaccessibilitynodeinfo host view info accessibilitynodeinfo super oninitializeaccessibilitynodeinfo host info a custom action description val description host resource gettext r string custom dropdown list click action val customclick accessibilitynodeinfo accessibilityaction accessibilitynodeinfocompat action click description info addaction customclick if we set the custom delegate to textinputlayout nothing change and the dropdown list show after double click if we set it to autocompletetextview the talkback text do not change but the dropdown list do not show after double click we be not sure if it be a problem with the framework or we should change our delegate we use a similar accessibilitydelegate on button and it work
materialcomponentsmaterialcomponentsandroid
snackbar basetransientbottombar npe in shouldanimate
Bug
description we be see a grow number of crash due to fatal exception java lang nullpointerexception attempt to invoke virtual method java util list android view accessibility accessibilitymanager getenabledaccessibilityservicelist int on a null object reference which happen at com google android material snackbar basetransientbottombar shouldanimate basetransientbottombar java 1060 source code snackbar make view getstre r string oop something go wrong snackbar length short show android api version 9 and 10 material library version 1 2 0 device device on which the bug be encounter here huawei p30 lite p20 p20 pro galaxy s8 galaxy s8 etc
materialcomponentsmaterialcomponentsandroid
com google android material tabs tablayout tabmode scrollable not work when attach to fragment
Bug
description tab layout scroll mode not work when fragmentstateadapter attach to fragment expect behavior normally tab layout can scroll as fragmentstateadapter attach to the activity source code class tabbedviewpageradapter val fragment mutablelist fa fragment fragmentstateadapter fa override fun getitemcount int fragment size override fun createfragment position int fragment return tabbedcataloguefragment newinstancetabbedcatalog bundleof filteringdata to fragment position i d tostring page source to fragment position name android api version api 29 material library version com google android material material 1 1 0 but still exist in late version device nexus 6 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
migrate from viewpager to viewpager2 with fragmentstateadapter cause visible screen yank and strictmode to be trigger
Bug
description I ve follow the android documentation and this tutorial to migrate to viewpager2 when swipe the 4 screen from leave to right there be a visible screen yank the documentation explicitly mention that createfragment must provide a new fragment each time so the implementation seem to be implement correct expect behavior the same performance as with the old viewpager and pageradapter I ve write down the detail in this so thread source code view the so thread for up to date I ve also add the original code there android api version compilesdk 30 material library version try 1 3 0 alpha03 and 1 2 1 device samsung s8 a51
materialcomponentsmaterialcomponentsandroid
bottomsheet call requestlayout will cause bottom sheet to be place in wrong position
Bug
description call requestlayout when a bottom sheet be show will cause the bottom sheet to be move down video expect behavior call requestlayout shouldn t change the bottom sheet s position source code bottomsheett zip android api version test on api 29 30 material library version 1 2 1 1 3 0 alpha03
materialcomponentsmaterialcomponentsandroid
material android component be crash in debug mode
Bug
description I didn t make any change to my code this issue be reproduce for both 4 1 1 and 4 4 0 gradle version app crash in debug mode but work fine in release mode I try reinstall the android studio nothing help I android api version android api version android 11 30 material library version com google android material material 1 2 1 device pixel 3a
materialcomponentsmaterialcomponentsandroid
snackbar message text be cut off or not visible at all for multiline maxactioninlinewidth
Bug
hi we come across this problem work on accessibility for our app problem afaik the problem be cause in snackbarcontentlayout by the logic in onmeasure regard updateviewswithinlayout I m sure you be aware but just for the sake of completeness first the message text be multiline so the layout change to vertical but after that it be re evaluate and since the text have now the full width available it be single line again and therefore the layout change back to horizontal this lead to cut off the message text or be not visible at all it might sound like an edge case at first but actually with font and display size in place try out the large option for both this scenario can happen quite easily especially in other language and frankly happen to we without try to fabricate something example pixel 4xl android 11 material lib 1 2 1 same outcome for 1 3 0 alpha03 font size large display size large appcompatactivity with theme materialcomponent light noactionbar kotlin snackbar make bind coordinatorlayout hey you be offline snackbar length indefinite setmaxinlineactionwidth resource getdimensionpixelsize r dimen design snackbar action inline max width setaction please try again show image chross check message text that always be multiline kotlin snackbar make bind coordinatorlayout hey you be offline or have a bad connection snackbar length indefinite setmaxinlineactionwidth resource getdimensionpixelsize r dimen design snackbar action inline max width setaction please try again show image would appreciate to hear from you since we need this to to provide a safe and accessible way to use our app for everyone I guess it be similar or cause by the same bug to this issue but it also seem it might got lose with close google issue tracker and no one assign or at least no update since 2019 please let I know if I can provide anything thx in advance
materialcomponentsmaterialcomponentsandroid
materialcontainertransform bounce when use appbarscrollingviewbehavior
Bug
description materialcontainertransform seem to bounce when app layout behavior string appbar scrolling view behavior be set expect behavior when app layout behavior string appbar scrolling view behavior be remove from fragmentcontainerview everything work as expect animation be smooth and doesn t bounce I m sure it s happen because materialcontainertransform can not calculate the precise height when animate and that s where this bounce be appear be there any workaround for this source code android api version 29 material library version 1 2 1 device poco f1
materialcomponentsmaterialcomponentsandroid
material chip fail to inflate in darkmode
Bug
I recently decide I want to use material s chip widget to implement tag in my app I update my appcompat daynight they to materialcomponent in day mode everything work fine but in night mode chip s fail to inflate with the error cause by java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant whether I explicitly set the mode via appcompatdelegate setdefaultnightmode mode or set the system setting to be in dark mode the chip always fail to inflate but in day mode it inflate present readily I can not for the life of I figure out how I could possibly have the correct they but only in day mode any help would be greatly appreciate again in day mode everything work fine here be my style splashtheme be apply at the application level and on the splash screen activity and apptheme be apply to the other activity but splashtheme derive from apptheme so I hope that s ok
materialcomponentsmaterialcomponentsandroid
materialdatepicker materialtimepicker how to style the shape
Bug
hello can someone help I to find how to change the shape of new picker dialog in style I try to look into the source code but it be unclear maybe there be a unified method to do that
materialcomponentsmaterialcomponentsandroid
snackbar snackbar rtl dismiss behaviour
Bug
when you try to dismiss a snackbar in an rtl layout the dismiss swipe be normal but the dismiss direction be wrong you need go swipe from right to left but the snackbar be dismiss from leave to right
materialcomponentsmaterialcomponentsandroid
materialdatepicker render incorrectly on android 11 pixel 2xl
Bug
the materialdatepicker render incorrectly on a pixel 2xl device with android 11 use version 1 3 0 alpha03 this do not happen on a pixel 3 device or android studio emulator pixel 2xl run android 11 pixel 3 emulator run android 11
materialcomponentsmaterialcomponentsandroid
bottomsheet bottomsheet go wrong state and whole screen become untouchable
Bug
description full description of issue here an user interact follow order 1 initial position collapse 2 start drag and let the bottomsheet to get in settle 3 user touch the bottomsheet again before settle status end up 4 it be observe that bottomsheet state be expand or collapse but should be drag and entire screen be lock down expect behavior screenshot and or description of expect behavior most important one be screen should not be untouchable user can interact in all circumstance and onstatechange should return true state source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue same behavior of this issue plus screen be lock down and can t be touchable so user should reopen the application it seem bug be not fix on that pr android api version android api version here android 10 api 29 material library version material android library version you be use here e g 1 1 0 alpha07 1 3 0 alpha03 device device on which the bug be encounter here samsung galaxy s9 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
badgedrawable number not format use system locale
Bug
description the number in the badge do not get format in the device s set locale see pic english number when language be arabic image expect behavior a formatted number should be return by the getbadgetext source code nonnull private string getbadgetext if number exceed max count show badgemaxcount instead of the number if getnumber maxbadgenumber return integer tostre getnumber else context context contextref get if context null return return context getstre r string mtrl exceed max badge number suffix maxbadgenumber default exceed max badge number suffix android api version 30 material library version 1 3 0 alpha03 device pixel 2 xl a pull request will hopefully be create shortly
materialcomponentsmaterialcomponentsandroid
chip doesn t pass settextsize call to chipdrawable
Bug
chip be create programmatically in the code I try to get rid of the trail indentation fun createchip chip val chip chip context chip text sgds vsdgty bsd df g chip settextsize typedvalue complex unit sp 10f chip chipbackgroundcolor color red chip settextcolor color white chip chipstartpadde 0f chip chipendpadde 0f chip textstartpadde 0f chip textendpadde 0f chip closeiconstartpadde 0f chip closeiconendpadde 0f return chip here be the result it s not clear where the indentation at the end come from k3fal 1 how do I make the same indentation
materialcomponentsmaterialcomponentsandroid
textinputlayout wrong hint size
Bug
description can t change label size in the collapsed and expand state it ignore value provide by hinttextappearance style expect behavior hint label text size should be affect by style material issue 2 material issue source code style android api version targetsdkversion 30 material library version implementation com google android material material 1 3 0 alpha03 device pixel 3 android 11
materialcomponentsmaterialcomponentsandroid
progressindicator indeterminate stop rotate after a while on emulator of android api 24 otherwise it work fine
Bug
description com google android material progressindicator progressindicator indeterminate stop rotate after a while a minute or so just on emulator of android api 24 otherwise it work fine expect behavior it should rotate source code fun showprogress title string null cancelable boolean true canceltitle string getstre r string cs dialog cancel oncancel csdialog unit null apply dialog dialog context r style csprogressdialogstyle apply setcancelable false setcanceledontouchoutside false window setbackgrounddrawableresource r color cs transparent setcontentview inflate r layout progress apply textview r i d progress title text title button r i d progress button cancel text canceltitle onclick oncancel invoke this csdialog shownif cancelable backgroundroundedwithcolor attributecolor r attr colorsurface 10f show android api version api 24 material library version material android library version 1 3 0 alpha03 device android emulator pixel 3a api 24 google play
materialcomponentsmaterialcomponentsandroid
textinputlayout change endiconmode dynamically be break in v1 2 x
Bug
description let s consider the follow piece of code that be handle by the view in a mvvm implementation usernamelayout setenable loginuimodel enableusernamefield if loginuimodel showusernameendicon usernamelayout setendiconmode textinputlayout end icon custom usernamelayout setendicondrawable r drawable ic confirm else usernamelayout setendiconmode textinputlayout end icon clear text this piece of code work as expect in the v1 1 0 release but it s break start from the 1 2 x release I test on 1 2 1 late stable release available and 1 3 0 alpha03 late release available expect behavior in 1 1 0 this piece of code effectively change the endiconmode from have the clear text behavior to display a static custom icon instead when the value of showpasswordendicon change from false to true in 1 2 1 and 1 3 0 alpha03 source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version test on api 29 material library version test on 1 1 0 1 2 1 and 1 3 0 alpha03 device android emulator api 29
materialcomponentsmaterialcomponentsandroid
slider slider doesn t slide in horizontal recyclerview
Bug
description slider doesn t slide in horizontal recyclerview expect behavior slider should slide in horizontal recyclerview android api version 30 material library version 1 2 1 device emulator pixel 3