repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
activity to activity materialcontainertransform issue in lollipop and marshmallow device work fine in nougat and oreo
Bug
description I be face an issue in lollipop and marshmallow device when implement materialcontainertransform transition in activity to activity transition I have a recycle view in grid mode with 4 column whenever I click on item it transform exactly same as it should behave but it be behave unexpected in lollipop and marshmallow device the problem be when transition end on go back to previous activity the current item box come from last item position I don t know why it be happen in only lollipop and marshmallow only expect behavior transition issue on go back to previous activity on transition end the current item box animate from wrong item position in the end in lollipop and marshmallow device source code activity a override fun oncreate savedinstancestate bundle window requestfeature window feature activity transition setexitsharedelementcallback materialcontainertransformsharedelementcallback super oncreate savedinstancestate setcontentview r layout activity facility list activity b override fun oncreate savedinstancestate bundle window requestfeature window feature activity transition setentersharedelementcallback materialcontainertransformsharedelementcallback setexitsharedelementcallback materialcontainertransformsharedelementcallback super oncreate savedinstancestate setcontentview r layout activity facility list val transition intent getstringextra transition findviewbyid r i d containerlayout transitionname transition window sharedelemententertransition materialcontainertransform apply addtarget r i d containerlayout scrimcolor color transparent duration 400l window sharedelementreturntransition materialcontainertransform apply addtarget r i d containerlayout scrimcolor color transparent duration 300l on item click var adapter homecategoryadapter list activity categoryrecycleview adapter adapter adapter setoncategorylistener object homecategoryadapter onclickcategorylisten override fun onclickcategory view view position int categoryhomemodel categoryhomemodel var pair1 pair searchbtn search bar var pair2 pair view view transitionname val option activityoption makescenetransitionanimation activity pair2 var intent intent activity facilitylistingactivity class java intent putextra transition view transitionname intent putextra position position intent putextra categoryname categoryhomemodel text startactivity intent option tobundle material library version com google android material material 1 2 0 beta01 device in lollipop and marshmallow device only 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 background for endiconmode dropdown menu be set from code
Bug
description first of all when endiconmode in textinputlayout set dropdown menu there be a crash that boxbackgroundmode none be not support for the end icon mode I ve try to set custom background via style for textinputlayout the give style work fine for 1 2 0 alpha05 and old library version and set it as style in layout but the layout change the background base on boxbackgroundmode and my background be replace to another drawable as I understand the issue be in the dropdownmenuendicondelegate setpopupbackground nonnull autocompletetextview edittext method that be call during initialization if be lollipop int boxbackgroundmode textinputlayout getboxbackgroundmode if boxbackgroundmode textinputlayout box background outline edittext setdropdownbackgrounddrawable outlinedpopupbackground else if boxbackgroundmode textinputlayout box background fill edittext setdropdownbackgrounddrawable filledpopupbackground expect behavior dropdown should be as flexible as input field to keep the same style for all field in an app image current behavior image android api version 23 and high not sure about old version material library version 1 2 0 beta01 1 3 0 alpha01 device all device
materialcomponentsmaterialcomponentsandroid
materialalertdialog can t edit shapeappearance to change corner
Bug
description I want to add corner to a materialalertdialog but impossible to change this attribute I follow instruction on material documentation theme dialog I literally do the same thing on my style just to see if it work color change but not shape expect behavior have same corner as exemple on material documentation theme dialog just to see it work source code xml kotlin class personalnotedialogfragment dialogfragment override fun oncreatedialog savedinstancestate bundle dialog return requireactivity let activity val builder alertdialog builder contextthemewrapper activity r style themeoverlay app materialalertdialog val inflater requireactivity layoutinflater builder apply setview inflater inflate r layout dialog personal note linearlayout context false settitle r string dialog personal note title setpositivebutton r string dialog add setneutralbutton r string dialog cancel setnegativebutton r string dialog erase builder create android api version android api 29 material library version 1 3 0 alpha01 or 1 2 0 beta01 device all device
materialcomponentsmaterialcomponentsandroid
textinputlayout in exposeddropdown with hint
Bug
description when use dropdown icon with use hint inside the edit text the hint padding be go android api version 29 material library version 1 2 0 beta 01 device all device
materialcomponentsmaterialcomponentsandroid
proguard recyclerview be be forcefully keep
Bug
description the whole recyclerview class and its class hierarchy be be keep by shrinker because an inner class of recyclerview be part of materialpickerdialogfragment java keep class androidx recyclerview widget recyclerview which doesn t even exist anymore source expect behavior recyclerview be not be keep by shrinker if it s not use if it be use it may be obfuscate appropriately source code n a android api version any material library version 1 3 0 alpha01 device n a
materialcomponentsmaterialcomponentsandroid
chip vertical alignment issue
Bug
description how can I improve the vertical alignment of this chip with a custom font expect behavior centre vertical android api version all material library version all
materialcomponentsmaterialcomponentsandroid
button outline of button in materialbuttontogglegroup be blur
Bug
description I have a materialbuttontogglegroup with a three button all with the outline style the outline on the outer button be blur while the outline of the button in middle isn t expect behavior please see issuecomment 543765157 for a photo of this issue it seem that be happen only on low dpi device please see issuecomment 543785569 for a possible explanation for this bug my guess would be round issue on hdpi device since that s the only density which yield a non integer dp to px ratio 1 5 to be precise this mean e g 1dp become 1 5px which can be display as 1px too thin or 2px too wide source code I can reproduce this issue with master at 576d0f2e02a599ccbc00b7bc2ee04709f962111a and the follow diff diff diff git a app src main re value style button xml b app src main re value style button xml index a6ac8df a52ccfe 100644 a app src main re value style button xml b app src main re value style button xml 22 10 22 6 style apptextappearance button font roboto mono font roboto mono style appshapeappearance smallcomponent style appshapeappearance mediumcomponent style appshapeappearance largecomponent style appbutton2 style appoutlinedbutton diff git a build gradle b build gradle index 18bd726 9464d40 100644 a build gradle b build gradle 1 5 1 5 buildscript ext android gradle plugin version 4 0 0 rc01 ext android gradle plugin version 4 0 0 ext kotlin version 1 3 72 ext androidx core version 1 3 0 rc01 ext androidx appcompat version 1 2 0 beta01 without the patch the outline of all button be blur android api version at least on android 5 1 1 and 7 1 2 material library version 1 3 0 alpha01 device samsung galaxy tab pt p7500 fire 7 tablet
materialcomponentsmaterialcomponentsandroid
slider unsupportedoperationexception
Bug
description just add a simple slider in layout xml like this android api version 27 material library version 1 3 0 alpha01 device redmi note 4x
materialcomponentsmaterialcomponentsandroid
textinputlayout motion hint do not follow the layout in animation
Bug
description I have some textinputlayout s in a fragment and I have set the animation of my fragment to materialfadethrough the animation run fine slightly expand in width but the hint label inside the textinputlayout do not move with the parent container after tap one input all hint in the view jump to the correct position screenshot before tap after entertransition with materialfadethrough image after focus the first input image expect behavior the hint should move correctly with the outline of the textinputlayout source code layout snippet xml style xml android api version android q material library version bug exist on 1 2 0 beta01 and 1 3 0 alpha01 device android emulator pixel 3 xl
materialcomponentsmaterialcomponentsandroid
materialcardview apply colorfilter on background or foreground not work on 1 1 0
Bug
description since the release of the version 1 1 0 alpha02 apply a colorfilter to a materialcardview background be not work prior to this release porterduffcolorfilter or blendmodecolorfilter could be apply properly source code findviewbyid r i d card background colorfilter blendmodecolorfilter contextcompat getcolor this r color coloraccent blendmode src atop in addition to the code above I attach a sample app that demonstrate the issue colorfilterbug zip android api version android api 29 material library version the bug be reproduce on the version 1 1 0 alpha02 of the library up to the final release 1 1 0
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior settlerunnable leak view hierarchy through viewrootimpl runqueue
Bug
description tl dr bottomsheetbehavior startsettlinganimation leak the view hierarchy if that view hierarchy be not attach to a window at the time of the call e g activity be destroy detail bottomsheetbehavior startsettlinganimation call viewcompat postonanimation child settlerunnable if the view be attach to a window settlerunnable be post and later execute all be fine if there be no attached window the settlerunnable instance end up store in android view viewrootimpl runqueue until a new window be available which could take a while e g process alive with no activity run this be a know general issue on android post to a view can create stuck runnable if the view hierarchy be detach on 6 0 1 viewrootimpl have a static field static final threadlocal srunqueue new threadlocal the run queue be use to enqueue pende work from view when no handler be attach the work be execute during the next call to performtraversal on the thread hide static final class runqueue in recent version of android viewrootimpl runqueue become handleractionqueue expect behavior bottomsheetbehavior should probably check that child be attach before post leak report gc root system class flow precondition class leak no thread be not leak and a class be never leak static precondition main thread java lang thread instance leak no the main thread always run thread name main thread localvalue java lang threadlocal value instance leak unknown threadlocal value table java lang object array leak unknown object 80 android view viewrootimpl runqueue instance leak unknown viewrootimpl runqueue maction java util arraylist instance leak unknown arraylist array java lang object array leak unknown object 1 android view viewrootimpl runqueue handleraction instance leak unknown viewrootimpl runqueue handleraction action com google android material bottomsheet bottomsheetbehavior settlerunnable instance leak unknown bottomsheetbehavior settlerunnable view android widget framelayout instance leak yes view mcontext reference a destroy activity mcontext instance of android view contextthemewrapper wrapping activity com squareup ui main mainactivity with mdestroye true view mparent be set view mattachinfo be null view detach view mwindowattachcount 1 framelayout mcontext android view contextthemewrapper instance leak yes framelayout be leak and contextthemewrapper wrap an activity with activity mdestroye true contextthemewrapper minflater com android internal policy phonelayoutinflater instance leak yes contextthemewrapper be leak phonelayoutinflater mprivatefactory com squareup ui main mainactivity instance leak yes objectwatcher be watch this because com squareup ui main mainactivity receive activity ondestroy callback and activity mdestroye be true material library version 1 1 0 this bug still exist on master currently late release 1 3 0 alpha01 device can be reproduce at least on android 6 0 1 but should be reproducible on all version
materialcomponentsmaterialcomponentsandroid
shapeableimageview cut out background of other view
Bug
description shapeableimageview doesn t show the background of view below it expect behavior this be how it look currently expect source code style xml view xml android api version 27 material library version 1 2 0 beta01 1 3 0 alpha01 device emulator pixel 1 api 27
materialcomponentsmaterialcomponentsandroid
materialcontainertransform huge delay run transition on 1 3 0 alpha01
Bug
description 1 3 0 alpha01 cause materialcontainertransform to take way long to run and skip way more frame try to update from 1 2 0 alpha06 but perf be a disaster source code here s how I m launch the transition private fun startcontainertransform from view to view flow val channel channel val transform materialcontainertransform apply startview from endview to setpathmotion materialarcmotion scrimcolor color transparent duration 300l addlistener object transition transitionlistener override fun ontransitionend transition transition channel offer true channel close override fun ontransitionresume transition transition override fun ontransitionpause transition transition override fun ontransitioncancel transition transition timber e transition cancel channel offer false channel close override fun ontransitionstart transition transition transitionmanager begindelayedtransition screencontainer transform return channel receiveasflow this show up in logcat skip 249 frame the application may be do too much work on its main thread android api version 29 material library version 1 3 0 alpha01 device emulator pixel 3a on api 29
materialcomponentsmaterialcomponentsandroid
textinputedittext extend textinputedittext break the layout
Bug
description create a class that extend textinputedittext kotlin class mycustomedittext jvmoverload constructor context context attrs attributeset null defstyleattr int 0 textinputedittext context attrs defstyleattr use it as child of textinputlayout and the edit text be small than a usual textinputedittext expect behavior the layout should render edit text correctly android api version any version material library version 1 3 0 alpha01 device all device
materialcomponentsmaterialcomponentsandroid
textinputlayout android autofill be break because hint set on the textinputlayout be not propagate to the edittext properly
Bug
description autofill rely upon the hint developer provide on their input widget to make en educate guess about what information they need to surface to the user this flow be break when a textinputlayout be use expect behavior hint set on textinputlayout be propagate to the nest edittext when provideautofillstructure be call by the framework source code textinputlayout textinputlayout new textinputlayout this textinputlayout sethint password textinputlayout addview new edittext context most autofill provider should catch on to the password hint and suggest the user s password but tap on this field do not pass along the hint as part of the assist structure make detection extremely hard quick and dirty fix to see how if this can be handle textinputlayout fixedtextinputlayout new textinputlayout this override public void dispatchprovideautofillstructure nonnull viewstructure structure int flag edittext nestededittext getedittext if nestededittext null super dispatchprovideautofillstructure structure flag return charsequence oldhint nestededittext gethint try pass the hint set on the outer layout to the nest edit text since that be what the user be see when they be interact with the field also the dev doc seem to dissuade set hint on the nest edit text nestededittext sethint gethint super dispatchprovideautofillstructure structure flag finally nestededittext sethint oldhint for accessibility consider textinputlayout itself to be a simple container for an edittext and do not expose it to accessibility service unfortunately this do not hold for autofill since the dispatchprovideautofillstructure method be only call by the framework when it think the node be important for autofill in this case framework will skip it on single tap thus cause the fix to not work fixedtextinputlayout setimportantforautofill view important for autofill yes or auto fixedtextinputlayout sethint password fixedtextinputlayout addview new edittext context android api version test on r q material library version 1 3 0 alpha 01 device pixel 4
materialcomponentsmaterialcomponentsandroid
tablayout set tag for tabitem in xml be useless
Bug
description I want to index a tabitem with the attribute tag when use tablayout but I can t get that tag runtime cause you guy ignore the tag when add a new tab into tablayout source code the tab should be add the tag from tabitem private void addtabfromitemview nonnull tabitem item final tab tab newtab if item text null tab settext item text if item icon null tab seticon item icon if item customlayout 0 tab setcustomview item customlayout if textutil isempty item getcontentdescription tab setcontentdescription item getcontentdescription addtab tab material library version 1 1 0
materialcomponentsmaterialcomponentsandroid
return transition from viewpager to recyclerview item
Bug
description how do I do return transition from viewpager to recyclerview I have activity a with a fragment in it with recycler view on item click I navigate to an activityb with material activityscenetransition in activity b change the page 1 to 3 in viewpager and return back animation be not work with update list item
materialcomponentsmaterialcomponentsandroid
materialdatepicker day number not translate
Bug
description the number in the calendar be not translate to the select language expect behavior dateselector in google calendar screenshot 1591962188 date selector from material design screenshot 1591962176 android api version 29 material library version 1 3 0 alpha01 device android phone
materialcomponentsmaterialcomponentsandroid
materialcardview background color can t be set to white
Bug
description I m try to set the cardbackgroundcolor to fff but it turn to grey it can t be set to white unless I add foregroundtint with fff too it work normally with color other than white you can view the screenshot here expect behavior it should be pure white fff source code style xml android api version api version for preview 29 material library version 1 1 0 device android studio 4 0 note change the app theme to other than theme materialcomponent light seem to fix the issue but I don t want to change the app theme
materialcomponentsmaterialcomponentsandroid
materialalertdialog talkback accessibility issue
Bug
description the accessibility of a dialog with talkback enable be pretty different between the standard alertdialog vs materialalertdialog in general the icon should not be important for accessibility it should read the title and it should start select relevant item in the dialog suppose I m show a dialog in trello with an icon a title pick an item and some list item expect behavior talkback read trello alert pick an item then auto focus the first item of the list and talk about it this be what alertdialog do actual behavior talkback read alert dialog icon icon then auto focus the icon of the dialog source code somewhat abbreviate override fun oncreatedialog savedinstancestate bundle dialog return materialalertdialogbuilder requirecontext seticon r mipmap icon settitle r string title setadapter adapter setnegativebutton r string cancel create switch to alertdialog builder fix all the issue state above android api version android 10 material library version com google android material material 1 1 0 device pixel 3
materialcomponentsmaterialcomponentsandroid
materialtextview defstylere doesn t behave as expect
Bug
description pass defstylere doesn t behave as expect attribute inside this style resource be ignore this be because this constructor chain up to the 3 arg appcompattextview constructor the 4 arg one doesn t exist there mean the defstylere be only use to resolve android lineheight lineheight the consequence be that for folk who be update from textview to materialtextview then there s a massive behavior change expect behavior if the 4 arg constructor be call with 0 as the value for defstyleattr or where the theme doesn t define textviewstyle then the pass style resource should be treat as the default style kotlin class mycustomtextview context context attrs attributeset materialtextview context attrs 0 r style widget demo mycustomtextview suggest deprecate this 4 arg constructor it doesn t make sense until appcompattextview support it too alternatively add a lint check which will flag usage of this constructor as an error if the pass style contain anything except android lineheight or lineheight android api version n a material library version 1 1 0 current alpha too device n a
materialcomponentsmaterialcomponentsandroid
slider rangeslider drawing bug when two thumb overlap
Bug
description unexpected shape draw on the rangeslider when two thumb overlap expect behavior android api version 29 material library version 1 3 0 alpha01 device cat s41 android 8 0 0 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
slider rangeslider display the label of the non move thumb instead of the move thumb while slide
Bug
description rangeslider display the label of the non move thumb instead of the move thumb while slide expect behavior label of the move thumb should be display android api version 29 material library version 1 3 0 alpha01 device cat s41 android 8 0 0 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
appbarlayout when isindexoutofboundsexception
Bug
log java lang indexoutofboundsexception index 1 size 1 at java util arraylist get arraylist java 437 at com google android material appbar appbarlayout a appbarlayout java 12 at com google android material appbar appbarlayout basebehavior a appbarlayout java 91 at com google android material appbar appbarlayout basebehavior b appbarlayout java 2 at com google android material appbar headerbehavior b headerbehavior java 1 at com google android material appbar appbarlayout basebehavior a onanimationupdate appbarlayout java 3 at android animation valueanimator animatevalue valueanimator java 1547 at android animation valueanimator animatebasedontime valueanimator java 1339 at android animation valueanimator doanimationframe valueanimator java 1471 at android animation animationhandler doanimationframe animationhandler java 146 at android animation animationhandler access 100 animationhandler java 37 at android animation animationhandler 1 doframe animationhandler java 54 at android view choreographer callbackrecord run choreographer java 947 at android view choreographer docallback choreographer java 761 at android view choreographer doframe choreographer java 693 at android view choreographer framedisplayeventreceiver run choreographer java 935 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 214 at android app activitythread main activitythread java 7073 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 964
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment unexpected behavior for fade slide transition when remove fragment
Bug
I m implement the bottomsheetdialogfragment with add remove fragment inside it and the fad slide transition for add the fragment be work well but for remove the fragment the view go upside to the beginning of the dialog then start the transition here be a screenshot from the issue consider that the add fragment contain the two circle image only screenshot 1591618948 screenshot 1591618945 it should fade out slide down from the current position example app that reproduce the issue test on api 27 28 and 29 material android library version use 1 1 0 1 2 0 beta01 1 3 0 alpha01 device on which the bug be encounter pixel pixel 3 huawei mate10
materialcomponentsmaterialcomponentsandroid
materialcardview shadow on materialcardview be not render properly on api 28
Bug
description shadow on materialcardview be not render properly on api 28 after apply an edgetreatment to it programatically see screenshot below screenshot 1591597108 expect behavior shadow work perfectly in api 29 see screenshot below screenshot 1591597142 source code xml materialcardview inside a coordinator layout in my fragment val treatment arrowedgetreatment requirecontext resource getdimension r dimen arrow height requirecontext resource getdimension r dimen arrow width arrowoffset val shapeappearancemodel shapeappearancemodel tobuilder setallcorner cornerfamily round requirecontext resource getdimension r dimen corner radius setbottomedge treatment build bind container shapeappearancemodel shapeappearancemodel android api version android api 28 material library version 1 3 0 alpha01 and 1 2 0 beta01 device all emulator and device run api 28
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup checkedbuttonid return incorrect value when add via scene
Bug
description when a materialbuttontogglegroup be in a layout add to another layout via a scene example bellow get the checkedbuttonid s be always 1 the button be correctly visibly select in the ui but in code it have a wrong state expect behavior call checkedbuttonid should have the correct value source code have two xmls one inflate when create the activity with a linearlayout after add the second layout with the materialbuttontogglegroup via java transitionmanager go scene getsceneforlayout root r layout layout with material button toggle group this note both transitionmanager and scene be import from androidx android api version test in android 9 28 material library version test both 1 3 0 alpha01 and 1 2 0 alpha06 device test in samsung s8
materialcomponentsmaterialcomponentsandroid
textinputlayout textinputlayout fall down 12dp when hintenable be set to false
Bug
description the textinputlayout fall down 12dp when float label be disable use app hintenable false and when place in a linearlayout screenshot image expect behavior textinputlayout on the left have float label disable by use app hintenable false and textinputlayout on the right have float label enable the left one fall down when it should not and stay align with the right one error be enable in both the field source code android api version 28 material library version implementation com google android material material 1 1 0 device android studio preview window and redmi 4x india workaround if I offset the top margin by 12 dp android margintop 12dp it align with right one
materialcomponentsmaterialcomponentsandroid
textinputlayout restore hint in config change
Bug
description hint be not properly restore when a config change happen expect behavior to show the same hint as before a config change source code kotlin class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main if savedinstancestate null inputlayout sethint hint 1 edittext settext text 1 xml rotate the screen and verify that the hint be not display anymore test in 1 3 0 alpha01
materialcomponentsmaterialcomponentsandroid
progressbarindicator don t hide if call show hide be too fast
Bug
material design version 1 3 0 alpha01 test device galaxy s10 android 10 galaxy j5 android 6 0 1 progressbarindicator didn t hide if I call show hide too fast I need to call in next time to hide it or call immediately set progressbarindicator isgone true but it will not have animation or delay 1second before progressbarindicator hide it be the same the case when I use contentloadingprogressbar kotlin launch progressbarindicator show val video videomodel getvideos videosadapter adddata videos tomutablelist delay 1000l progressbarindicator hide don t hide if time between show and hide not enough long xml
materialcomponentsmaterialcomponentsandroid
slider keyboard navigation be break in rtl
Bug
require 1364 work on a pr offline description focus handle before 1364 rangeslider didn t handle pass keyboard focus correctly at all now it doesn t handle pass keyboard focus only in rtl the side be reverse value change right now plus key decrement and minus key increment in rtl fix this will change behavior from the original absseekbar which be also break from this point of view expect behavior press plus key increment the value of active thumb move the thumb leave in rtl press minus key decrement the value of active thumb move the thumb right in rtl press leave arrow key move focus to left either to another thumb or another view press right arrow key move focus to right either to another thumb or another view source code these method require change at minimum baseslider onkeydown baseslider calculateincrementforkey baseslider focusthumbonfocusgaine android api version any material library version 1 2 0 alpha01 device pixel 3a android r avd with google play intel x86 atom 64 system image r4
materialcomponentsmaterialcomponentsandroid
textinputlayout clear text end icon be visible for all field when screen start
Bug
description when screen start and edittext have predefine text then clear text icon visible for every field testapp expect behavior when screen start and edittext have predefine text then clear text icon should not be visible at all they should be visible only for the currently focus field source code android api version 29 material library version 1 2 0 beta01 device nexus 5 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
materialcheckbox wrong color if coloraccent be define in the theme
Bug
description if in the app theme be define the coloraccent attribute the select state of the materialcheckbox be tint by the coloraccent instead of colorsecondary expect behavior the color of the checbox default to attr coloronsurface unchecked and attr colorsecondary check define in the app theme material library version 1 2 0 beta01
materialcomponentsmaterialcomponentsandroid
materialcontainertransform illegalstateexception end view bound must not be null make sure the end view be lay out and measure
Bug
I be not sure if this should be a question or a bug report but after update to material 1 2 0 beta01 I be start to see random crash in production when use materialcontainertransform as a sharedelementreturntransition same issue be there in the 1 3 0 alpha1 I can not reproduce this on any of my device but in production there be a 5 crash rate stacktrace fatal exception java lang illegalstateexception end view bound must not be null make sure the end view be lay out and measure at com google android material transition materialcontainertransform createanimator materialcontainertransform java 889 at androidx transition transition createanimator transition java 747 at androidx transition transitionset createanimator transitionset java 480 at androidx transition transitionset createanimator transitionset java 480 at androidx transition transition playtransition transition java 1821 at androidx transition transitionmanager multilistener onpredraw transitionmanager java 301 at android view viewtreeobserver dispatchonpredraw viewtreeobserver java 1102 at android view viewrootimpl performtraversal viewrootimpl java 3310 at android view viewrootimpl dotraversal viewrootimpl java 2200 at android view viewrootimpl traversalrunnable run viewrootimpl java 9065 at android view choreographer callbackrecord run choreographer java 999 at android view choreographer docallback choreographer java 797 at android view choreographer doframe choreographer java 732 at android view choreographer framedisplayeventreceiver run choreographer java 984 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 237 at android app activitythread main activitythread java 8016 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 1076 how can I make sure that the end view be lay out and measure
materialcomponentsmaterialcomponentsandroid
bottomsheet behavior in android 10 the peekheight be mess up because of gestureinsetbottomignore by default be false
Bug
as since version 1 2 0 alpha06 and above the feature of gestureinsetbottomignore be make and set false by default and only activate for phone with android 10 so when test it with default false in my oneplus with android 10 the peekheight be mess up expect behavior peekheight of only 10dp or whatever value I give it source code app gestureinsetbottomignore false or do nothing because by default be false android api version android api 10 material library version 1 2 0 alpha06 device oneplus 6 with android 10 and oneplus 7 with android 10 to fix it I have to make app gestureinsetbottomignore true but not much people know that this attribute exist so it may cause they a weird behavior in their app when they will update their dependency version link to the commit of the feature
materialcomponentsmaterialcomponentsandroid
r diman abc action bar content inset material mark as private r diman abc action bar content inset material
Bug
the resource dimem abc action bar content inset material be mark as private in com google android material material
materialcomponentsmaterialcomponentsandroid
materialbutton app icongravity textend not work properly
Bug
description when create a materialbutton that have an icon and be android layout width match parent and have android textalignment viewstart the app icongravity textend seem to place the icon in the middle between the end of the text and the end of the view icon gravity issue expect behavior I would expect it to place the icon at the end of the text like this icon gravity expect source code android api version 29 material library version 1 3 0 alpha01 device pixel 3xl
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup onbuttoncheckedlistener not call on first check
Bug
description when use a materialbuttontogglegroup that have both singleselection and selectionrequire set to true but no initial checkedbutton set the first tap of one of the button do not trigger an onbuttoncheckedlistener that be add expect behavior if a button be not previously check but I tap on it it should trigger the listener for example with the code below I should see button 1 have be check 1 time after initially launch the activity and tap button 1 once but I don t subsequent tap of each button be dispatch properly source code here s a sample activity layout xml here s the code for the activity kotlin package com example materialbuttontogglegroupbug import android os bundle import android util log import androidx appcompat app appcompatactivity import kotlinx android synthetic main activity main class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val buttoncheck mutablelistof 0 0 togglegroup addonbuttoncheckedlistener group checkedid ischecke if ischecke return addonbuttoncheckedlistener val index when checkedid button1 i d 0 button2 i d 1 else return addonbuttoncheckedlistener buttoncheck index buttoncheck index 1 log I bug button index 1 have be check buttoncheck index time android api version android 11 dp material library version 1 3 0 alpha01 device pixel 4 xl
materialcomponentsmaterialcomponentsandroid
slider keyboard navigation be all kind of broken
Bug
description slider be currently not accessible use keyboard the main issue be mishandle focus and handle key press in unexpected way focus handle currently leave the slider use keyboard leave the view in an undetermined state focus wise this be due to override protect void onfocuschanged boolean gainfocus int direction nullable rect previouslyfocusedrect super onfocuschanged gainfocus direction previouslyfocusedrect if gainfocus accessibilityhelper requestkeyboardfocusforvirtualview explorebytouchhelper invalid i d else which doesn t clear focus state properly thumb halo still look focused after leave the view and most importantly the view doesn t participate in focus logic anymore and prevent move focus past it in any direction e g if I move down from the slider I can t move back up to any part of the view hierarchy above and include the slider this be easily fix by accessibilityhelper clearkeyboardfocusforvirtualview focusedthumbidx key press handling tab and shift tab be now use to increment and decrement the slider value why tab key also can t pass the focus to neighboring view tab and shift tab don t switch between thumb when a thumb be active in rangeslider focus just leave the view so there s no way to set multiple value in one go there be no way to exit activate thumb state in rangeslider so I can use arrow key to navigate between thumb again expect behavior 1 slider correctly clear focus when focus leave the slider the slider must look unfocused when I attempt to refocus slider use keyboard it must allow I to do so 2 tab key switch focus between slider thumb and the rest of the view hierarchy when there s a single slider thumb tab focus the view follow the slider shift tab focus the view before the slider when there be multiple thumb tab focus the view follow the slider if the last thumb be focus shift tab focus the view before the slider if the first thumb be focus otherwise focus be pass between thumb 3 use tab or shift tab work when a thumb be active the next focused thumb will be activate 4 in rangeslider there be a way to exit activate thumb state e g enter key press get I to activate state another enter key press will exit the activate state and hide label source code play around the slider demo in catalog app in an emulator check the rangeslider by update the demo app public class sliderscrollcontainerdemofragment extend demofragment override public view oncreatedemoview layoutinflater layoutinflater nullable viewgroup viewgroup nullable bundle bundle view view layoutinflat inflate r layout cat slider demo scroll viewgroup false attachtoroot linearlayout slidercontainer view findviewbyid r i d slidercontainer for int I 0 I 50 I rangeslider slider new rangeslider layoutinflater getcontext slider setvaluefrom 0f slider setvalueto 1000f slider setvalue 100f 200f 300f slidercontainer addview slider viewgroup layoutparam match parent viewgroup layoutparams wrap content return view android api version any material library version 1 1 0 beta01 device pixel 3a android r avd with google play intel x86 atom 64 system image r4 I m work on a pull request rn
materialcomponentsmaterialcomponentsandroid
bottomappbar performhide performshow not work
Bug
hello for some reason hide the menu do not work xml image style image code image version com google android material material 1 2 0 beta01 result image
materialcomponentsmaterialcomponentsandroid
issue 882 happen again in 1 2 0 beta01
Bug
datepicker to highlight wrong the day as today
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton touch ripple animation be systematically abort on touch up
Bug
description contrary to regular materialbutton and floatingactionbutton extendedfloatingactionbutton have an issue where when the finger leave the screen after have touch it the ripple animation be abort give a rough look and feel which also feel inconsistent with how the ripple nicely start and how it work in other component expect behavior the ripple animation should not be abort but should signal touch up just like floatingactionbutton materialbutton and other component do source code this can be test with the material builder already exist in this repository android api version test on api 29 android 10 material library version 1 2 0 beta01 device test on a google pixel 2 xl
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full descri screenshot quran ption 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
constraintlayout transitionlistener bug since beta05
Bug
when use motion layout and transition listener since beta05 of constraint layout the ontransition complete method be call multiple time in my case 3 time it be ok till beta 4 bind container settransitionlistener new motionlayout transitionlistener override public void ontransitionstarte motionlayout motionlayout int I int i1 override public void ontransitionchange motionlayout motionlayout int I int i1 float v override public void ontransitioncomplete motionlayout motionlayout int I log d splash ontransitioncomplete call startactivity new intent context mainactivity class finish override public void ontransitiontrigger motionlayout motionlayout int I boolean b float v that ontransitioncomplete method be call 3 time but it get call only once in beta04 of constraint layout also check in new beta06 of constraint layout and same issue test device mia2 android version android 10 q
materialcomponentsmaterialcomponentsandroid
materialdatepicker localization for date not by default
Bug
description I be on an hispanic country and develop an important app for a courier company and the user normally doesn t know how to speak english so everything must be on spanish I have not fount a way to change the date locale expect behavior what I need be a method or a way to set the locale use by the dialog and in that way the date display will be on that locale just like abr instead of apr and ene instead of jan android api version sdk 29 material library version com google android material material 1 2 0 alpha06
materialcomponentsmaterialcomponentsandroid
swiperefreshlayout after drag and return to the initial position manually the elevation of the view be visible
Bug
description after the drag bottom occur and the view be drag to the top to the initial position the swipe refresh do hide entirely the elevation be visible source code android api version 29 material library version 1 2 0 alpha06
materialcomponentsmaterialcomponentsandroid
transition bug sample of transition cause no transition and reset scroll in some case
Bug
description in the sample if you click a partially visible item and go back there be no transition and the list get reset to a different scroll state expect behavior have transition back as we have a transition to go forward and let the list stay as it be before enter here s how it look like device 2020 05 30 104648 zip source code it s the sample of catalog when press on transition android api version api 29 material library version the repository be a mess really hard to find the version I hope this help androidxversion annotation 1 0 1 appcompat 1 1 0 cardview 1 0 0 constraintlayout 1 1 3 coordinatorlayout 1 1 0 core 1 2 0 experimental 1 0 0 fragment 1 0 0 lifecycle 2 0 0 recyclerview 1 0 0 recyclerviewselection 1 0 0 transition 1 2 0 vectordrawable 1 1 0 viewpager2 1 0 0 dynamicanimation 1 0 0 mdclibraryversion 1 2 0 alpha06 device pixel 4
materialcomponentsmaterialcomponentsandroid
materialdatepicker ok button be not fully visible 3 dot
Bug
this bug appear only on the specific device the ok button be not fully visible and it display as a 3 dot current behavior nokia 7 plus 85e24d84 ab07 44ea a83f 576edfa8f8a9 expect behavior pixel 3 image 2020 05 29 20 04 36 source code extension function fun appcompatactivity datepicker titleid int null minusyear int 0 minusday int 0 startdate long null datepattern string dmy datechosen string long unit val enddate localdate minusyear minusyear minusday minusday materialdatepicker builder datepicker apply titleid let settitletext it setcalendarconstraint calendarconstraint builder apply startdate let setstart it setend enddate todate time build build run addonpositivebuttonclicklistener datechosen invoke datetime it tolocaldate tostre datepattern it show supportfragmentmanager tostre on the place of call datepicker r string some str past 18 year past 1 day date timestamp espuser birthdate timestamp mlstosecond android api version 29 material library version 1 2 0 alpha06 device nokia 7 plus
materialcomponentsmaterialcomponentsandroid
materialarcmotion materialarcmotion not work properly
Bug
description the materialarcmotion not work properly in 1 2 0 beta01 after transition to be base on androidx and add transition platform subpackage as be when we transform view a into view b use materialarcmotion as a pathmotion and materialcontainertransform it be delay transition incompletely move weirdly to be it should be work properly in the alpha05 alpha06 be work well however as we can see below in the beta01 the transition work not properly alpha 06 beta 01 screenshot index issue description device information api first delay when return the transformation pixel 2 samsung galaxy s10 23 29 second transform incompletely pixel 2 samsung galaxy s7 nexus 10 samsung galaxy s10 23 27 29 29 third return weirdly when use with recyclerview adapter pixel 2 samsung galaxy s10 23 29 source code repository material alpha06 branch material beta01 branch migrate commit android api version 23 29 gradle build tool version 3 6 3 material library version 1 2 0 beta01
materialcomponentsmaterialcomponentsandroid
slider slider labelformatter be no long accessible from kotlin code in version 1 2 0 beta01
Bug
description the slider labelformatter class can not be access from kotlin code anymore see screenshot below for an example java code screenshot 2020 05 29 at 12 03 32 kotlin code screenshot 2020 05 29 at 12 04 18 workaround be to just use a kotlin lambda screenshot 2020 05 29 at 12 17 28 but add slider labelformatter break it again screenshot 2020 05 29 at 12 19 06 expect behavior no compile error material library version 1 2 0 beta01
materialcomponentsmaterialcomponentsandroid
materialcardview materialbutton the elevation s direction change from top to bottom to bottom to top
Bug
description there be drag view on the top of the view while drag the view its height also expand when the dragging occur even a bit almost no drag the card view below change the direction of its elevation however the behavior be different in different device on samsung everything be ok but on xiaomi and huawei the behavior be strange source code android api version android api version here material library version 1 1 0 alpha02 then I try 1 2 0 alpha06 the same issue occur device sumsung a6 android 10 xiaomi note 7 api level 28
materialcomponentsmaterialcomponentsandroid
materialdatepicker android widget timepicker xmlpullparserexception
Bug
description since I be use the theme materialcomponent daynight noactionbar theme I see crash report could t reproduce it myself cause by org xmlpull v1 xmlpullparserexception source code var picker materialdatepicker builder datepicker settitletext resource string day setselection 1590537600000 build picker show supportfragmentmanager picker tostre android api version 29 material library version xamarin google android material 1 1 0 rc3 device p20 p20 lite timepicker crash xperia z5 compact p20 redmi note 7 materialdatepicker crash various android version 6 0 7 1 1 9 0 android widget timepicker org xmlpull v1 xmlpullparserexception binary xml file line 18 tag require a drawable attribute or child tag define a drawable android graphic drawable statelistdrawable inflatechildelement statelistdrawable java 190 android graphic drawable statelistdrawable inflate statelistdrawable java 122 android graphic drawable drawableinflater inflatefromxmlfordensity drawableinflater java 148 android graphic drawable drawable createfromxmlinnerfordensity drawable java 1332 android graphic drawable drawable createfromxmlfordensity drawable java 1291 android content re resourcesimpl loaddrawableforcookie resourcesimpl java 1144 android content re resourcesimpl loaddrawable resourcesimpl java 917 android content re resource loaddrawable resource java 1083 android content re typedarray getdrawablefordensity typedarray java 1010 android content re typedarray getdrawable typedarray java 985 android widget timepickerclockdelegate timepickerclockdelegate java 214 android widget timepicker timepicker java 141 android widget timepicker timepicker java 114 android widget timepicker timepicker java 110 java lang reflect constructor newinstance0 native method java lang reflect constructor newinstance constructor java 343 android view layoutinflater createview layoutinflater java 658 com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 64 com android internal policy hwphonelayoutinflater oncreateview hwphonelayoutinflater java 105 android view layoutinflater oncreateview layoutinflater java 731 android view layoutinflater createviewfromtag layoutinflater java 799 android view layoutinflater createviewfromtag layoutinflater java 741 android view layoutinflater inflate layoutinflater java 492 android view layoutinflater inflate layoutinflater java 423 android view layoutinflater inflate layoutinflater java 374 android app timepickerdialog timepickerdialog java 120 android app timepickerdialog timepickerdialog java 80 mono android view view onclicklistenerimplementor n onclick native method mono android view view onclicklistenerimplementor onclick unknown source 0 android widget autocompletetextview passthroughclicklistener onclick autocompletetextview java 1371 android view view callonclick view java 6691 mono android view view ontouchlistenerimplementor n ontouch native method mono android view view ontouchlistenerimplementor ontouch unknown source 0 android view view dispatchtouchevent view java 12624 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 android view viewgroup dispatchtransformedtouchevent viewgroup java 3041 android view viewgroup dispatchtouchevent viewgroup java 2728 com android internal policy decorview superdispatchtouchevent decorview java 565 com android internal policy phonewindow superdispatchtouchevent phonewindow java 1929 android app activity dispatchtouchevent activity java 3594 androidx appcompat view windowcallbackwrapper dispatchtouchevent unknown source 2 androidx appcompat view windowcallbackwrapper dispatchtouchevent unknown source 2 com android internal policy decorview dispatchtouchevent decorview java 514 android view view dispatchpointerevent view java 12873 android view viewrootimpl viewpostimeinputstage processpointerevent viewrootimpl java 5771 android view viewrootimpl viewpostimeinputstage onprocess viewrootimpl java 5535 android view viewrootimpl inputstage deliver viewrootimpl java 4983 android view viewrootimpl inputstage ondelivertonext viewrootimpl java 5036 android view viewrootimpl inputstage forward viewrootimpl java 5002 android view viewrootimpl asyncinputstage forward viewrootimpl java 5157 android view viewrootimpl inputstage apply viewrootimpl java 5010 android view viewrootimpl asyncinputstage apply viewrootimpl java 5214 android view viewrootimpl inputstage deliver viewrootimpl java 4983 android view viewrootimpl inputstage ondelivertonext viewrootimpl java 5036 android view viewrootimpl inputstage forward viewrootimpl java 5002 android view viewrootimpl inputstage apply viewrootimpl java 5010 android view viewrootimpl inputstage deliver viewrootimpl java 4983 android view viewrootimpl deliverinputevent viewrootimpl java 7803 android view viewrootimpl doprocessinputevent viewrootimpl java 7768 android view viewrootimpl enqueueinputevent viewrootimpl java 7726 android view viewrootimpl windowinputeventreceiver oninputevent viewrootimpl java 8007 android view inputeventreceiver dispatchinputevent inputeventreceiver java 202 android os messagequeue nativepollonce native method android os messagequeue next messagequeue java 386 android os looper loop looper java 175 android app activitythread main activitythread java 7625 java lang reflect method invoke native method com android internal os runtimeinit methodandargscaller run runtimeinit java 524 com android internal os zygoteinit main zygoteinit java 987 materialdatepicker android graphic drawable statelistdrawable inflatechildelement statelistdrawable java 189 android graphic drawable statelistdrawable inflate statelistdrawable java 122 android graphic drawable drawableinflater inflatefromxmlfordensity drawableinflater java 142 android graphic drawable drawable createfromxmlinnerfordensity drawable java 1295 android graphic drawable drawable createfromxmlfordensity drawable java 1254 android content re resourcesimpl loaddrawableforcookie resourcesimpl java 798 android content re resourcesimpl loaddrawable resourcesimpl java 633 android content re resource loaddrawable resource java 894 android content re typedarray getdrawablefordensity typedarray java 953 android content re typedarray getdrawable typedarray java 928 android view view view java 4743 android view viewgroup viewgroup java 597 android widget linearlayout linearlayout java 234 android widget linearlayout linearlayout java 230 android widget linearlayout linearlayout java 226 java lang reflect constructor newinstance0 constructor java java lang reflect constructor newinstance constructor java 334 android view layoutinflater createview layoutinflater java 647 com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 58 android view layoutinflater oncreateview layoutinflater java 720 android view layoutinflater createviewfromtag layoutinflater java 788 android view layoutinflater createviewfromtag layoutinflater java 730 android view layoutinflater rinflate layoutinflater java 863 android view layoutinflater parseinclude layoutinflater java 963 android view layoutinflater rinflate layoutinflater java 859 android view layoutinflater rinflatechildren layoutinflater java 824 android view layoutinflater inflate layoutinflater java 515 android view layoutinflater inflate layoutinflater java 423 android view layoutinflater inflate layoutinflater java 374 com google android material datepicker materialdatepicker oncreateview androidx fragment app fragment performcreateview androidx fragment app fragmentstatemanager createview androidx fragment app fragmentmanager movetostate androidx fragment app fragmentmanager movetostate androidx fragment app fragmentmanager movefragmenttoexpectedstate androidx fragment app fragmentmanager movetostate androidx fragment app backstackrecord executeop androidx fragment app fragmentmanager executeop androidx fragment app fragmentmanager executeopstogether androidx fragment app fragmentmanager removeredundantoperationsandexecute androidx fragment app fragmentmanager execpendingaction androidx fragment app fragmentmanager 4 run android os handler handlecallback handler java 789 android os handler dispatchmessage handler java 98 android os looper loop looper java 164 android app activitythread main activitythread java 6710 java lang reflect method invoke method java com android internal os zygote methodandargscaller run zygote java 240 com android internal os zygoteinit main zygoteinit java 770
materialcomponentsmaterialcomponentsandroid
materialcalendargridview nullpointerexception in ondraw
Bug
description materialdatepicker crash when use setselection and materialcalendar as materialcalendarfullscreentheme the crash happen when swipe to the left after the dialog show up source code style themeoverlay materialcomponent materialcalendar materialdatepick builder daterangepicker setselection new pair 1485129600000l 1590537600000l build show getsupportfragmentmanager expect behavior no crash android api version 29 material library version 1 2 0 alpha06 device device on which the bug be encounter here galaxy a10 pixel 2 p10 lite oneplus 7 pro java lang nullpointerexception attempt to invoke virtual method int android view view getright on a null object reference at com google android material datepicker materialcalendargridview ondraw materialcalendargridview java 158 at android view view draw view java 21609 at android widget abslistview draw abslistview java 4514 at android view view updatedisplaylistifdirty view java 20471 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at androidx recyclerview widget recyclerview drawchild recyclerview java 5030 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view draw view java 21612 at androidx recyclerview widget recyclerview draw recyclerview java 4429 at android view view updatedisplaylistifdirty view java 20471 at android view viewgroup recreatechilddisplaylist viewgroup java 4397 at android view viewgroup dispatchgetdisplaylist viewgroup java 4370 at android view view updatedisplaylistifdirty view java 20431 at android view viewgroup recreatechilddisplaylist viewgroup java 4397 at android view viewgroup dispatchgetdisplaylist viewgroup java 4370 at android view view updatedisplaylistifdirty view java 20431 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view updatedisplaylistifdirty view java 20462 at android view view draw view java 21336 at android view viewgroup drawchild viewgroup java 4413 at android view viewgroup dispatchdraw viewgroup java 4174 at android view view draw view java 21612 at com android internal policy decorview draw decorview java 815 at android view view updatedisplaylistifdirty view java 20471 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 580 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 586 at android view threadedrenderer draw threadedrenderer java 659 at android view viewrootimpl draw viewrootimpl java 3876 at android view viewrootimpl performdraw viewrootimpl java 3676 at android view viewrootimpl performtraversal viewrootimpl java 2998 at android view viewrootimpl dotraversal viewrootimpl java 1935 at android view viewrootimpl traversalrunnable run viewrootimpl java 8023 at android view choreographer callbackrecord run choreographer java 1163 at android view choreographer docallback choreographer java 986 at android view choreographer doframe choreographer java 902
materialcomponentsmaterialcomponentsandroid
chip extra margin have be add to the component
Bug
description the chip component have extra margin as you can see in the screenshot this be happen just upgrade the com google android material material 1 0 0 to com google android material material 1 1 0 expect behavior the margin should not be include in the chip component android api version all version material library version com google android material material 1 1 0 device all device screenshot 1590583572 screenshot 1590583695
materialcomponentsmaterialcomponentsandroid
child view be cut off when expandedoffset be set on bottomsheetbehavior
Bug
description when I add a recyclerview to that fragmentcontainerview the bottom of it be cut off doesn t let I scroll to the end by the same amount as I set as the behavior expandedoffset expect behavior I would expect all content to be scrollable source code with the follow style
materialcomponentsmaterialcomponentsandroid
bottomappbar fabcradle have be disable
Bug
description good evening I m currently work on an app that use bottomappbar and navigation we want to hide the bottomappbar except for the main screen so we hide it when we move to another screen when I click on fab to transition and come back the fabcradle in bottomappbar be go this be not an intentional move see the gif below to see it in action be this the intend behavior or be it a bug thank you very much expect behavior output source code class mainactivity appcompatactivity private val navcontroller navcontroller by lazy findnavcontroller r i d nav host fragment override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main hoge fab setonclicklistener navcontroller navigate r i d hoge fragment visibilitynavelement navcontroller private fun visibilitynavelement navcontroller navcontroller navcontroller addondestinationchangedlistener destination val isvisibility when destination i d r i d hoge fragment view visible else view go bottom app bar visibility isvisibility hoge fab visibility isvisibility android api version android api 29 material library version 1 2 0 alpha06 device galaxys10
materialcomponentsmaterialcomponentsandroid
snackbar custom view can t be drag
Bug
I have create a custom view extend from the basetransientbottombar class I can t drag to dismiss this view so no animation be visible for drag when I m try to drag the view the message below be show in my logcat console ignore pointerid 0 because action down be not receive for this pointer before action move it likely happen because viewdraghelper do not receive all the event in the event stream class customsnackbar parent viewgroup content customview basetransientbottombar customview parent content content val behavior behavior apply setswipedirection swipedismissbehavior swipe direction end to start setdragdismissdistance 0 3f customsnackbar setduration snackbar length indefinite setbehavior behavior android target and compile sdkversion 28 material library version test with 1 1 0 1 2 0 alpha05 1 2 0 alpha07 the same problem
materialcomponentsmaterialcomponentsandroid
shapeableimageview nullpointerexception when set nullable annotated strokecolor to null
Bug
description if you call setstrokecolor null whenever the ondraw method of the shapeableimageview be call it will crash the entire app with a nullpointerexception side note kotlin would not let this compile at all if mdc android be use it expect behavior have the strokecolor private field be nullable annotate assign it to local and null check it before use here s the line where the npe strike l151 material library version 1 2 0 alpha06
materialcomponentsmaterialcomponentsandroid
shapeableimageview rounded corner stroke be cut off by default
Bug
description by default when a shapeableimageview have round corner and you define strokewidth and strokecolor it will be cut off in the screenshot just below you can see it compare to textinputlayout below it which render fine screenshot 20200526 105209 expect behavior render to not appear cut off by default without have to increase the padding source code extension kotlin fun shapeableimageview roundallcorner dimension radius float shapeappearancemodel shapeappearancemodel tobuilder setallcorner cornerfamily round radius build code kotlin myimageview apply roundallcorner dp 8f strokecolor colorsl r color image border on background strokewidth dp 2 happen with big value as well padding strokewidth uncommente this fix render adjustviewbound true the dp extension come from splittie android api version 29 material library version 1 2 0 alpha06 device google pixel 2 xl
materialcomponentsmaterialcomponentsandroid
shape shapeableimageview do not update shapeappearancemodel
Bug
description in certain situation call setshapeappearancemodel on a shapeableimageview do not update the edge and corner treatment this happen as requestlayout be not very aggressive in update the view for example call setshapeappearancemodel in the onbind method of a recyclerview do not update directly to the screen video example android api version affect all version of android test on api 29 android 10 material library version late 1 2 0 alpha06 device pixel 3
materialcomponentsmaterialcomponentsandroid
transition materialcontainertransform can not be use by transitionmanager begindelayedtransition
Bug
description materialcontainertransform be extend the android transition transition but now transitionmanager begindelayedtransition method that 2nd argument type be androidx transition expect behavior source code android api version android api 29 material library version 1 2 0 alpha06 device so when to release new version 1 2 0 alpha07
materialcomponentsmaterialcomponentsandroid
bottomappbar navigationview clip child even if specify not to
Bug
description bottomappbar navigationview clip child even if specify not to expect behavior ripple shouldn t be clip as the follow screenshot show image source code in order to easily reproduce this just add the following xml to an activity menu menu activity home bottom navigation a simple menu be need android api version api 28 material library version 1 1 0 device reproducible in galaxy s9 pixel 3 emulator too
materialcomponentsmaterialcomponentsandroid
badgeutil attachbadgedrawable incorrect nonnull for compatbadgeparent
Bug
description badgeutil expect a nonnull compatbadgeparent parameter despite documentation suggest otherwise expect behavior either update documentation or lift restriction on the parameter source code l75 android api version 29 material library version 1 2 0 alpha06 device nokia 7 1
materialcomponentsmaterialcomponentsandroid
how to get diamond cut bottom app bar and fab
Bug
I find the class bottomappbarcutcornerstopedge how and where to use this class to get the diamond cut appearence for bottom app bar and fab
materialcomponentsmaterialcomponentsandroid
materialalertdialog message limit to one line
Bug
description message in materialalertdialogbuilder be always truncate at the first line expect behavior message should be multi line like before android api version test on api 23 and 29 material library version 1 1 device nexus 5 and pixel 2
materialcomponentsmaterialcomponentsandroid
textinputlayout counter be hide by keyboard
Bug
description if app counterenable true be set in a textinputlayout whenever a user open a keyboard to type in something the counter be hide by the keyboard thus defeat its purpose of let the user know how much he she have type and how much character s be leave expect behavior the expect behavior imho would be to make the modify the component in such a way that the keyboard no long hide the counter and allow the user to know how much character s he she be leave to type source code android api version 29 material library version 1 1 0 alpha08 device pixel 2
materialcomponentsmaterialcomponentsandroid
materialcardview card be not visible with shadow compat mode always
Bug
description materialcardview be not visible if you apply shadow compat mode always to its materialshapedrawable compact shadow for card view work correctly in version 1 1 0 alpha10 but since 1 1 0 beta01 content of card view and card itself become invisible if you apply shadow compat mode always also this statement be correct for late version 1 2 0 alpha06 here s how card look with 1 1 0 alpha10 screenshot 20200521 155332 01 but with any version start 1 1 0 beta01 card be absolutely invisible I m attach screenshot with layout bound enable and you can see that card be there but content be invisible as well as shadow screenshot 20200521 155630 01 expect behavior materialcardview and its content be visible after apply shadow compat mode always source code run code bellow under 1 1 0 alpha10 and you ll see card with correct content and perfect shadow under 1 1 0 beta01 screen will be empty layout code of activity inflate layout and enable compact shadow class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val cardview findviewbyid r i d card view getshapebackground cardview shadowcompatibilitymode materialshapedrawable shadow compat mode always private fun getshapebackground view view materialshapedrawable val background view background if background be materialshapedrawable return background if background be drawablewrapper val wrappeddrawable background drawable if wrappeddrawable be materialshapedrawable return wrappeddrawable return null android api version I reproduce on android 8 and android 10 material library version any version after 1 1 0 alpha10 so 1 1 0 beta01 1 2 0 alpha06 device oneplus 6 run android 10 nexus 5 emulator run android 8 why do I need this ability to enable compact shadow for materialcardview be important for my app that s why I stick with 1 1 0 alpha10 my app heavily use card with semitransparent background and because of that I m force to use compact shadow since native shadow don t play nice with translucent background but in example above I use opaque background to show that problem be not relate to translucent background
materialcomponentsmaterialcomponentsandroid
button size increase in version 1 2 0 alpha06
Bug
description button height see very large in version 1 2 0 alpha06 but it look fine in 1 2 0 alpha02 expect behavior it should be look fine as version 1 2 0 alpha02
materialcomponentsmaterialcomponentsandroid
outline button material theme be not show in late version
Bug
description in late version 1 2 0 alpha06 outline button be not work it will work only in 1 2 0 alpha02 expect behavior please fix this in the next version
materialcomponentsmaterialcomponentsandroid
textinputlayout some attribute doesn t work
Bug
description some attribute of textinputlayout doesn t work about error I find issue about here attribute app boxstrokeerrorcolor color errorstroke app erroricontint color erroricontint it dosen t work well be there anything else I can do to use these attribute expect behavior I think it have to change error icon color and stroke color when error occur source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 28 material library version 1 2 0 alpha06 device all device
materialcomponentsmaterialcomponentsandroid
container transform fade mode through flag not work as expect
Bug
description full description of issue here I be use share element container transform for the transition between activity my requirement be to fade out outgoing content for half of the transition duration and fade in incoming content for another half I use fade throgh flag but be not work as expect sample expect behavior the textview inside main card which should fade out for 500 milisecond and texrview inside detailcard should fade in for 500 milisecond source code mainactivity class package com example containertransform import android app activityoption import android content intent import androidx appcompat app appcompatactivity import android os bundle import android view window import com google android material transition materialcontainertransformsharedelementcallback import kotlinx android synthetic main activity main class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle window requestfeature window feature activity transition super oncreate savedinstancestate setcontentview r layout activity main setexitsharedelementcallback materialcontainertransformsharedelementcallback window sharedelementsuseoverlay false card view main setonclicklistener opendetailscreen private fun opendetailscreen val intent intent this detailactivity class java val bundle activityoption makescenetransitionanimation this card view main resource getstre r string transition service container tobundle this startactivity intent bundle detailsactivity package com example containertransform import android graphic color import android os bundle import android view window import androidx appcompat app appcompatactivity import com google android material transition materialcontainertransform import com google android material transition materialcontainertransform fade mode through import com google android material transition materialcontainertransformsharedelementcallback class detailactivity appcompatactivity override fun oncreate savedinstancestate bundle window requestfeature window feature activity transition setentersharedelementcallback materialcontainertransformsharedelementcallback window sharedelemententertransition materialcontainertransform apply addtarget r i d card view duration 1000l scrimcolor color transparent containercolor resource getcolor r color white fademode fade mode through window sharedelementreturntransition materialcontainertransform apply addtarget r i d card view duration 1000l scrimcolor color transparent containercolor resource getcolor r color white fademode fade mode through super oncreate savedinstancestate setcontentview r layout activity detail activity main xml activity detail xml android api version android api version here material library version 1 2 0 alpha06 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 io site get start page refer to android 9
Bug
description on this documentation page step 2 refer to android 9 compile your app with android 9 in order to use material component for android and the late version of the support librarie you will have to update your app s compilesdkversion to 28 and download the android 9 use the sdk manager for more information on android 9 and its timeline take a look at the program overview page expect behavior update that step to refer to android 10
materialcomponentsmaterialcomponentsandroid
exposeddropdown accessbility issue relate to autocompletetextvieew
Bug
description I try to use autocompletetextview with textinputlayout for exposeddropdown it work as expect without talkback but when talkback be turn on and drop down be open it talkback not able to navigate through it expect behavior talkback should able to behave properly and when dropdown be open it should process it as expect material library version material android library version you be use here 1 1 0 thank
materialcomponentsmaterialcomponentsandroid
shapeableimageview when add pad to the imageview it be not work on design wizard
Bug
description when add pad to the shapeableimageview it be not work on the design wizard of the android studio but be work when run the app maybe it be not an urgent issue but when add pad to the view the view itself disappear but it be show as expect on the device I can not see it to adjust my design I make a workaround to show the image at least by add padding use tool namespace with 0dp as a value to pad to be able to see the render but still pad not work 1 2
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout only scroll header when come back from another activity
Bug
I have almost the same issue I have try version 1 1 0 and 1 2 0 alpha06 see video 1 1st view a fragment that have coordinatorlayout it scroll fine 2 go to another activity same setup 2 1 if I do not touch any view in the activity and go back the fragment scroll fine 2 2 if I focus on an edittext or click on a button and then go back the header scroll the content stay in the same place ps since the 1st view the fragment be part of a navigation with navhostfragment and bottomnavigationview sometimes the other fragment have 0 width and height so a blank page although the api call work recycler be populate etc source code android api version android 9 work on android 10 material library version 1 1 0 1 2 0 alpha06 device nexus 5x work on pixel 3 with android 10
materialcomponentsmaterialcomponentsandroid
materialcardview stroke bindingadapter invalidate
Bug
description layout recyclerview viewholder materialcardview so I have materialcardview list and I want to change each stroke dynamically materialcardview s stroke not update even if setstrokewidth or setstrokecolor invoke but it update when I action down specific card expect behavior I think stroke should be update dynamically source code xml and I try this it work kotlin bindingadapter strokecolor fun materialcardview setstrokestyle colorint strokecolor int setstrokecolor strokecolor I add this invalidate android api version 9 material library version com google android material material 1 2 0 alpha06 device samsung sm a505n 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
continuous integration android api 24 miss package
Bug
description when run the ci the android version 24 variant of the test fail as display by the stack trace of any recent ci run sdkmanager fail to find the system image error the command sdkmanager system image android emulator api abi dev null fail and exit with 1 during expect behavior the ci should not error for this reason and run normally on master it should pass source code here be the specific command that create the error sdkmanager system image android emulator api abi dev null what actually crash however be the abi environment variable equal to google apis armeabi v7a1
materialcomponentsmaterialcomponentsandroid
npe in bottomsheetbehavior viewdraghelper
Bug
description crash see log below expect behavior not to crash android api version 8 1 0 material library version com google android material material 1 2 0 alpha06 device moto g 5 plus more info from android issue tracker look like this be in l512 which should be file on there s already a null check early in that method at l498 so probably the same defensive check need to be do everywhere viewdraghelper be use go to close this here please refile in the github tracker v8 be the obfuscate name of viewdraghelper and b be mtouchslop fatal exception java lang nullpointerexception attempt to read from field int v8 b on a null object reference at androidx customview widget viewdraghelper gettouchslop viewdraghelper java 503 at com google android material bottomsheet bottomsheetbehavior ontouchevent bottomsheetbehavior java 512 at androidx coordinatorlayout widget coordinatorlayout performintercept coordinatorlayout java 505 at androidx coordinatorlayout widget coordinatorlayout ontouchevent coordinatorlayout java 557 at android view view dispatchtouchevent view java 11779 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2965 at android view viewgroup dispatchtouchevent viewgroup java 2643 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2971 at android view viewgroup dispatchtouchevent viewgroup java 2657 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2971 at android view viewgroup dispatchtouchevent viewgroup java 2657 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2971 at android view viewgroup dispatchtouchevent viewgroup java 2657 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2971 at android view viewgroup dispatchtouchevent viewgroup java 2657 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2971 at android view viewgroup dispatchtouchevent viewgroup java 2657 at android view viewgroup dispatchtransformedtouchevent viewgroup java 2971 at android view viewgroup dispatchtouchevent viewgroup java 2657 at com android internal policy decorview superdispatchtouchevent decorview java 477 at com android internal policy phonewindow superdispatchtouchevent phonewindow java 1835 at android app activity dispatchtouchevent activity java 3326 at androidx appcompat view windowcallbackwrapper dispatchtouchevent windowcallbackwrapper java 69 at androidx appcompat view windowcallbackwrapper dispatchtouchevent windowcallbackwrapper java 1 at com android internal policy decorview dispatchtouchevent decorview java 439 at android view view dispatchpointerevent view java 12018 at android view viewrootimpl viewpostimeinputstage processpointerevent viewrootimpl java 4829 at android view viewrootimpl viewpostimeinputstage onprocess viewrootimpl java 4643 at android view viewrootimpl inputstage deliver viewrootimpl java 4181 at android view viewrootimpl inputstage ondelivertonext viewrootimpl java 4234 at android view viewrootimpl inputstage forward viewrootimpl java 4200 at android view viewrootimpl asyncinputstage forward viewrootimpl java 4327 at android view viewrootimpl inputstage apply viewrootimpl java 4208 at android view viewrootimpl asyncinputstage apply viewrootimpl java 4384 at android view viewrootimpl inputstage deliver viewrootimpl java 4181 at android view viewrootimpl inputstage ondelivertonext viewrootimpl java 4234 at android view viewrootimpl inputstage forward viewrootimpl java 4200 at android view viewrootimpl inputstage apply viewrootimpl java 4208 at android view viewrootimpl inputstage deliver viewrootimpl java 4181 at android view viewrootimpl deliverinputevent viewrootimpl java 6744 at android view viewrootimpl doprocessinputevent viewrootimpl java 6683 at android view viewrootimpl enqueueinputevent viewrootimpl java 6644 at android view viewrootimpl windowinputeventreceiver oninputevent viewrootimpl java 6847 at android view inputeventreceiver dispatchinputevent inputeventreceiver java 193 at android os messagequeue nativepollonce messagequeue java at android os messagequeue next messagequeue java 325 at android os looper loop looper java 142 at android app activitythread main activitythread java 6626 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 438 at com android internal os zygoteinit main zygoteinit java 811
materialcomponentsmaterialcomponentsandroid
slider illegalstateexception validatevalue
Bug
as it state in the title it s crash randomly in a few device I can t reproduce on all my 20 device with different sdk and oem but I can see it on my console I have no clue how this be possible even after check the source code of the component I can see this crash in different apis such as android 10 9 and 8 1 though I can see no correlation of be cause by the sdk version since there s no pattern I don t even know where this be crash on my code to be honest specially because I can t reproduce on my debug build any hint more than happy to provide more information as it s need thank java lang illegalstateexception at com google android material slider slider validatevalue slider java 517 at com google android material slider slider validateconfigurationifdirty slider java 530 at com google android material slider slider calculatetickscoordinate slider java 1329 at com google android material slider slider onsizechange slider java 1322 at android view view sizechange view java 19792 at android view view setframe view java 19753 at android view view layout view java 19656 at android widget linearlayout setchildframe linearlayout java 1791 at android widget linearlayout layouthorizontal linearlayout java 1780 at android widget linearlayout onlayout linearlayout java 1546 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget linearlayout setchildframe linearlayout java 1791 at android widget linearlayout layoutvertical linearlayout java 1635 at android widget linearlayout onlayout linearlayout java 1544 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget linearlayout setchildframe linearlayout java 1791 at android widget linearlayout layoutvertical linearlayout java 1635 at android widget linearlayout onlayout linearlayout java 1544 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android widget scrollview onlayout scrollview java 1552 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at androidx coordinatorlayout widget coordinatorlayout layoutchild coordinatorlayout java 1213 at androidx coordinatorlayout widget coordinatorlayout onlayoutchild coordinatorlayout java 899 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java 919 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget linearlayout setchildframe linearlayout java 1791 at android widget linearlayout layoutvertical linearlayout java 1635 at android widget linearlayout onlayout linearlayout java 1544 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget linearlayout setchildframe linearlayout java 1791 at android widget linearlayout layoutvertical linearlayout java 1635 at android widget linearlayout onlayout linearlayout java 1544 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at com android internal policy decorview onlayout decorview java 761 at android view view layout view java 19659 at android view viewgroup layout viewgroup java 6075 at android view viewrootimpl performlayout viewrootimpl java 2496 at android view viewrootimpl performtraversal viewrootimpl java 2212 at android view viewrootimpl dotraversal viewrootimpl java 1392 at android view viewrootimpl traversalrunnable run viewrootimpl java 6752 at android view choreographer callbackrecord run choreographer java 911 at android view choreographer docallback choreographer java 723 at android view choreographer doframe choreographer java 658 at android view choreographer framedisplayeventreceiver run choreographer java 897 at android os handler handlecallback handler java 790 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 164 at android app activitythread main activitythread java 6494 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 438 at com android internal os zygoteinit main zygoteinit java 807
materialcomponentsmaterialcomponentsandroid
floatingactionbutton api 16
Bug
cause by java lang illegalstateexception one or more child of this layerdrawable do not have constant state this drawable can not be mutate at android graphic drawable layerdrawable mutate layerdrawable java 579 at android graphic drawable drawablecontainer mutate drawablecontainer java 414 at android graphic drawable statelistdrawable mutate statelistdrawable java 249 at androidx appcompat widget resourcemanagerinternal tintdrawable resourcemanagerinternal java 452 at androidx appcompat widget appcompatdrawablemanager tintdrawable appcompatdrawablemanager java 433 at androidx appcompat widget appcompatbackgroundhelper applysupportbackgroundtint appcompatbackgroundhelper java 128 at androidx appcompat widget appcompatbackgroundhelper setsupportbackgroundtintlist appcompatbackgroundhelper java 96 at androidx appcompat widget appcompatbutton setsupportbackgroundtintlist appcompatbutton java 108 at com google android material button materialbutton setsupportbackgroundtintlist materialbutton java 264 at androidx core view viewcompat setbackgroundtintlist viewcompat java 2656 at androidx appcompat widget appcompatbackgroundhelper loadfromattribute appcompatbackgroundhelper java 60 at androidx appcompat widget appcompatbutton appcompatbutton java 75 at com google android material button materialbutton materialbutton java 195 at com google android material button materialbutton materialbutton java 191 at com google android material theme materialcomponentsviewinflater createbutton materialcomponentsviewinflater java 57 at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 111 at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1407 at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1457 at android view layoutinflater createviewfromta
materialcomponentsmaterialcomponentsandroid
textinputlayout textinputedittext textinputedittext do not update as default edittext do during espresso test
Bug
description during espresso test if you try to screenshot before and after type a text the component just don t update but default edittext do update as expect I think it be a animation problem I try to disable it in developer option but the problem persist textinputlayout textinputedittext s animation persist so a think there be some animation happen inside a handler or some stuff expect behavior all three field should have be fill if you pay attention you can see description label during its animation enter image description here 1 1 1 source code kotlin screenshotter takescreenshot before activity onview withid i d perform typetext text onview withid id2 perform typetext text2 onview withid id3 perform typetext text3 screenshott takescreenshot after activity android api version 24 material library version 1 2 0 alpha06 also occur in 1 1 0 device android emulator pixel api 24
materialcomponentsmaterialcomponentsandroid
expose dropdown menu show object info instead of text with custom arrayadapter
Bug
description expose dropdown menu not properly display item in select state when use a custom arrayadapter expect behavior select state of dropdown should display the item exactly as it appear on the dropdown menu list but that do not happen as you see in the screenshot below dropdownfail source code kotlin class pulsearrayadapter context context layoutre private val resid int private val item list arrayadapter context resid item override fun getdropdownview position int convertview view parent viewgroup view return getcustomview position convertview parent override fun getview position int convertview view parent viewgroup view return getcustomview position convertview parent override fun getcount int return item size override fun getitem position int sonicoparam paramvalue return item position override fun getitemid position int long return position tolong private fun getcustomview pos int contertview view parent viewgroup view var view contertview if view null view layoutinflat from context inflate resid parent false view txtitem text item pos paramdesc let context getstre it return view as view android api version 27 28 29 material library version 1 2 0 alpha06 device xiaomi mi a1
materialcomponentsmaterialcomponentsandroid
textfield resource not find exception with password icon
Bug
description crash due to miss resource design password eye xml the same bug as close 670 cause by android content re resource notfoundexception file re drawable v21 design password eye xml from drawable resource i d 0x7f080086 at android content re resourcesimpl loaddrawableforcookie resourcesimpl java 820 at android content re resourcesimpl loaddrawable resourcesimpl java 630 at android content re resource getdrawablefordensity resource java 877 at android content re xresources getdrawablefordensity xresource java 868 at android content re resource getdrawable resource java 819 at android content re xresource getdrawable xresource java 790 at android content context getdrawable context java 605 at androidx core content contextcompat getdrawable contextcompat java 454 at androidx appcompat widget resourcemanagerinternal getdrawable resourcemanagerinternal java 144 at androidx appcompat widget resourcemanagerinternal getdrawable resourcemanagerinternal java 132 at androidx appcompat content re appcompatresource getdrawable appcompatresource java 104 at com google android material textfield passwordtoggleendicondelegate initialize passwordtoggleendicondelegate java 83 at com google android material textfield textinputlayout setendiconmode textinputlayout java 2379 at com google android material textfield textinputlayout textinputlayout java 681 at com google android material textfield textinputlayout textinputlayout java 396 at java lang reflect constructor newinstance0 constructor java at java lang reflect constructor newinstance constructor java 334 at android view layoutinflater createview layoutinflater java 647 at android view layoutinflater createviewfromtag layoutinflater java 790 at android view layoutinflater createviewfromtag layoutinflater java 730 at android view layoutinflater rinflate layoutinflater java 863 at android view layoutinflater rinflatechildren layoutinflater java 824 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at co tinode tindroid loginfragment oncreateview loginfragment java 51 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 dispatchstatechange fragmentmanager java 2629 at androidx fragment app fragmentmanager dispatchactivitycreated fragmentmanager java 2577 at androidx fragment app fragmentcontroller dispatchactivitycreate fragmentcontroller java 247 at androidx fragment app fragmentactivity onstart fragmentactivity java 541 at androidx appcompat app appcompatactivity onstart appcompatactivity java 201 at android app instrumentation callactivityonstart instrumentation java 1334 at android app activity performstart activity java 7029 at android app activitythread performlaunchactivity activitythread java 2741 at android app activitythread handlelaunchactivity activitythread java 2856 at android app activitythread wrap11 activitythread java at android app activitythread h handlemessage activitythread java 1589 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 164 at android app activitythread main activitythread java 6494 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 438 at com android internal os zygoteinit main zygoteinit java 807 expect behavior no crash source code xml android api version android api version here 23 27 material library version material android library version you be use here e g 1 1 0 alpha07 classpath com android tool build gradle 3 6 3 implementation androidx appcompat appcompat 1 1 0 implementation androidx vectordrawable vectordrawable 1 1 0 implementation com google android material material 1 1 0 android studio 3 6 3 build ai 192 7142 36 36 6392135 build on april 14 2020 runtime version 1 8 0 212 release 1586 b4 5784211 x86 64 vm openjdk 64 bit server vm by jetbrain s r o macos 10 15 4 gc parnew concurrentmarksweep memory 1981 m core 8 registry ide new welcome screen force true non bundle plugin org intellij plugin markdown com google service firebase device device on which the bug be encounter here api 27 brand lge model nexus 5x api 23 brand itel model s31
materialcomponentsmaterialcomponentsandroid
slider illegalstateexception not enough label to display all the value
Bug
description hi I be use an alpha version of material component to use the slider class so I certainly understand this be not production ready yet however I get some log from the crash report that the slider occasionally throw illegalstateexception of not enough label to display all the value on some user device as in ensurelabel line 1734 l1734 as this be more of an internal method I don t know if this be a bug or a result of misconfiguration please let I know if I be use the slider class wrong thank crash stack trace java lang illegalstateexception not enough label to display all the value at com google android material slider slider ensurelabel slider java 9 at com google android material slider slider ondraw slider java 15 at android view view draw view java 23190 at android view view updatedisplaylistifdirty view java 22065 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view viewgroup recreatechilddisplaylist viewgroup java 5214 at android view viewgroup dispatchgetdisplaylist viewgroup java 5186 at android view view updatedisplaylistifdirty view java 22020 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 588 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 594 at android view threadedrenderer draw threadedrenderer java 667 at android view viewrootimpl draw viewrootimpl java 4263 at android view viewrootimpl performdraw viewrootimpl java 4047 at android view viewrootimpl performtraversal viewrootimpl java 3320 at android view viewrootimpl dotraversal viewrootimpl java 2200 at android view viewrootimpl traversalrunnable run viewrootimpl java 9065 at android view choreographer callbackrecord run choreographer java 999 at android view choreographer docallback choreographer java 797 at android view choreographer doframe choreographer java 732 at android view choreographer framedisplayeventreceiver run choreographer java 984 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 237 at android app activitythread main activitythread java 8016 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 1076 expect behavior slider work normally across on all device source code layout xml my datum bind class to use with my customize app valuestart and app valueend attribute to represent a range of value java package com justzht lwp music apple helper bind import androidx annotation nonnull import androidx databinde bindingadapter import androidx databinde inversebindingadapter import androidx databinde inversebindinglistener import com google android material slider slider public class sliderbindingadapter bindingadapter android enable public static void setenable slider view boolean enable if view isenable enable view setenable enable inversebindingadapter attribute android value public static float getvalue slider view return view getvalue bindingadapter android value public static void setvalue slider view float progress if progress view getvalue view setvalue progress bindingadapter value valuestart valueend public static void setvalue slider view float start float end float startcurrent endcurrent if view getvalue size 2 startcurrent view getvaluefrom endcurrent view getvalueto else startcurrent view getvalue get 0 endcurrent view getvalue get 1 if start view getvaluefrom start view getvaluefrom if end view getvaluefrom end view getvaluefrom if start view getvalueto start view getvalueto if end view getvalueto end view getvalueto if start end start end if start startcurrent end endcurrent view setvalue start end inversebindingadapter attribute valuestart public static float getvaluestart slider view if view getvalue size 0 return view getvalue get 0 else return view getvaluefrom inversebindingadapter attribute valueend public static float getvalueend slider view if view getvalue size 1 return view getvalue get 1 else return view getvalueto public interface onstarttrackingtouch void onstarttrackingtouch slider slider public interface onstoptrackingtouch void onstoptrackingtouch slider slider public interface onvaluechange void onvaluechange slider slider float value boolean fromuser public interface onvalueuserchange void onvaluechange float value bindingadapter value valuestartattrchange valueendattrchange requireall false public static void setvaluelistener slider view final inversebindinglistener start final inversebindinglistener end view clearonchangelistener if start null end null view addonchangelistener slider value fromuser if start null start onchange if end null end onchange bindingadapter value android onvaluechange android onvalueuserchange requireall false public static void setvaluelistener slider view final onvaluechange change final onvalueuserchange userchange view clearonchangelistener if change null userchange null view addonchangelistener slider value fromuser if change null change onvaluechange slider value fromuser if userchange null fromuser userchange onvaluechange value bindingadapter value android onstarttrackingtouch android onstoptrackingtouch requireall false public static void setlistener slider view final onstarttrackingtouch start final onstoptrackingtouch stop view clearonslidertouchlistener if start null stop null view addonslidertouchlistener new slider onslidertouchlistener override public void onstarttrackingtouch nonnull slider slider if start null start onstarttrackingtouch slider override public void onstoptrackingtouch nonnull slider slider if stop null stop onstoptrackingtouch slider android api version android 10 material library version com google android material material 1 2 0 alpha06 device motorola one vision samsung galaxy s10 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 incompatable with adjustpan
Bug
description when I have a textinputedittext nest within a textinputlayout adjustpan do not work two issue arise 1 when the textinputedittext be at the bottom of the scrollview the screen be not pan up to show the current text this be show in the picture below you can see the purple cursor in between the x and c key on the keyboard that signify where the text currently be the soft keyboard cover this text and you can not scroll down to view the text it be permanently cover by the keyboard when the keyboard be visible and the text input be large screenshot 2020 05 08 03 31 11 2 when you have a large amount of text in the textinputedittext as show in the first screenshot and you click near the top of this text the pan do not work properly the third picture show what happen when I click on the word the on the first line of the input to the textinputedittext it scroll all of the text upwards off screen and you can no long see where the cursor be screenshot 2020 05 08 03 31 28 screenshot 2020 05 08 03 31 37 the reason I think this be a bug rather than my incorrect xml attribute be the fact that it pan correctly when I replace textinputedittext with a regular edittext when I keep everything the same except I change xml layout android api version 6 0 1 material library version 1 2 0 alpha06 device galaxy s5
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog rounded corner in expand state
Bug
description bottomsheetdialog have round corer only if it s not expand corner be round as it s specify in the shapeappearance during swipe or in collapse state once bottomsheetdialog become expand rounded corner be animate to sharp corner expect behavior rounded corner should not change in expand state if expand state be not full screen it would be great to have ability to disable this behavior at least source code xml android api version 29 material library version 1 2 0 alpha06 device pixel 3
materialcomponentsmaterialcomponentsandroid
materialcheckbox ripple be red on lollipop
Bug
description when colorcontrolhighlight be a colorstatelist with theme attribute materialcheckbox ripple be red on lollipop v22 v29 light before v23 expect behavior see v29 fix this would require tint the background programmatically use appcompatresource to load colorcontrolhighlight rather than use it from xml source code in the app theme override colorcontrolhighlight to point to a csl xml android api version 21 22 material library version 1 1 0 1 2 0 alpha06 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
collapsingtoolbarlayout multiline maxline not apply correct gravity to text
Bug
description when use maxline in alpha06 with expandedtitlegravity set to center text isn t center expect behavior the expand title should be center or the desire gravity should be apply source code android api version android 7 0 api 24 material library version 1 2 0 alpha06 device samsung sm g925i 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
motion help I fix this materialcontainertransform beetween activity
Bug
description I want to make a transition between activity by click on an item from the list but the transition seem to be break screenrecorder 2020 05 05 12 06 33 98 mp4 zip source code upload sf2shop zip android api version 29 material library version com google android material material 1 2 0 alpha06 device xiaomi redmi note 7
materialcomponentsmaterialcomponentsandroid
materialbutton material component invalid drawable tag vector
Bug
description full description of issue here when I use android drawable on an xml drawable my application crash on api 21 when I use android icon with the same xml drawable the application doesn t crash expect behavior materialbutton display the image on top without crash source code layout xml vector xml android api version 19 material library version material android library version you be use here e g 1 1 0 alpha07 gradle android compilesdkversion 29 buildtoolsversion 29 0 3 databinding enable true defaultconfig minsdkversion 19 targetsdkversion 29 vectordrawable usesupportlibrary true dependency def navigationversion 2 2 2 def materialversion 1 2 0 alpha06 def retrofitversion 2 8 1 def retrofitadapterversion 0 9 2 def coroutinesversion 1 3 4 def moshiversion 1 9 2 def roomversion 2 2 5 implementation filetree dir lib include jar implementation org jetbrain kotlin kotlin stdlib jdk7 kotlin version implementation androidx appcompat appcompat 1 1 0 implementation androidx core core ktx 1 2 0 implementation androidx constraintlayout constraintlayout 1 1 3 implementation androidx legacy legacy support v4 1 0 0 preference manager implementation androidx preference preference 1 1 1 material implementation com google android material material materialversion navigation implementation androidx navigation navigation fragment ktx navigationversion implementation androidx navigation navigation ui ktx navigationversion glide kapt com github bumptech glide compiler 4 11 0 implementation com github bumptech glide glide 4 11 0 implementation com github bumptech glide annotation 4 11 0 implementation com github bumptech glide okhttp3 integration 4 11 0 exclude group glide parent okhttp don t update okhttp3 okhttp 3 12 10 this version handle apk 21 noinspection gradledependency implementation com squareup okhttp3 okhttp 3 12 10 force true implementation com squareup okhttp3 log interceptor 3 12 10 viewmodel implementation androidx lifecycle lifecycle extension 2 2 0 retrofit implementation com squareup retrofit2 retrofit retrofitversion implementation com squareup retrofit2 converter moshi retrofitversion implementation com jakewharton retrofit retrofit2 kotlin coroutine adapter retrofitadapterversion moshi implementation com squareup moshi moshi kotlin moshiversion kapt com squareup moshi moshi kotlin codegen moshiversion coroutine implementation org jetbrain kotlinx kotlinx coroutine core coroutinesversion implementation org jetbrain kotlinx kotlinx coroutine android coroutinesversion implementation androidx room room runtime roomversion annotationprocessor androidx room room compiler roomversion for kotlin use kapt instead of annotationprocessor implementation androidx room room ktx roomversion testimplementation junit junit 4 12 androidtestimplementation androidx test ext junit 1 1 1 androidtestimplementation androidx test espresso espresso core 3 2 0 device samsung s3 neo
materialcomponentsmaterialcomponentsandroid
materialdatepicker single range selector allow positive button interaction for invalid state
Bug
description the prebuilt singledateselector and rangedateselector have a textinput mode which allow the user to input a date or date range use text if the date input be invalid the textinputlayout show an error state however the positive ok button be still enable and allow the user to press it expect behavior the positive button cta should be disable if the date text input s be be invalid textinputinvalidcorrect current behavior the positive button cta be always enable even if the date text input s be be invalid textinputinvalidincorrect android api version 10 q material library version 1 1 0 alpha06
materialcomponentsmaterialcomponentsandroid
androix toolbar a glitch in show toolbar title text when theme be material theme
Bug
I set the theme of activity to theme materialcomponent light darkactionbar or any other non bridge theme and fontfamily to press start 2p find in google font then I create two fragment and both of they have toolbar but title be different when I navigate from first fragment to second there be a glitch in show toolbar title this be not happen with theme appcompat light darkactionbar theme and just happen with some font not all font ezgif com video to gif android api version any api version but test with 23 and 28 material library version 1 1 0 device pixel 2 xl emulator and samsung galaxy s6 real device
materialcomponentsmaterialcomponentsandroid
navigationmenuitemview navigationmenuitemview leak after mainactivity be detroye
Bug
description leak canary be report a memory leak relate to navigationmenuitemview reference an instance of mainactivity after its be destroy leak trace below heap analysis result 1 application leak reference underline with be likely cause learn more at 62978 byte retain by leak object signature 92ea7fe3e0e18969be93bd4a804b875271f32e38 gc root input or output parameter in native code okio asynctimeout class leak no pathclassloader be not leak and a class be never leak static asynctimeout class classloader dalvik system pathclassloader instance leak no heapinternal be not leak and a classloader be never leak pathclassloader runtimeinternalobject java lang object array leak no heapinternal be not leak object 1005 com heapanalytic android internal heapinternal class leak no a class be never leak static heapinternal capture com heapanalytic android internal simplecapture instance leak unknown simplecapture menuitemtomenuview java util weakhashmap instance leak unknown weakhashmap table java util weakhashmap entry array leak unknown weakhashmap entry 0 java util weakhashmap entry instance leak unknown weakhashmap entry value com google android material internal navigationmenuitemview instance leak yes view mcontext reference a destroy activity mcontext instance of com mycompany main mainactivity with mdestroye true view mparent be set view mattachinfo be null view detach view mid r i d resetpassword view mwindowattachcount 1 navigationmenuitemview mcontext com mycompany main mainactivity instance leak yes objectwatcher be watch this because com mycompany main mainactivity receive activity ondestroy callback and activity mdestroye be true key 273ace29 766c 4085 aef6 1144cb696827 watchdurationmillis 5251 retaineddurationmillis 246 0 library leak library leak be leak come from the android framework or google library metadata please include this in bug report and stack overflow question build version sdk int 29 build manufacturer google leakcanary version 2 2 app process name com mycompany debug analysis duration 31432 ms heap dump file path datum user 0 com mycompany debug file leakcanary 2020 05 01 12 08 34 129 hprof heap dump timestamp 1588352952739 android api version 29 material library version 1 2 0 alpha06 device google pixel
materialcomponentsmaterialcomponentsandroid
backgorundcolor attribute from badge styleable conflict with systemui attribute backgroundcolor
Bug
description I library use 1 2 0 alpha06 verison library compile with systemui it wrong aapt error dulicate value for resource attr backgroundcolor with config implementation com google android material material 1 2 0 alpha06 expect behavior please modify attribute backgroudcolor to another name or format in badge styleable ensure it will not conflict with systemui attribute backgroudcolor because we can t modify native attribute source code android api version android q material library version 1 2 0 alpha06 device android q machine 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 click on endicon make helpertext disappear
Bug
description I have an endicon password toggle mode and helpertext enable in textinputlayout outlinedbox style at first the helpertext be visible but after click the endicon to toggle the password s visibility the helpertext underneath disappear constantly click the endicon make helpertext flash for a brief second expect behavior expect the helpertext to remain after toggle password s visibility source code xml android api version 29 material library version material android library version 1 1 0 device oneplus 7 t
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup single visible button corner
Bug
description if a materialbuttontogglegroup contain more than one button but only one be visible it get the shape as if be the first button in the group even though it s the only visible expect behavior the single visible button should have its original shape source code the issue seem to be happen in getnewcornerdata where we don t consider that child view can be go material library version original find in 1 1 0 but it s also occur in 1 2 0 alpha06
materialcomponentsmaterialcomponentsandroid
button backgorund not set to the custom drawable color
Bug
the button be take the custom shape from drawable xml but not take the color declare as solid color in shape xml use the late release com google android material material 1 2 0 alpha06
materialcomponentsmaterialcomponentsandroid
slider anr when slider be in popupwindow
Bug
description anr when popupwindow contain layout with slider trace at com google android material internal viewutil getcontentview viewutil java 288 at com google android material slider slider onattachedtowindow slider java 1284 at android view view dispatchattachedtowindow view java 17445 at android view viewgroup dispatchattachedtowindow viewgroup java 3333 at android view viewgroup dispatchattachedtowindow viewgroup java 3333 expect behavior no anr source code kotlin newcodebtn setonclicklistener val v layoutinflat from requirecontext inflate r layout volume popup layout null val pw popupwindow v viewgroup layoutparams wrap content viewgroup layoutparams wrap content pw isoutsidetouchable true pw showasdropdown it xml material library version 1 2 0 alpha06 it seem that viewutil getcontentview be in endless loop and can t find parent for label java override protect void onattachedtowindow super onattachedtowindow the label be attach on the overlay relative to the content for tooltipdrawable label label label setrelativetoview viewutil getcontentview this try to disable label with app labelbehavior go but no luck
materialcomponentsmaterialcomponentsandroid
materialalertdialog wrong elevation
Bug
description I m have an issue get my custom dialog to appear as the same surface color as the materialalertdialog in dark mode and it appear that the materialalertdialog s elevation be set to 16dp instead of 24dp I be reference the official guideline here for material design dialog elevation which state that dialog be display at 24dp elevation and can display a shadow but follow up the theme inheritance I find that the elevation of materialalertdialog be set at 16dp instead the chain of inheritance be as follow the default theme overlay define in materialalertdialogbuilder class s material alert dialog theme overlay constant reference and the respective parent style themeoverlay materialcomponent materialalertdialog base themeoverlay materialcomponent materialalertdialog base v14 themeoverlay materialcomponent materialalertdialog themeoverlay appcompat dialog alert base themeoverlay appcompat dialog alert base themeoverlay appcompat dialog base v21 themeoverlay appcompat dialog in api 21 onwards which define the item diman abc float window z the diman abc float window z dimension have the value of 16dp which do not align with the material spec cause custom widget that follow the anatomy of the material spec to have inconsistent shadow in light theme and different alpha value in dark theme android windowelevation attribute should be set in one of the materialcomponent base style to override the value from appcompat library expect behavior alert dialog elevation be set at 24dp android api version android 10 api level 29 material library version 1 1 0 rc2 device oneplus 7 t pro
materialcomponentsmaterialcomponentsandroid
catalog demo bottom sheet crash on api level 17
Bug
description 1 open catalog demo bottom sheet vertically scrollable content demo 2 get a crash on android 4 2 android api version 17 material library version 1 2 0 alpha06 stacktrace 04 27 17 38 55 560 16715 16715 io material catalog e androidruntime fatal exception main android view inflateexception binary xml file line 26 error inflate class textview at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater inflate layoutinflater java at android view layoutinflater inflate layoutinflater java at com google android material bottomsheet bottomsheetdialog wrapinbottomsheet bottomsheetdialog java 203 at com google android material bottomsheet bottomsheetdialog setcontentview bottomsheetdialog java 75 at io material catalog bottomsheet bottomsheetscrollablecontentdemofragment oncreatedemoview bottomsheetscrollablecontentdemofragment java 44 at io material catalog feature demofragment oncreateview demofragment java 107 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java at android os handler dispatchmessage handler java at android os looper loop looper java at android app activitythread main activitythread java at java lang reflect method invokenative native method at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java at com android internal os zygoteinit main zygoteinit java at dalvik system nativestart main native method cause by android content re resource notfoundexception file re drawable ic person add 24dp xml from drawable resource i d 0x7f0800c3 at android content re resource loaddrawable resource java at android content re typedarray getdrawable typedarray java at android widget textview textview java at androidx appcompat widget appcompattextview appcompattextview java 99 at com google android material textview materialtextview materialtextview java 93 at com google android material textview materialtextview materialtextview java 88 at com google android material textview materialtextview materialtextview java 83 at com google android material theme materialcomponentsviewinflater createtextview materialcomponentsviewinflater java 61 at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 103 at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1407 at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1457 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater inflate layoutinflater java at android view layoutinflater inflate layoutinflater java at com google android material bottomsheet bottomsheetdialog wrapinbottomsheet bottomsheetdialog java 203 at com google android material bottomsheet bottomsheetdialog setcontentview bottomsheetdialog java 75 at io material catalog bottomsheet bottomsheetscrollablecontentdemofragment oncreatedemoview bottomsheetscrollablecontentdemofragment java 44 at io material catalog feature demofragment oncreateview demofragment java 107 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java at android os handler dispatchmessage handler java at android os looper loop looper java at android app activitythread main activitythread java at java lang reflect method invokenative native method at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java at com android internal os zygoteinit main zygoteinit java at dalvik system nativestart main native method cause by org xmlpull v1 xmlpullparserexception binary xml file line 17 invalid drawable tag vector at android graphic drawable drawable createfromxmlinner drawable java at android graphic drawable drawable createfromxml drawable java at android content re resource loaddrawable resource java at android content re typedarray getdrawable typedarray java at android widget textview textview java at androidx appcompat widget appcompattextview appcompattextview java 99 at com google android material textview materialtextview materialtextview java 93 at com google android material textview materialtextview materialtextview java 88 at com google android material textview materialtextview materialtextview java 83 at com google android material theme materialcomponentsviewinflater createtextview materialcomponentsviewinflater java 61 at androidx appcompat app appcompatviewinflater createview appcompatviewinflater java 103 at androidx appcompat app appcompatdelegateimpl createview appcompatdelegateimpl java 1407 at androidx appcompat app appcompatdelegateimpl oncreateview appcompatdelegateimpl java 1457 at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater inflate layoutinflater java at android view layoutinflater inflate layoutinflater java at com google android material bottomsheet bottomsheetdialog wrapinbottomsheet bottomsheetdialog java 203 at com google android material bottomsheet bottomsheetdialog setcontentview bottomsheetdialog java 75 at io material catalog bottomsheet bottomsheetscrollablecontentdemofragment oncreatedemoview bottomsheetscrollablecontentdemofragment java 44 at io material catalog feature demofragment oncreateview demofragment java 107 at androidx fragment app fragment performcreateview fragment java 2600 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 881 at androidx fragment app fragmentmanagerimpl movefragmenttoexpectedstate fragmentmanagerimpl java 1238 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 1303 at androidx fragment app backstackrecord executeops backstackrecord java 439 at androidx fragment app fragmentmanagerimpl executeop fragmentmanagerimpl java 2079 at androidx fragment app fragmentmanagerimpl executeopstogether fragmentmanagerimpl java 1869 at androidx fragment app fragmentmanagerimpl removeredundantoperationsandexecute fragmentmanagerimpl java 1824 at androidx fragment app fragmentmanagerimpl execpendingaction fragmentmanagerimpl java 1727 at androidx fragment app fragmentmanagerimpl 2 run fragmentmanagerimpl java 150 at android os handler handlecallback handler java at android os handler dispatchmessage handler java at android os looper loop looper java at android app activitythread main activitythread java at java lang reflect method invokenative native method at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java at com android internal os zygoteinit main zygoteinit java at dalvik system nativestart main native method