repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout recyclerview bottom cut when come back from another fragment
Bug
description issue can be see on the official catalog app this video will show the issue to resume you go to the bottom of a list on a screen which contain a collapsingtoolbar go to another fragment by click on an item and then come back will make the list be cut on the bottom of the size of the collapsingtoolbar minus the standard size of the toolbar it seem the only way to make the cut disappear be expand the collapsingtoolbar by go on top of the screen then scroll back again see the streamable link to see exactly the step and the problem it be also reproducible on app I work on with a similar setup and behavior expect behavior screenshot and or description of expect behavior no cut source code official material catalog app android api version test on api 28 material library version last commit a36826b01852d8a65aabd2bc81604ed0e72422ed also happen on every other version device device on which the bug be encounter here pixel xl pixel 4 many more
materialcomponentsmaterialcomponentsandroid
materialdatepicker display incorrect today date
Duplicate
materialdatepicker display incorrect today date I can t find a way to override this to correct as a workaround library version 1 1 0 android 9 0 screen shoot 2020 02 28 at 10 24 38 am screen shoot 2020 02 28 at 10 33 34 am be I do something wrong val dialogbuilder materialdatepicker builder datepicker defaultdate asutccalendar correct the selection to display correct timezone for select date dialogbuilder setselection defaultdate asutccalendar timeinmillis dialogbuilder setcalendarconstraint calendarconstraint builder apply mindate invoke let setstart it asutccalendar timeinmillis setopenat defaultdate asutccalendar timeinmillis mindate invoke let setvalidator datevalidatorpointforward from it asutccalendar timeinmillis build kind regard alex
materialcomponentsmaterialcomponentsandroid
progressdialog progressdialog spinner be always green regardless of theme color
Bug
description andoird app progressdialog s circular indeterminate progress indicator be green regardless of theme attribute value this be issue be present in 1 1 2 alpha05 but not present in 1 1 2 alpha04 expect behavior I expect that the spinner will be the same color as my colorprimary theme attribute source code my theme color colorprimaryvariant colorsecondary color color primary color color primary variant color color secondary color color secondary variant android api version I ve test it on api level 24 and 29 the issue be present on both of they material library version 1 1 2 alpha05 device emulator and my samsung galaxy s7 edge 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
transition transition between activity not a valid ancestor
Bug
description full description of issue here expect behavior error source code container transform I do not apply the same here note the activity start from the adapter suppresslint settexti18n override fun onbindviewholder holder orderviewholder position int val order order datum position val customer customer order customer holder username text customer name customer surname holder miniaddress text customer provincestre customer districtstre holder card setonclicklistener context startactivity intent context ordercontentactivity class java activityoption makescenetransitionanimation mainactivity self holder linear share element container tobundle android api version 29 material library version 1 2 0 alpha5 device samsung m20
materialcomponentsmaterialcomponentsandroid
textinputlayout accessibility support text be not associate with the input field announcement
Bug
description when select the input field on accessibility mode on the support text be not associate with the input field announcement expect behavior the support text should be associate with the input field announcement when select while accessibility mode on android api version android api version 28 material library version 1 1 0 talkback version 5 2 0 device emulator pixel 3
materialcomponentsmaterialcomponentsandroid
textinputlayout accessibility touch target box overlap with the input field label
Bug
description the touch target box overlap with the input field label when the field be in an active state expect behavior the touch target box should not overlap the input field label when the field be in an active state 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 28 material library version 1 1 0 device emulator pixel 3
materialcomponentsmaterialcomponentsandroid
motion transition between activity
Bug
hi transition between activity have bug in my phone I have last push see the gif below android version api 21 android 5 1 1 device brand huawei device model huawei p7 l10a
materialcomponentsmaterialcomponentsandroid
textinputlayout boxbackgroundmode and boxbackgroundcolor don t work
Bug
description I be use textinputlayout with textinputedittext inside neither boxbackgroundmode nor boxbackgroundcolor work expect behavior screenshot and or description of expect behavior source code android api version 29 material library version 1 1 0 1 2 0 alpha05 device oneplus 7 pro with android 10
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior size change be ignore if the sheet be settle to a state
Bug
description we re build a sheet that load datum asynchronously after open cause the sheet to change its size and it seem like bottomsheetbehavior doesn t react well to size change if it s ongoing a settle animation we be currently use a custom bottomsheet that be copy from plaid s implementation but I m try to move to bottomsheetbehavior so that we don t have to maintain this ourselves expect behavior here s a screenrecording of the sample app the toggle without anim show the correct behavior of the sheet the toggle with anim doesn t source code l61 android api version 28 material library version 1 1 0 device pixel 3 emulator
materialcomponentsmaterialcomponentsandroid
chip set corner radius to zero on version 1 1 0 doesn t work as expect
Bug
description on update the library version from 1 0 0 to 1 1 0 chip be modify to have round corner rather than rectangular one expect behavior expect backward compatibility of attribute app chipcornerradius 0dp to prevent rounded corner as a workaround we use app chipcornerradius 1dp source code xml attribute app chipcornerradius 0dp work as expect on 1 0 0 but not on 1 1 0 expect find android api version api 24 28 material library version 1 1 0 device pixel2
materialcomponentsmaterialcomponentsandroid
textinputlayout error text overlap outline box
Bug
description when use the widget materialcomponent textinputlayout outlinedbox style the error text overlap with the outline box image expect behavior it need a little more top padding source code android api version 29 material library version 1 1 0 device emulator pixel 3a
materialcomponentsmaterialcomponentsandroid
materialcardview inflation crash when use with android onclick in 1 1 0
Bug
description null pointer exception when inflate materialcardview with android onclick set in xml expect behavior materialcardview should inflate as expect source code android api version 29 material library version 1 1 0 device pixel 2 xl note this work in 1 0 0 but crash in 1 1 0 with this trace as cardviewhelper be null java lang nullpointerexception attempt to invoke virtual method void com google android material card a p on a null object reference at com google android material card materialcardview setclickable 293 at android view view setonclicklistener view java 7065 at android view view view java 5666 at android view viewgroup viewgroup java 675 at android widget framelayout framelayout java 99 at android widget framelayout framelayout java 94 at a d f a 121 at com google android material card materialcardview 118 at com google android material card materialcardview 114 33 more
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout slight misalignment during transition in multiline mode
Bug
description this affect the multiline mode of the collapsingtoolbarlayout that be add as an experimental feature in 1 2 0 alpha05 see also 413 upon close inspection of the new implementation I find that there be a slight misalignment in the position of the expand text and the overlay draw during the transition as see in the screenshot below also when the text snap to the completely collapse state there be a slight upwards jump of the text position both of these problem can be see in the catalog app and be not present in my original version in 413 screenshot 1582471001 expect behavior smooth transition without misalignment this work correctly in our original pr demo image source code see catalog app top app bar collapse demo multiline title android api version 28 material library version 1 2 0 alpha05 device android emulator I haven t find the source of the issue yet but it should be possible to find when compare my implementation in 413 with the one add by ymarian in 83e4e47d2225cd281bef195d1baf035117cda4cd
materialcomponentsmaterialcomponentsandroid
chipgroup checkedchipid return chipid which have no use
Bug
description checkedchipid return just chip i d and have no use it useful when it return index of chip source code for datum in result val chip chip chipgroup context chip ischeckable true chip isclickable true chip hint datum i d chip text datum type chipgroup addview chip val btype chipgroup getchildat chipgroup checkedchipid as chip android api version android api 23 material library version 1 2 0 alpha05 device htc desire 10 pro
materialcomponentsmaterialcomponentsandroid
materialsharedaxistransition call oncheckedchangelistener in chipgroup when run
Bug
description when the materialsharedaxistransition be run when perform a fragmenttransaction it cause the oncheckedchangelistener for a chipgroup to fire cause unwanted side effect expect behavior run a materialsharedaxistransition should not programmatically induce a oncheckedchangelistener to fire for a chipgroup the root issue occur in the transitionutil createviewbitmap method in the framework s transition class somehow the transition remove a chip from the chipgroup when run and attempt to re add it later java if addtooverlay sceneroot getoverlay remove view parent addview view indexinparent source code l76 android api version android api version here api 29 material library version material android library version you be use here e g 1 1 0 alpha07 1 2 0 alpha05 device device on which the bug be encounter here google pixel 3 stacktrace e androidruntime fatal exception main process com tunjid andoidbootstrap sample pid 13815 java lang illegalstateexception can not perform this action after onsaveinstancestate at androidx fragment app fragmentmanager checkstateloss fragmentmanager java 1689 at androidx fragment app fragmentmanager enqueueaction fragmentmanager java 1729 at androidx fragment app backstackrecord commitinternal backstackrecord java 321 at androidx fragment app backstackrecord commit backstackrecord java 286 at com tunjid androidx navigation multistacknavigator showinternal multistacknavigator kt 320 at com tunjid androidx navigation multistacknavigator show multistacknavigator kt 119 at com tunjid androidx fragment multiplestacksfragment onviewcreate 4 oncheckedchange multiplestacksfragment kt 77 at com google android material chip chipgroup setcheckedid chipgroup java 368 at com google android material chip chipgroup setcheckedid chipgroup java 361 at com google android material chip chipgroup addview chipgroup java 215 at android view viewgroup addview viewgroup java 4919 at android transition transitionutil createviewbitmap transitionutil java 192 at android transition transitionutil copyviewimage transitionutil java 103 at android transition visibility ondisappear visibility java 420 at android transition visibility createanimator visibility java 255 at android transition transition createanimator transition java 733 at android transition transitionset createanimator transitionset java 444 at android transition transitionset createanimator transitionset java 444 at android transition transition playtransition transition java 1777 at android transition transitionmanager multilistener onpredraw transitionmanager java 327 at android view viewtreeobserver dispatchonpredraw viewtreeobserver java 1088 at android view viewrootimpl performtraversal viewrootimpl java 2769 at android view viewrootimpl dotraversal viewrootimpl java 1745 at android view viewrootimpl traversalrunnable run viewrootimpl java 7768 at android view choreographer callbackrecord run choreographer java 967 at android view choreographer docallback choreographer java 791 at android view choreographer doframe choreographer java 726 at android view choreographer framedisplayeventreceiver run choreographer java 952 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 214 at android app activitythread main activitythread java 7356 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 492 at com android internal os zygoteinit main zygoteinit java 930 beginning of system to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomappbar background issue of menu in dark theme
Bug
description it seem like that the background color value of inflated menu be different to bottomappbar s when the system be in dark mode or I m use the bottomappbar component in a wrong way ui in light theme ui in dark theme image 75095965 45765780 55d5 11ea 9f11 ee17bfaa32c0 expect behavior image source code activity main xml xml mainactivity kt kotlin override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main setsupportactionbar toolbar bottom app bar inflatemenu r menu bottom menu bottom menu xml xml style xml xml value color xml xml 6200ee 3700b3 ffffff 03dac6 018786 000000 ffffff 000000 ffffff 000000 c51162 ffffff value night color xml xml fce548 c6b300 000000 407bfa 0050c6 000000 121212 ffffff 121212 ffffff cf6679 000000 android api version android r dp1 material library version 1 2 0 alpha05 device google pixel 3xl append seem like an issue with code below style xml color colorbackground
materialcomponentsmaterialcomponentsandroid
transition share axis animation not work on samsung s10
Bug
description the share axis animation x y z work great on my pixel 3 however on a samsung s10 the fadethrough animation do not seem to work the visibility of the add fragment be not be animate the new fragment background seem to go from alpha 0 1 with no animation just because I m curious why be the library use android transition and not androidx transition expect behavior the animation should look more or less the same on the samsung s10 as the pixel 3 source code the material component catalog app reproduce this in the share axis example android api version android api version here material library version 1 2 0 alpha05 device samsung sm g973f
materialcomponentsmaterialcomponentsandroid
android studio render problem with fab java awt geom illegalpathstateexception miss initial moveto in path definition
Bug
description fab not show in app layout and render problem occur expect behavior java awt geom illegalpathstateexception miss initial moveto in path definition at java awt geom path2d double needroom path2d java 1193 at java awt geom path2d closepath path2d java 1877 at android graphic path delegate close path delegate java 824 at android graphic path delegate nclose path delegate java 329 at android graphic path nclose path java at android graphic path close path java 508 at com google android material shape shapeappearancepathprovider calculatepath shapeappearancepathprovider java 123 at com google android material shape shapeappearancepathprovider calculatepath shapeappearancepathprovider java 83 at com google android material shape materialshapedrawable calculatestrokepath materialshapedrawable java 1160 at com google android material shape materialshapedrawable draw materialshapedrawable java 945 at android graphic drawable layerdrawable draw layerdrawable java 1011 at android graphic drawable rippledrawable drawcontent rippledrawable java 818 at android graphic drawable rippledrawable draw rippledrawable java 675 at android graphic drawable drawablewrapper draw drawablewrapper java 227 at android view view drawbackground view java 20412 at android view view draw original view java 20198 at android view view delegate draw view delegate java 56 at android view view draw view java 20177 at android view view draw original view java 20077 at android view view delegate draw view delegate java 68 at android view view draw view java 19849 at android view viewgroup drawchild original viewgroup java 4333 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4333 at android view viewgroup dispatchdraw viewgroup java 4112 at android view view draw original view java 20075 at android view view delegate draw view delegate java 68 at android view view draw view java 19849 at android view viewgroup drawchild original viewgroup java 4333 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4333 at android view viewgroup dispatchdraw viewgroup java 4112 at android view view draw original view java 20075 at android view view delegate draw view delegate java 68 at android view view draw view java 19849 at android view viewgroup drawchild original viewgroup java 4333 at android view viewgroup delegate drawchild viewgroup delegate java 65 at android view viewgroup drawchild viewgroup java 4333 at android view viewgroup dispatchdraw viewgroup java 4112 at android view view draw original view java 20210 at android view view delegate draw view delegate java 56 at android view view draw view java 20177 at com android layoutlib bridge impl rendersessionimpl renderandbuildresult rendersessionimpl java 399 at com android layoutlib bridge impl rendersessionimpl renderandbuildresult rendersessionimpl java 551 at com android layoutlib bridge impl rendersessionimpl render rendersessionimpl java 420 at com android layoutlib bridge bridgerendersession render bridgerendersession java 120 at com android ide common rendering api rendersession render rendersession java 151 at com android ide common rendering api rendersession render rendersession java 133 at com android tool idea render rendertask lambda null 8 rendertask java 783 at java util concurrent completablefuture asyncsupply run completablefuture java 1590 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1149 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 624 at java lang thread run thread java 748 source code source code android api version android api 29 material library version material android library version 1 2 0 alpha05 device pixel 2
materialcomponentsmaterialcomponentsandroid
why bugfixe be in 1 2 0 alphaxx instead of 1 1 1 xxx
Bug
it be not a bug it be just a question there be a lot of fix in the current 1 2 0 alphaxx these fix be relate to the component code release with the 1 1 0 it would be useful to have the fix in the 1 1 x alpha beta as you prefer version and the 1 2 0 reseverd to new feature component like slider shapeableimageview leave the bugfixe in the 1 2 0 the time need for a stable release be very long
materialcomponentsmaterialcomponentsandroid
fab change appearance
Bug
description fab change color and border screenshot 20200221 041624 expect behavior fab should look like this screenshot 20200221 041347 source code android api version android api 29 material library version material android library version 1 1 0 device oneplus 3 and oneplus 6 t
materialcomponentsmaterialcomponentsandroid
textinputlayout error clickablespan
Bug
I be set a clicablespannable as error in textinputlayout expect behavior the click function of the clickablespan should be call android api version 1 1 0 rc02
materialcomponentsmaterialcomponentsandroid
textinputlayout accessibility test fail with view be miss speakable text need for a screen reader
Bug
during testing of accessibility test on edittext in textinputlayout fail with view be miss speakable text need for a screen reader a similar issue be describe here but the propose solution with xml parameter do not help test on library version 1 1 0 and 1 2 0 alpha04 layout part xml
materialcomponentsmaterialcomponentsandroid
theme motion md be not available in late version 1 2 0 alpha04
Bug
description when look at motion md it state before you can use the motion library you need to add a dependency on the material component for android library for more information go to the getting start page after use follow tutorial and add implementation com google android material material 1 2 0 alpha04 I see that there be no transition namespace in plugin please update motion md or add transition namespace
materialcomponentsmaterialcomponentsandroid
transition transition have bug in api 21
Bug
hi I can not test container transform activity have error android content activitynotfoundexception unable to find explicit activity class io material catalog io material catalog transition transitioncontainertransformstartdemoactivity have you declare this activity in your androidmanif xml but this activity declare in androidmanifest android version api 21 android 5 1 1 device brand huawei device model huawei p7 l10
materialcomponentsmaterialcomponentsandroid
materialbutton programmatically set background tint have alpha blend with exist tint rather than replace
Bug
description set a non opaque background tint via setbackgroundtintlist on a materialbutton cause the new background tint to blend with the previous background tint rather than replace it this be especially noticeable when try to set a transparent background tint which have no effect source code a sample app that reproduce the problem can be find here expect behavior in the follow demo mainactivity activity main xml we define a materialbutton like so xml and change the background tint whenever the button be press kotlin class mainactivity appcompatactivity private var color color red override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val button appcompatbutton findviewbyid r i d button button setonclicklistener do not appear at all val altcolor 0x00000000 blend with red result be purple val altcolor 0x660000ff val nextcolor if color color red altcolor else color red button backgroundtintlist colorstatelist valueof nextcolor color nextcolor as see in the demonstration below click the button have no effect the issue appear to be that the new color be actually blend with the previous color an effect that can be confirm by change altcolor to 0x660000ff translucent blue in this demonstration the new color be purple this issue be not present when with either android widget button or androidx appcompat widget appcompatbutton use an altcolor of 0x00000000 on an androidx appcompat widget appcompatbutton use an altcolor of 0x660000ff translucent blue on an androidx appcompat widget appcompatbutton android api version 29 material library version com google android material material 1 2 0 alpha04 device api 29 emulator
materialcomponentsmaterialcomponentsandroid
bottomsheet dark mode composant overlay
Bug
description I have disable the elevation overlay for my bottom sheet in dark mode it work fine for the background but the background of my chip still look like the overlay be apply here be the chip in a regular fragment screenshot 20200218 145924 2 here be the chip in a bottomsheetfragment screenshot 20200218 145837 2 expect behavior the chip on the bottom sheet should look like the one in a regular fragment as you can see with the chip the background color modify by the elevation overlay doesn t look good with my colorprimary that s why I have disable it source code the color 212121 b0bec5 the bottomsheetdialog style the style of the chip the background of the chip chip choice background if I replace by item android color android color transparent the background issue be resolve but then the ripple doesn t work anymore so it s not a solution I try to put false on the chip style but it doesn t work neither android api version 29 material library version 1 2 0 alpha04 device pixel 3 xl
materialcomponentsmaterialcomponentsandroid
tablayout background drawable not set correctly
Bug
description when set android background to a shapedrawable the set color in this drawable will not be inflate correctly everytime in the example app provide below you ll even see it work correctly only once this seem to have something to do with drawable I think because if background be set to a color it will work as expect expect behavior the set drawable should be correctly inflate source code android api version 28 material library version 1 1 0 also test with 1 2 0 alpha04 device htc u11 api 28
materialcomponentsmaterialcomponentsandroid
textinputlayout expose dropdown menu npe on re entrant showpopupmenu
Bug
since mdc 1 2 0 alpha03 more exactly since 201ec6241cec4cc590dd806fd0896da5fa3140f0 as I bisect my way down there be an issue with autocompletetextview s showdropdown java lang nullpointerexception at android widget popupwindow getdecorviewlayoutparams popupwindow java 2201 at android widget popupwindow update popupwindow java 2257 at android widget popupwindow update popupwindow java 2235 at android widget listpopupwindow show listpopupwindow java 657 at android widget listpopupwindow generatedproxy 707354032 show unknown source at org robolectric shadow shadowlistpopupwindow show shadowlistpopupwindow java 22 at android widget listpopupwindow show listpopupwindow java at android widget autocompletetextview showdropdown autocompletetextview java 1217 at android widget autocompletetextview setframe autocompletetextview java 1163 at android view view layout view java 20669 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20672 at android view viewgroup layout viewgroup java 6194 at android widget linearlayout setchildframe linearlayout java 1812 at android widget linearlayout layoutvertical linearlayout java 1656 at android widget linearlayout onlayout linearlayout java 1565 at com google android material textfield textinputlayout onlayout textinputlayout java 3587 at android view view layout view java 20672 at android view viewgroup layout viewgroup java 6194 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1915 at android view view layout view java 20672 at android view viewgroup layout viewgroup java 6194 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 20672 at android view viewgroup layout viewgroup java 6194 at android widget framelayout layoutchildren framelayout java 323 at android widget framelayout onlayout framelayout java 261 at android view view layout view java 20672 at android view viewgroup layout viewgroup java 6194 at android widget linearlayout setchildframe linearlayout java 1812 at android widget linearlayout layoutvertical linearlayout java 1656 at android widget linearlayout onlayout linearlayout java 1565 at android view view layout view java 20672 at android view viewgroup layout viewgroup java 6194 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 753 at android view view layout view java 20672 at android view viewgroup layout viewgroup java 6194 at android view viewrootimpl performlayout viewrootimpl java 2792 at android view viewrootimpl performtraversal viewrootimpl java 2319 at android view viewrootimpl dotraversal viewrootimpl java 1460 at android view viewrootimpl traversalrunnable run viewrootimpl java 7183 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at org robolectric shadow shadowlegacymessagequeue dispatchmessage shadowlegacymessagequeue java 157 at org robolectric shadow shadowlegacymessagequeue access 200 shadowlegacymessagequeue java 42 at org robolectric shadow shadowlegacymessagequeue 1 run shadowlegacymessagequeue java 135 at org robolectric util scheduler scheduledrunnable run scheduler java 407 at org robolectric util scheduler runonetask scheduler java 279 at org robolectric util scheduler advanceto scheduler java 261 at org robolectric util scheduler advanceby scheduler java 244 at org robolectric util scheduler advanceby scheduler java 234 at org robolectric util scheduler setidlestate scheduler java 89 at org robolectric util scheduler unpause scheduler java 124 at org robolectric shadow shadowlegacylooper unpause shadowlegacylooper java 267 at org robolectric shadow shadowlegacylooper runpause shadowlegacylooper java 324 at org robolectric shadow shadowviewgroup addview shadowviewgroup java 36 at android view viewgroup addview viewgroup java at android view viewgroup addview viewgroup java 4837 at android widget popupwindow createbackgroundview popupwindow java 1388 at android widget popupwindow preparepopup popupwindow java 1350 at android widget popupwindow showasdropdown popupwindow java 1277 at android widget listpopupwindow show listpopupwindow java 696 at android widget listpopupwindow generatedproxy 707354032 show unknown source at org robolectric shadow shadowlistpopupwindow show shadowlistpopupwindow java 22 at android widget listpopupwindow show listpopupwindow java at android widget autocompletetextview showdropdown autocompletetextview java 1217 at com google android material textfield dropdownmenuendicondelegate showhidedropdown dropdownmenuendicondelegate java 238 at com google android material textfield dropdownmenuendicondelegate access 400 dropdownmenuendicondelegate java 65 at com google android material textfield dropdownmenuendicondelegate 5 ontouch dropdownmenuendicondelegate java 351 at android view view dispatchtouchevent view java 12509 popupwindow createbackgroundview add the contentview of the popup to a new instance of popupbackgroundview this addview call change the layout and new measuring for the tree kick in in the above stacktrace the addview on the viewgroup be execute through robolectric shadowlooper in paused mode so far so good now this addition trigger the measurement of the surround textinputlayout s newly introduce placeholder l2670 and this in turn trigger autocompletetextview setframe in between here in case the popup be show which technically it isn t but the flag for it be already switch the code try to show the popup again because we re re entrant the previous invocation do not yet assign the mdecorview from which it transcend effectively throw an npe it come across it I m far investigate the issue to see if there be any workaround with the current 1 2 0 alpha
materialcomponentsmaterialcomponentsandroid
when I update to 1 1 0 all my input layout go wrong and crash app
Bug
when I update to 1 1 0 all my input layout go wrong and crash app can anybody explain what s go on
materialcomponentsmaterialcomponentsandroid
remove
Bug
remove
materialcomponentsmaterialcomponentsandroid
bottomappbar bottromnavigationview ripple be not work correctly
Bug
description the bottomappbar have a notch because it have a fab attach inside the bottomappbar I place a bottomnavigationview but when I press in some item de ripple be appear over nothing because the bottomnavigationview be not respect the bound expect behavior ripple should respect the bound source code android api version 29 material library version 1 1 0 rc01 device emulator pixel 3
materialcomponentsmaterialcomponentsandroid
fragment transaction break layout if exituntilcollapse flag be set
Bug
description the pretty much standard layout of coordinatorlayout appbarlayout collapsingtoolbarlayout app layout scrollflag scroll snap exituntilcollapse toolbar nestedscrollview app layout behavior string appbar scrolling view behavior in fragment work pretty well until fragment transaction happen e g switch to another fragment and come back with no exituntilcollapse flag set original fragment get restore as it should keep the scroll position etc but if this flag be set various issue happen after the fragment transaction include scroll position reset sometimes and pretty much always inability to move scroll content include overscroll effect to the view port removal of exituntilcollapse flag make the whole thing work again but at the price of toolbar visibility source code android api version 23 material library version master branch device lg g3 demo after I ve switch to another fragment and come back the part of content transition label overscroll etc become unavailable example
materialcomponentsmaterialcomponentsandroid
material 1 1 0 android resource link fail after update to 1 1 0
Bug
description I m use the material component via appcompat theme since the update from 1 0 0 to 1 1 0 I can t build anymore I m get the follow error a failure occur while execute com android build gradle internal task worker actionfacade android resource linking fail aapt error resource style widget appcompat textview aka my company style widget appcompat textview not find error resource style widget appcompat textview aka my company style widget appcompat textview not find error resource style widget appcompat textview aka my company style widget appcompat textview not find error resource style widget appcompat textview aka my company style widget appcompat textview not find error resource style widget appcompat textview aka my company style widget appcompat textview not find error fail link reference expect behavior I want to build source code project gradle ext dep material com google android material material 1 0 0 app gradle dependency implementation dep material theme xml android api version 28 gradle version 6 1 1 material library version 1 1 0 device n a
materialcomponentsmaterialcomponentsandroid
switchmaterial on off state be not vertically align
Bug
description by use multiple switchmaterial component in multiple row you will see they be not vertically align when one of they be on and another be off expect behavior I think that thumb of switchmaterial should stand in a position in both on off that look vertically align like this image create by a photo edit app image current implementation of switchmaterial do not consider vertical alignment as you see image source code android api version 29 material library version 1 1 0 device all device also in design mode of android studio
materialcomponentsmaterialcomponentsandroid
when run the program on simulator be work properly but it run on emulator it not run
Bug
your app isn t use androidx to avoid potential build failure you can quickly migrate your app by follow the step on run gradle task assembledebug user apple download flutter splash screen animation master android app src debug androidmanifest xml 22 18 91 error attribute application appcomponentfactory value android support v4 app corecomponentfactory from com android support support compat 28 0 0 androidmanif xml 22 18 91 be also present at androidx core core 1 0 0 androidmanif xml 22 18 86 value androidx core app corecomponentfactory suggestion add tool replace android appcomponentfactory to element at androidmanifest xml 10 5 34 19 to override failure build fail with an exception what go wrong execution fail for task app processdebugmanifest manif merger fail attribute application appcomponentfactory value android support v4 app corecomponentfactory from com android support support compat 28 0 0 androidmanif xml 22 18 91 be also present at androidx core core 1 0 0 androidmanif xml 22 18 86 value androidx core app corecomponentfactory suggestion add tool replace android appcomponentfactory to element at androidmanifest xml 10 5 34 19 to override try run with stacktrace option to get the stack trace run with info or debug option to get more log output run with scan to get full insight get more help at build fail in 13 androidx incompatibility may have cause this build to fail please migrate your app to androidx see finish with error gradle task assembledebug fail with exit code 1
materialcomponentsmaterialcomponentsandroid
material 1 1 0 can not build app with material 1 1 0
Bug
I m update the material library from 1 0 0 to 1 1 0 the build fail with this error cause by org gradle worker internal defaultworkerexecutor workexecutionexception a failure occur while execute com android build gradle internal task worker actionfacade cause by com android builder internal aapt v2 aapt2exception android resource compilation fail user xxx gradle cache transform 2 file 2 1 22e8cbc32c6e54d1e11aaceaac2d12db material 1 1 0 re value value xml 2453 5 2468 23 aapt error duplicate value for resource attr backgroundcolor with config user xxx gradle cache transform 2 file 2 1 22e8cbc32c6e54d1e11aaceaac2d12db material 1 1 0 re value value xml 2453 5 2468 23 aapt error resource previously define here I ve already try to clean the project restart and invalidate android studio delete the gradle cache or try with other version like the alpha of the 1 2 0 other info compilesdkversion 29 buildtoolsversion 29 0 3 minsdkversion 21 targetsdkversion 29 any idea
materialcomponentsmaterialcomponentsandroid
android textappearance color doesn t work for materialbutton
Bug
in fact it work with some hack like null in button style but this kind of behavior cause I 2 hour of headache write this bug report include and I doubt that I m the only one who spend way too much time for something as minor as this exact place in 1 2 0 alpha04 which cause the issue screenshot from 2020 02 12 16 14 56 the marked line should be define in textappearance materialcomponent button or base textappearance materialcomponent button in my opinion ofc
materialcomponentsmaterialcomponentsandroid
accent color problem after update to 1 1 0
Bug
when update from 1 0 0 to 1 1 0 I be have problem with the accent color e g on the fab have the accent color before now be weirdly blue and textinput now use the primary color instead of the accent color for hint and so
materialcomponentsmaterialcomponentsandroid
bottom app bar the application will not compile due to error in top edge treatment class
Bug
description after update plugin and librarie version this project win t compile and say due to the usage of the third party librarie unable to find method org gradle api internal artifact ivyservice projectmodule projectpublicationregistry registerpublication ljava lang string lorg gradle api internal artifact ivyservice projectmodule projectpublication v possible cause for this unexpected error include gradle s dependency cache may be corrupt this sometimes occur after a network connection timeout re download dependency and sync project require network the state of a gradle build process daemon may be corrupt stop all gradle daemon may solve this problem stop gradle build process require restart your project may be use a third party plugin which be not compatible with the other plugin in the project or the version of gradle request by the project in the case of corrupt gradle process you can also try close the ide and then kill all java process android api version android x 29 material library version 1 2 0 alpha04 device samsun galaxy s 7 edge 8 oreo to help we triage fast please check to make sure you be use the late version of the library
materialcomponentsmaterialcomponentsandroid
materialshapedrawable interpolation do not work when isroundrect be true
Bug
description if you re use a basic shape with rounded corner interpolation do nothing if you let at least one of the corner have a different radius or a completely different corner treatment interpolation work as intend the issue appear to be that the code be be clever and replace the path with a simple rounded rect when it detect this condition be true isroundrect return true I believe this can be fix rather straight forward by simply scale the radius use here with drawablestate interpolation expect behavior interpolation should work even if all four corner have the same radius here s a sample project demonstrate this with materialcardview the middle one be not able to interpolate since it be draw as a rounded rect materialcardviewt zip android api version test on api 29 material library version test on 1 1 0 and 1 2 0 alpha04
materialcomponentsmaterialcomponentsandroid
daynight theme white text on edittextpreference button
Bug
description after change the theme to theme materialcomponent daynight the edittextpreference button have white text 2020 02 11 192537 expect behavior on a light theme I expect to see dark text on button source code style xml preference xml android api version 28 material library version 1 1 0 device emulator and real device android 7
materialcomponentsmaterialcomponentsandroid
textinputlayout dose not appear in new version 1 1 0
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputlayout expose dropdown menu set a default selection
Bug
description I be go to select default selection programmatically but its not work but none of they work source code var eqlist arraylist eqlist add getstre r string linear equation eqlist add getstre r string quad equation eqlist add getstre r string cubic equation val eqadapter arrayadapter this r layout row spinner item eqlist eqadapter setdropdownviewresource r layout row spinner dropdown item fill expose dropdown setadapter eqadapter fill expose dropdown listselection 0 not work fill expose dropdown setselection 0 not work material library version 1 2 0 alpha04 device all
materialcomponentsmaterialcomponentsandroid
materialbutton can t set background as gradient drawable
Bug
description I m use a button and I m try to set a gradient drawable as its background but it doesn t work expect behavior it should get the gradient background like in appcompatbutton android api version 29 material library version 1 2 0 alpha04
materialcomponentsmaterialcomponentsandroid
chipgroup vertical spacing not work correctly
Bug
description after update from 1 1 0 beta01 to 1 1 0 I notice that the vertical spacing between chip in a chip group be suddenly much large I be use setchipspacingresource with 8dp so I try separate that out into setchipspacinghorizontalresource and setchipspacingverticalresource even with the vertical spacing set to 0dp it be still include a lot of vertical space I end up need to set the vertical resource to 8dp in order to get it to look the same as it do before the update the bug still exist on the late alpha04 expect behavior I would expect vertical spacing of 0dp to have the chip touch each other source code chipgroupverticalspacingbug zip android api version 29 material library version 1 1 0 1 2 0 alpha04 device pixel 2 pixel 3 emulator
materialcomponentsmaterialcomponentsandroid
bottomnavigationview part of badge still remain when remove badge
Bug
description when try to clean badge with removebadge to top of the badge be still remain expect behavior android api version 28 material library version 1 2 0 alpha01 1 2 0 alpha04 device redmi note 8 pro
materialcomponentsmaterialcomponentsandroid
textinputlayout expose dropdown menu wrap content only consider currently select item
Bug
description if one put multiple item in a spinner and set its width to wrap content the spinner consider the width of the first 15 item and set its width to the maximum width find in these 15 item see spinner source code search for max item measure in contrast to that expose dropdown menu only consider the currently select item select item with different width lead to a resize each time an item be select also when initially no item be select even the dropdown list be not wide enough and win t show the complete item text expect behavior here you see a spinner follow by an expose dropdown menu both have the same item image expand spinner menu image and the expand expose dropdown menu notice how the item be cut off image after an item be select in the expose dropdown menu image as this be not the long item the text of some item be still cut off everything be fine when one select the long item image expect behaviour like on the spinner on wrap content give the expose dropdown menu the width of the large item no matter if it be select or not to prevent jumping size of the expose dropdown menu I want to place it next to a textinputlayout show only text and to save space I of course do not want to make it large than need however that be currently not possible with the expose dropdown menu due to the describe behaviour match parent be also no option as I don t want it to span more width as need source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue activity main xml mainactivity kt package com example testlayout import androidx appcompat app appcompatactivity import android os bundle import android widget arrayadapter import androidx databinde databindingutil import com example testlayout databinde activitymainbinding class mainactivity appcompatactivity private lateinit var bind activitymainbinding override fun oncreate savedinstancestate bundle super oncreate savedinstancestate bind databindingutil setcontentview this r layout activity main val adapter arrayadapter createfromresource this android r array emailaddresstype r layout dropdown menu popup item bind filledexposeddropdown setadapter adapter dropdown menu popup item xml style xml app build gradle apply plugin com android application apply plugin kotlin android apply plugin kotlin android extension android compilesdkversion 29 buildtoolsversion 29 0 2 defaultconfig applicationid com example testlayout minsdkversion 15 targetsdkversion 29 versioncode 1 versionname 1 0 testinstrumentationrunner androidx test runner androidjunitrunner buildtype release minifyenable false proguardfile getdefaultproguardfile proguard android optimize txt proguard rule pro databinde enable true dependency 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 1 0 implementation androidx constraintlayout constraintlayout 1 1 3 testimplementation junit junit 4 12 androidtestimplementation androidx test ext junit 1 1 1 androidtestimplementation androidx test espresso espresso core 3 2 0 implementation com google android material material 1 1 0 android api version minsdkversion 15 targetsdkversion 29 android 10 on pixel 2 material library version try with 1 1 0 stable and 1 2 0 alpha4 device pixel 2
materialcomponentsmaterialcomponentsandroid
materialdatepicker context sensitive month name
Bug
description this problem occur in the russian locale maybe in other language in the library code private static simpledateformat getyearmonthformat locale locale return getsimpleformat mmmm yyyy locale result in ui image expect behavior in russian it be correct to use standalone month form in this situation need change mmmm yyyy to llll yyyy result change to more info 25329549 source code materialdatepicker builder daterangepicker settitletext todo title settheme r style themeoverlay materialcomponent materialcalendar build show supportfragmentmanager date piker android api version all material library version 1 1 0 1 2 0 alpha04 device all with switch on russian locale
materialcomponentsmaterialcomponentsandroid
materialalertdialog prevent auto dismiss want to dismiss programmatically
Bug
description unable to prevent auto dismiss even set onpositivebuttonlistener expect behavior we want dismiss the dialog programmatically when we do the validation on text field source code val alertdialog materialalertdialogbuilder this settitle master password setview dialogview setmessage key in master password to log out setpositivebutton android r string ok dialog val inputlayout dialogview findviewbyid r i d tl topic val et dialogview findviewbyid r i d et topic if et text tostre isnotempty dialog dismiss viewmodel onaddtopic et text tostre else inputlayout error getstre r string topic dialog input field error msg create android api version api 28 material library version 1 1 0
materialcomponentsmaterialcomponentsandroid
outlinedbox dense exposeddropdownmenu use android layout marginstart cause the outline to cut into the start of the hint text when focus
Bug
description marginstart do the opposite of what be expect by move the hint text far leave as the value increase cause the outline to cut into the text make it more difficult to read expect behavior we should see the margin increase as the value increase rather than be negatively apply source code android api version android api version 29 material library version material android library version 1 1 0 rc02 device samsung galaxy a10 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
shapeableimageview do not draw its background
Bug
description shapeableimageview do not draw its background expect behavior expect actual source code catalog imageview xml diff android api version 29 material library version 20d2efed827f622e83b5a32a17835bb52b723ffb device pixel 4
materialcomponentsmaterialcomponentsandroid
slider completly break android studio layout preview
Duplicate
this be a terrible and nasty bug so please fix as soon as you can I can not use com google android material slider slider as it stop android studio from show layout preview on any other layout even if it do not include com google android material slider slider the only way to get layout preview again be to invalidate cache and restart android studio if I go into the infect layout it break the layout preview again use com google android material material 1 2 0 alpha04 with android studio android studio 3 5 3 build ai 191 8026 42 35 6010548 build on november 15 2019 jre 1 8 0 202 release 1483 b03 amd64 jvm openjdk 64 bit server vm by jetbrain s r o window 10 10 0
materialcomponentsmaterialcomponentsandroid
html option crash the webview on android 6
Bug
description on android 6 within a webview use com google android material material version 1 1 0 the render of an html option will crash the app this doesn t happen on android 6 expect behaviour html option should be render without crash the app source code option one option two android api version 23 material library version 1 1 0 alpha06 1 2 0 alpha04 any 1 0 0 device samsung sm g900v or any run android 6 stacktrace 02 06 14 18 31 467 930 930 com ft news e androidruntime fatal exception main process com ft news pid 930 android content re resource notfoundexception resource i d 0x0 at android content re resource getvalue resource java 2558 at android content re resource loadxmlresourceparser resource java 4360 at android content re resource getlayout resource java 2372 at android view layoutinflater inflate layoutinflater java 427 at android widget arrayadapter createviewfromresource arrayadapter java 378 at android widget arrayadapter getview arrayadapter java 369 at hv getview pg 13 at android widget abslistview obtainview abslistview java 2929 at android widget listview measureheightofchildren listview java 1305 at android widget listview onmeasure listview java 1212 at android view view measure view java 20151 at android view viewgroup measurechildwithmargin viewgroup java 6330 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 20151 at android view viewgroup measurechildwithmargin viewgroup java 6330 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 20151 at android view viewgroup measurechildwithmargin viewgroup java 6330 at android widget linearlayout measurechildbeforelayout linearlayout java 1464 at android widget linearlayout measurevertical linearlayout java 747 at android widget linearlayout onmeasure linearlayout java 629 at android view view measure view java 20151 at android view viewgroup measurechildwithmargin viewgroup java 6330 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 20151 at android view viewgroup measurechildwithmargin viewgroup java 6330 at android widget framelayout onmeasure framelayout java 194 at android view view measure view java 20151 at android view viewgroup measurechildwithmargin viewgroup java 6330 at android widget framelayout onmeasure framelayout java 194 at com android internal policy phonewindow decorview onmeasure phonewindow java 3158 at android view view measure view java 20151 at android view viewrootimpl performmeasure viewrootimpl java 2594 at android view viewrootimpl measurehierarchy viewrootimpl java 1524 at android view viewrootimpl performtraversal viewrootimpl java 1841 at android view viewrootimpl dotraversal viewrootimpl java 1437 at android view viewrootimpl traversalrunnable run viewrootimpl java 7397 at android view choreographer callbackrecord run choreographer java 920 at android view choreographer docallback choreographer java 695 at android view choreographer doframe choreographer java 631 at android view choreographer framedisplayeventreceiver run choreographer java 906 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 158 at android app activitythread main activitythread java 7224 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 1230 at com android internal os zygoteinit main zygoteinit java 1120
materialcomponentsmaterialcomponentsandroid
tabbackground attr not behavior as expectation
Bug
I config tablayout as blow tab background will be draw with offset 10dp I think it be because the background draw without add padding set in its parent tabview drawbackground private void drawbackground nonnull canvas canvas if basebackgrounddrawable null basebackgrounddrawable setbound getleft gettop getright getbottom basebackgrounddrawable draw canvas
materialcomponentsmaterialcomponentsandroid
textinputlayout api 21 endicontint endicondrawable color be break
Bug
description endicontint or endicondrawable be not work on android api 21 drawable color be always overriden by red unknown color expect behavior should be respect drawable color or specify tint source code app endicondrawable drawable ic icon app endicontint color yellow android api version api 21 material library version 1 1 0 1 2 0 alpha04 device any android with api 21
materialcomponentsmaterialcomponentsandroid
materialdatepicker manual date input do not work on samsung device
Bug
description when click the edit button next to select date on the picker to manually input a date with the edit text it be not possible to enter a valid date with the samsung stock keyboard since the number keyboard that be open do not allow to enter or expect behavior it should be possible to enter a valid date with the keyboard either by automatically insert the special character to complete the date or by use keyboard variant that support these need character android api version 28 android 9 0 material library version 1 2 0 alpha04 device samsung a50 sm a505fn
materialcomponentsmaterialcomponentsandroid
materialbutton background tint drawable state desynchronize when use onattachstatechangelistener
Bug
description call view getdrawablestate on a materialbutton within an onattachstatechangelistener compute a new drawable state without notify drawablestatechange this result in the materialbutton fail to update the drawable state of the background tint until the next time it change by e g touch the button etc getdrawablestate be use by many apis something as simple as settextcolor will call getdrawablestate and expose the problem expect behavior I have create a sample project that demonstrate the problem here in the follow demo we attach a fragment define in mainfragment at some point after the activity define in mainactivity be create and while the window have focus the background tint of the button define in button tint selector define the disabled state as red with a default state of green the background tint incorrectly display the disabled state even though the button be in the enabled state touch the button or un focus and re focus the window etc synchronize the state to the background tint and the issue resolve itself source code android api version any 28 in demo material library version 1 2 0 alpha04 device any pixel 3 simulator in demo
materialcomponentsmaterialcomponentsandroid
materialdatepicker crash scroll to min year of calendarconstraint
Bug
description I have a calendar set up that require a user to enter their dob val datepicker materialdatepicker builder datepicker settitletext getstre r string birthdate setcalendarconstraint calendarconstraint builder setstart start setend end setopenat currentdate build setselection currentdate build the constraint be in reference to today and require a user to be within 18 and 100 year of age val calendar calendar getinstance timezone gettimezone utc val currentyear calendar get calendar year calendar set calendar year currentyear 100 val start calendar timeinmillis calendar set calendar year currentyear 18 val end calendar timeinmillis if the current selection of the calendar be set to january 1st 1975 which be within the valid range and the user change the active year to 1920 the app crash with the follow stack trace the calendar be attempt to scroll to january of 1920 which be an invalid target position 1 as the minimum date be in february of 1920 this scenario work just fine when scroll to the maximum end stack trace java lang illegalargumentexception invalid target position at androidx recyclerview widget recyclerview smoothscroller start recyclerview java 11807 at androidx recyclerview widget recyclerview layoutmanager startsmoothscroll recyclerview java 8470 at com google android material datepicker smoothcalendarlayoutmanager smoothscrolltoposition smoothcalendarlayoutmanager java 49 at androidx recyclerview widget recyclerview smoothscrolltoposition recyclerview java 1790 at com google android material datepicker materialcalendar 10 run materialcalendar java 453 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 193 at android app activitythread main activitythread java 6669 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 858 expect behavior the calendar should scroll to february of 1920 I e the minimum allow date within that year source code see above android api version android api version here 28 material library version 1 1 0 device pixel to help we triage fast please check to make sure you be use the late version of the library confirm on late stable release we also happily accept pull request pekingme please let I know if you d like some support on this since this scenario work just fine scroll to the maximum constraint I anticipate the fix should be a quick one
materialcomponentsmaterialcomponentsandroid
navigationview custom font reset back to roboto system default on item click
Bug
set font montserrat regular in style xml in either main apptheme or custom font be set in navigation drawer but when select an item from the drawer and after the drawer close when the drawer be reopen the first 5 item from the top have resette back to the system roboto font I have rearrange the list to rule out individual item but it be always the first five the custom font remain for the item below expect behavior the nav item font should always be the same source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android 10 material library version com google android material material 1 2 0 alpha04 device pixel 2
materialcomponentsmaterialcomponentsandroid
catalog demo add scroll to tab demo screen
Bug
description on the device the screen size 854x480 tabs demo fragment be cut and not scrollable actual result badge gravity label be cut also in landscape mode the tab be not scrollable vertically as well device 2020 02 04 122239 expect behavior badge gravity label should be not cut source code the issue be present in catalog demo app tabsmaindemofragment class android api version api 17 material library version 1 2 0 alpha04 device prestigio pap5500duo
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup getcheckedbuttonid doesn t retrieve the first selection
Bug
description when I call materialtogglebuttongroup checkbuttonid the first selection doesn t return the right i d instead 1 however every selection that be a different button after the initial work may be similar to step 1 create materialbuttontogglegroup and add button 2 add click listener and to the button and log the materialtogglebuttongroup checkbuttonid 3 click a button 4 notice it return 1 5 click on another button 6 notice it return the correct i d expect behavior materialbuttontogglegroup checkbuttonid should return the correct i d every time source code fragment kt button setonclicklistener val checkedbuttonid roster add player button group checkedbuttonid log d position checkedbuttonid layout xml android api version api 26 material library version material android library version you be use here e g 1 1 0 alpha07 1 2 0 alpha04 late
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder crash building dialog with material component app theme
Bug
description attempt to build a alertdialog use the materialalertdialogbuilder cause the app to crash in a appcompatactivity even though the application theme be set to a material component theme stacktrace text java lang illegalargumentexception the style on this component require your app theme to be theme appcompat or a descendant at com google android material internal themeenforcement checktheme themeenforcement java 243 at com google android material internal themeenforcement checkappcompattheme themeenforcement java 213 at com google android material internal themeenforcement checkcompatibletheme themeenforcement java 148 at com google android material internal themeenforcement obtainstyledattributes themeenforcement java 76 at com google android material dialog materialdialog getdialogbackgroundinset materialdialog java 60 at com google android material dialog materialalertdialogbuilder materialalertdialogbuilder java 117 at com google android material dialog materialalertdialogbuilder materialalertdialogbuilder java 103 at ninja hassie uni todo mainactivity 2 handlefault mainactivity java 69 at com backendless persistence 1 handlefault persistence java 189 expect behavior the dialog should build as the app theme be set to a material component theme source code style xml xml mainactivity java java public class mainactivity extend appcompatactivity new materialalertdialogbuilder getapplicationcontext setmessage successfully add task setpositivebutton android r string ok null show android api version 9 pie material library version 1 2 0 alpha04 device oneplus 5 t
materialcomponentsmaterialcomponentsandroid
materialcardview round corner
Bug
description corner blurry in android 7 1 1 screenshot link source code android api version api 25 material library version implementation com google android material material 1 0 0 device moto e4 plus to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
materialdatepicker date range selector return off by 1 value
Bug
description the date range picker be return an off by 1 value in the materialpickeronpositivebuttonclicklistener mean if the range january 1st 2020 january 31st 2020 be select the value return be december 31st 2019 january 30th 2020 expect behavior when use a materialdatepicker builder daterangepicker and set the addonpositivebuttonclicklistener we should receive the range select from the picker as a pair represent the low and upper bind of the range select source code val picker materialdatepicker builder daterangepicker apply settitletext select date settheme r style themeoverlay materialcomponent materialcalendar build picker addonpositivebuttonclicklistener range range first let lowerbound range second let upperbound val low calendar getinstance apply timeinmillis lowerbound val high calendar getinstance apply timeinmillis upperbound low will be the lower bind date 1 high will be the upper bind date 1 picker show supportfragmentmanager android api version 10 q material library version 1 2 0 alpha04 device pixel 2
materialcomponentsmaterialcomponentsandroid
materialdatepicker theme override be not apply to text field in text entry mode
Bug
description full description of issue here when instantiate a materialdatepicker use the builder one of the param be a theme override call settheme l569 here we can modify how to theme the view with different color it look like this component use colorprimary for almost all the theming however it look like the textinputlayout use by the text entry mode when select a date ignore the colorprimary value pass in the builder current behavior datepickercurrentbehavior in this current behavior the apptheme have a colorprimary set to a white value expect behavior the override theme s colorprimary should be use instead of the app theme s colorprimary attribute datepickerexpectedbehavior source code example style in the code val builder materialdatepicker builder daterangepicker apply settitletext title settheme r style customcalendardatepickertheme build builder show supportfragmentmanager android api version 10 q material library version 1 2 0 alpha04 device pixel 2
materialcomponentsmaterialcomponentsandroid
tablayout tab font be be reset to roboto system default while switch tab
Bug
description I have a custom tablayout style in my theme xml notice it have a text appearance which use custom ttf font I provide with the app for this example I have set it to some exotic font font family xml be at the end of this message I ll provide a screenshot and will annotate they below 1 here we see the first issue select tab doesn t use bold version of my custom font although it be provide in the font family instead it use roboto which be the default system font screen1 2 now I switch to another tab and we can see that first tab s font be reset back to roboto too screen2 3 now I switch back to first tab and the last tab s font be replace with roboto it be correct one in the beginning screen3 so each time I switch to some tab its font be lose expect behavior 1 font be not be reset on tab switch 2 select tab font use weight variant of the font from the font family android api version api 25 material library version 1 1 0 rc01 device android emulator api 25 here s the font family resource I use for this demo xml
materialcomponentsmaterialcomponentsandroid
tablayout property app tabindicator be tint every activity background fragment after be render
Bug
description I ve an activity with bottom navigation and one framelayout to inflate fragment when I inflate the second fragment it have an tablayout every screen have the background tint with theme accent color it s not happen with just one or more fragment include activity openne later too other scenario I open xactivity everything be fine I inflate the fragment that have the tablayout and open the same xactivity now the background be tint source code when I get this problem I start to remove every screen element and customization after review style manifest etc and I discover the problem be happen with one specific property app tabindicator android api version compilesdk targetsdk 29 minsdk 21 material library version com google android material material 1 2 0 alpha04 and happen too with com google android material material 1 2 0 alpha03 I didn t test other version device happen in any device such as asus zenfone 5z motorola moto g5 simulator etc solution remove property app tabindicator from xml and set programmatically in kotlin java e g bind tablayout setselectedtabindicatorcolor contextcompat getcolor activity as context android r color white
materialcomponentsmaterialcomponentsandroid
material button string reference not respect textappearancebutton setting
Bug
description when use in the xml something like the follow and set the textappearancebutton to the button text be still display as all cap however if I set the materialbutton text as follow the button text display as expect and be not all cap this happen with at least 1 1 0 rc01 and 1 1 0 rc02 expect behavior I would expect regardless of how the button text be add that the textappearance setting would be apply correctly source code see above example in the problem description android api version api 28 material library version 1 1 0 rc01 1 1 0 rc02 device samsung s9
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout toolbar can be scroll under the status bar
Bug
description when use android fitssystemwindow true on the appbarlayout and coordinatorlayout in a collapse toolbar setup the toolbar in some case can be scroll under the status bar expect behavior device 2020 01 30 162504 1 source code as you can see the bug be reproduce in materialcomponent catalog app with one small change in cat topappbar collapse fragment xml need to add android fitssystemwindow true to coordinatorlayout material library version 1 2 0 alpha04 late code from repo
materialcomponentsmaterialcomponentsandroid
slider crash when call calculatetickscoordinate
Bug
java lang negativearraysizeexception 6 at com google android material slider slider calculatetickscoordinate slider java 1145
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup selectionrequire attribute doesn t enforce checkedbuttonid to be a valid i d return 1
Bug
description the materialbuttontogglegroup selectionrequire attribute doesn t reflect the select button when access togglegroup checkedbuttonid when the button be press for the first time checkedbuttonid return the correct value when the same button be select for the second time checkedbuttonid return 1 instead of the select button the current workaround that I ve implement base upon this stackoverflow answer materialbuttontogglegroup addonbuttoncheckedlistener group checkedid ischecke if group checkedbuttonid 1 group check checkedid after call group check checkedid the method materialbuttontogglegroup checkedbuttonid return the correct button i d it be worth note that the checkedid that be return from the above listener return the correct value when select a button twice it be only when access the state materialbuttontogglegroup checkedbuttonid that 1 be return I have set the singleselection and selectionrequire to be true for this component expect behavior the method materialbuttontogglegroup checkedbuttonid should return the correctly select button and not 1 android api version 29 material library version 1 2 0 alpha04 device pixel 3 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
elevationoverlay dark theme overlay not apply when use color state list
Bug
description when use materialshapedrawable createwithelevationoverlay and add it as the background to a view it doesn t apply the semi transparent overlay to indicate elevation if coloronsurface be a color state list resource the test app have a night theme with coloronsurface reference to a color state list resource that be use to set the alpha on a color there be 2 textview and they both have a materialshapedrawable set as their background the second one use a theme overlay to illustrate the elevation overlay work with an argb color set as coloronsurface expect behavior the background of coloronsurface color white 87 should match coloronsurface deffffff screenshot 1580244947 source code android api version 29 material library version 1 2 0 alpha04 device api 29 pixel 3 emulator
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog cornersize attribute not support
Bug
description when shape theme bottomsheetdialogfragment accord to seem like cornersize alone be respect but none of cornersizetopleft cornersizetopright cornersizebottomright cornersizebottomleft have any visual effect expect behavior shape theming of the individual corner should work android api version 23 material library version 1 2 0 alpha04 device oneplus 5 t
materialcomponentsmaterialcomponentsandroid
chip double emission on check state change when selectionrequire be use
Bug
description when use the selectionrequire feature in a chipgroup and we try to un check the last check chip any oncheckchangelistenter that be set be get double emission for the state of that chip the reason for that be because there be a tracking listener which check the number of already check chip s and reset the check state after the first emission have be propagate to the original listener expect behavior receive no emission if selectionrequire be enable and we try to un check the last check chip source code location of the issue l521 android api version any material library version 1 2 0 alpha04 device any
materialcomponentsmaterialcomponentsandroid
appbarlayout status bar background color move around when use fitssystemwindow true
Bug
description when use android fitssystemwindow true on the appbarlayout in a collapse toolbar setup the status bar background color move down for a moment when scroll up fast recording of the problem gif frame where it happen expect behavior the status bar background color should stay in the same place at all time android api version 21 material library version 1 0 0 device nexus 5x emulator and samsung galaxy note 8 physical device
materialcomponentsmaterialcomponentsandroid
material io markdown table be incorrectly format
Bug
markdown table on the color theming page be incorrectly format so it doesn t render correctly image
materialcomponentsmaterialcomponentsandroid
materialtextinputpicker mobile date input picker do not look correct to spec
Bug
description when run the demo component app and when include it in my own app the mobile date input picker do not look up to spec in particular there be a large space between to input text box and the ok cancel button there be no hint to help with the expect input format the space appear to be due to the height of the mobile calendar picker which be also inflate but hide behind the input view screenshot 20200123 155254 material component catalog screenshot 20200123 155301 material component catalog expect behavior there shouldn t be a large space between the input box and the ok cancel button there should be a hint to guide the input format see mobile date input picker mobile picker android api version 29 material library version 1 2 0 alpha04 device samsung s9 emulator x86 nexus 5x
materialcomponentsmaterialcomponentsandroid
materialshapedrawable crash on android 4 4 4 java lang illegalargumentexception radius must be 0
Bug
I m currently use 1 1 0 beta02 we have this stacktrace on crashlytic fatal exception java lang illegalargumentexception radius must be 0 at android graphic radialgradient radialgradient java 53 at com google android material shadow shadowrenderer drawcornershadow shadowrenderer java 160 at com google android material shape shapepath arcshadowoperation draw shapepath java 385 at com google android material shape shapepath 1 draw shapepath java 226 at com google android material shape shapepath shadowcompatoperation draw shapepath java 323 at com google android material shape materialshapedrawable drawcompatshadow materialshapedrawable java 1055 at com google android material shape materialshapedrawable draw materialshapedrawable java 958 at android graphic drawable layerdrawable draw layerdrawable java 349 at android graphic drawable insetdrawable draw insetdrawable java 158 at android view view draw view java 14450 at android view view getdisplaylist view java 13362 at android view view getdisplaylist view java 13404 at android view viewgroup dispatchgetdisplaylist viewgroup java 3077 at android view view getdisplaylist view java 13300 at android view view getdisplaylist view java 13404 there be 0 reference to my application code so I think this be cause by something out of our control and be randomly give out on some device with 4 4 4 apparently the cause be here l160 where bound width be 0 or negative and be pass as the radius parameter to the radialgradient which crash here because a radius of 0 or less be not allow any hint or workaround possible maybe we could fix a wrong width provide a default value in materialshapedrawable drawcompatshadow l1055 or not try to draw the shadow at all
materialcomponentsmaterialcomponentsandroid
slider support absseekbar setthumb
Duplicate
be your feature request relate to a problem please describe as a little halloween easter egg I replace the thumb of a slider with a pumpkin I m use absseekbar setthumb setthumb android graphic drawable drawable for that however I haven t find a way to do so with the slider from this lib describe the solution you d like implement setthumb
materialcomponentsmaterialcomponentsandroid
textinputlayout gravity top be not work for hint
Bug
description prerequisite textinputlayout with textinputedittext have hint attribute migrate a layout have design textinputedittext to material textfield textinputlayout but it be not place the hint at the top though it be work with support design widget and also work for text but not for hint attribute expect behavior content hint be place at the top see in pic minimal problematic source code android api version 29 material library version com google android material material 1 2 0 alpha04 device pixel 2 avd note I ve test this with alpha04 release still the same issue issue sample
materialcomponentsmaterialcomponentsandroid
materialdatepicker not able to be instantiate via xml can only create use builder
Bug
description currently it be not possible to create the new style date picker use standard xml it be only possible to create use the builder from kotlin expect behavior I would expect to be able to access the datepicker from xml layout which be consistent with other mdc component source code accord to the demo code this be the only way to instantiate a materialdatepicker which be not very pragmatic android api version android api 29 material library version 1 2 0 alpha03 don t think this work on the late version either will update and test device not relevant 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 ripple effect go beyond the view
Bug
description I m use textinputlayout with the custom right image when you click on the right icon the ripple effect appear under the view and go beyond its scope image expect behavior the ripple effect appear on top of the view and have a small size image source code android api version 21 22 api version above work as expect material library version 1 1 0 beta02 1 2 0 alpha04 be affect too device irrelevant e g emulator pixel 3xl 21 api as a workaround I write an extension for textinputlayout suppress magicnumber private val decreasesizevalue 8 dptopx suppress magicnumber private val endmargin 8 dptopx suppress magicnumber private val startmargin 16 dptopx fun textinputlayout fixlollipoprightimageripple val imagebutton findviewbyid r i d text input end icon imagebutton drawable let drawable val lp imagebutton layoutparam as framelayout layoutparam lp width drawable minimumwidth dptopx decreasesizevalue lp height drawable minimumheight dptopx decreasesizevalue lp marginend endmargin lp marginstart startmargin imagebutton layoutparams lp fun int dptopx this resource getsystem displaymetric density toint to work correctly need still set the transparent background for textinputedittext like this or create a style
materialcomponentsmaterialcomponentsandroid
materialdatepicker hide save and close button behind the status bar
Bug
description I use the materiadatepicker daterange with default setting no custom theme but it hide part of save button and close button behind the status bar also the navigation bar obstruct part of the low calendar view date range picker expect behavior it be suppose to apply correct padding or something to account for status bar and navigation bar source code bind buttonfilterbydate setonclicklistener button filter the transaction by the date range select by the user set calendar range to only span between now and 6 month ago val sixmonthsago calendar getinstance apply add calendar month 6 set calendar day of month 1 val thismonth calendar getinstance val daterangepicker materialdatepicker builder daterangepicker setcalendarconstraint calendarconstraint builder setstart sixmonthsago timeinmillis setend thismonth timeinmillis setopenat thismonth timeinmillis build build daterangepicker addoncancellistener daterangepicker addonpositivebuttonclicklistener selection val startselect selection first let date it val endselect selection second let date it startdatefilter startselect enddatefilter endselect refreshdatefilterdisplay daterangepicker show parentfragmentmanager daterangepicker tostre android api version 22 23 material library version 1 2 0 alpha03 device nexgo n5 terminal 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
receive some report java lang illegalargumentexception illegal state argument 5
Bug
we have receive some report about this stacktrace fatal exception java lang illegalargumentexception illegal state argument 5 at com google android material bottomsheet bottomsheetbehavior startsettlinganimation 755 bottomsheetbehavior java 755 at com google android material bottomsheet bottomsheetbehavior 1 run 646 bottomsheetbehavior java 646 at android os handler handlecallback 739 handler java 739 at android os handler dispatchmessage 95 handler java 95 at android os looper loop 135 looper java 135 at android app activitythread main 5376 activitythread java 5376 at java lang reflect method invoke method java at java lang reflect method invoke 372 method java 372 at com android internal os zygoteinit methodandargscaller run 908 zygoteinit java 908 at com android internal os zygoteinit main 703 zygoteinit java 703 I have read and analyze the problem it seem as the view be not hideable but it isn t true the view be hideable as you can see in the next code this be the function use for hide view override public void hideplayer if bottomsheet getstate bottomsheetbehavior state hide mcontentframe setpadde 0 0 0 0 bottomsheetlayout setvisibility view go bottomsheetlayout post try bottomsheet sethideable true bottomsheet setstate bottomsheetbehavior state hide bottomsheet sethideable false catch exception e bottomsheet sethideable false timber e e workaround fabric random crash userpreference setminiplayerhidden true device report by version android 9 33 android 8 22 android 7 16 android 6 12 device report by brand samsung 38 huawei 25 xiaomi 22 motorola 7 version library com google android material material strictly 1 0 0 1 0 0 c
materialcomponentsmaterialcomponentsandroid
slider xml valuefrom and valueto order problem
Bug
description when use slider like this in layout everything work well but when I switch place of android valueto 10 and android valuefrom 5 while code or use build in studio code formatter app crash with error java lang illegalargumentexception valuefrom must be small than valueto at com google android material slider slider validatevaluefrom slider java 397 at com google android material slider slider setvaluefrom slider java 441 expect behavior I thing order of those two attribute shouldn t matter source code android api version 28 material library version 1 2 0 alpha03 device pocophone f1 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
tab layout tab text not show
Bug
description the tab text for the active tab be not show screenshot 1579289949 expect behavior tab text should not be hide this be the result on 1 1 0 rc01 no change have be make apart from material version screenshot 1579289949 android api version 28 material library version 1 2 0 alpha01 and above device nexus 5x emulator with 22 25 29 I m use a layoutmediator to set the text I try to see if the text be not get set here s what the layout inspector give screen shoot 2020 01 17 at 1 31 58 pm and the textview property screen shoot 2020 01 17 at 1 32 08 pm
materialcomponentsmaterialcomponentsandroid
materialdatepicker entire component feel very janky due to delay visual cue and overzealous smooth scrolling
Bug
description the component doesn t feel responsive or snappy due to overzealous and slippery horizontal scrolling where accidentally scroll too fast skip several page rather than snap like you would expect from any normal viewpager honestly this be the most finicky and annoying thing ever laggy and jittery not 60 fps horizontal scrolling on at least my own device and emulator force animation and sometimes even ignore click event after click date because a circle be fill with a grey reveal animation that cause a delay visual cue in comparison to a traditional datepickerdialog this be a step forward in term of design but a step backwards in term of responsiveness android api version 9 material library version 1 2 0 alpha03 device oppo find x emulator
materialcomponentsmaterialcomponentsandroid
basetransientbottombar 1 1 0 rc01 cause view invalidate boolean nullpointerexception
Bug
description after update from material 1 0 0 to 1 1 0 rc01 I see multiple report of crash with basetransientbottombar and no app specific code in stacktrace stacktrace look like huawei android 7 fatal exception java lang nullpointerexception attempt to invoke virtual method void android view view invalidate boolean on a null object reference at android view view setflag 11550 view java 11550 at android view view setvisibility 8046 view java 8046 at com google android material snackbar basetransientbottombar 9 run 849 basetransientbottombar java 849 at android os handler handlecallback 761 handler java 761 at android os handler dispatchmessage 98 handler java 98 at android os looper loop 156 looper java 156 at android app activitythread main 6617 activitythread java 6617 at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run 942 zygoteinit java 942 at com android internal os zygoteinit main 832 zygoteinit java 832 samsung android 9 fatal exception java lang nullpointerexception attempt to invoke virtual method void android view view invalidate boolean on a null object reference at android view view setflag 15721 view java 15721 at android view view setvisibility 10789 view java 10789 at com google android material snackbar basetransientbottombar 9 run 849 basetransientbottombar java 849 at android os handler handlecallback 873 handler java 873 at android os handler dispatchmessage 99 handler java 99 at android os looper loop 214 looper java 214 at android app activitythread main 7094 activitythread java 7094 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run 494 runtimeinit java 494 at com android internal os zygoteinit main 975 zygoteinit java 975 xiaomi android 9 fatal exception java lang nullpointerexception attempt to invoke virtual method void android view view invalidate boolean on a null object reference at android view view setflag 14186 view java 14186 at android view view setvisibility 10007 view java 10007 at com google android material snackbar basetransientbottombar 9 run 849 basetransientbottombar java 849 at android os handler handlecallback 873 handler java 873 at android os handler dispatchmessage 99 handler java 99 at android os looper loop 201 looper java 201 at android app activitythread main 6823 activitythread java 6823 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run 547 runtimeinit java 547 at com android internal os zygoteinit main 873 zygoteinit java 873 lge android 9 fatal exception java lang nullpointerexception attempt to invoke virtual method void android view view invalidate boolean on a null object reference at android view view setflag 14222 view java 14222 at android view view setvisibility 10027 view java 10027 at com google android material snackbar basetransientbottombar 9 run 849 basetransientbottombar java 849 at android os handler handlecallback 873 handler java 873 at android os handler dispatchmessage 99 handler java 99 at android os looper loop 193 looper java 193 at android app activitythread main 6854 activitythread java 6854 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run 493 runtimeinit java 493 at com android internal os zygoteinit main 860 zygoteinit java 860 if need I can find few more stacktrace but they seem to differ just by line number expect behavior basetransientbottombar should not cause crash npe step to reproduce be unfortunately unknown it seem to be relatively rare the issue do not happen in 1 0 0 material library version 1 1 0 rc01 device multiple device android os version affect
materialcomponentsmaterialcomponentsandroid
import com google android material snackbar snackbar
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
navigation bar the edge to edge option doesn t show a scrim for the navigation bar
Bug
description the material catalog have the option to go edge to edge as be recommend by google the automatic scrim as describe in the doc be not apply quote from doc however when the user be in 2 button or 3 button navigation mode these button don t change color instead the system apply a translucent background so the button stay visible however the system can only do this if the app target api level 29 or high I test this in my own app and the material catalog app I even update the catalog app to targetsdk 29 as the doc say but on my android q emulator a scrim be apply but on sdk level 27 for instance it be not expect behavior a scrim should be apply if the user use the old button navigation on all android version image leave sdk 27 right android q source code android color transparent true android api version all test on 27 and q material library version 1 1 0 rc01 device emulator
materialcomponentsmaterialcomponentsandroid
materialcardview unwanted border around cardview when have different border radius
Bug
description when change the shape of a material card to include only 2 rounded border there be an additional 2dp border around the card that clip over content see screenshot expect behavior no border would be there if all border be round not round this do not happen source code android api version 29 material library version 1 2 0 alpha03 device nexus5 google pixel samsung s7
materialcomponentsmaterialcomponentsandroid
materialshapedrawable gray artifact on colorful shadow
Bug
description when use materialshapedrawable compatible shadow mode shadowcompatibilitymode shadow compat mode always colorful shadow be not draw correctly take a look screenshot 1579034644 source code val shapedrawable materialshapedrawable shapedrawable fillcolor colorstatelist valueof 0xffd81b60 toint shapedrawable shadowcompatibilitymode shadow compat mode always shapedrawable setshadowcolor 0xffd81b60 toint shapedrawable elevation 168f button background shapedrawable android api version I test this on api 17 and api 29 emulator and api 24 physical device material library version I try this with 1 1 0 rc01 and 1 2 0 alpha03 both suffer from this issue
materialcomponentsmaterialcomponentsandroid
material library library layout resource implicitly rely on materialcomponentsviewinflater
Bug
description all of the mtrl layout resource do not use explicitly material component for example mtrl layout snackbar include use textview and button instead of materialtextview and materialtextbutton this mean that consumer have to use appcompatactivity explicitly provide materialcomponentsviewinflater or override layout resource in order for view like snackbar to display properly source code kotlin have material theme set in the manifest file class mainactivity activity override fun oncreate instate bundle super oncreate instate val content coordinatorlayout this setcontentview content snackbar make content hello length indefinite apply setaction world show screenshot 1579027883 expect behavior library should explicitly use material component in layout file for example snackbar layout should look like this xml screenshot 1579027912 android api version any version material library version 1 2 0 alpha03 device all device
materialcomponentsmaterialcomponentsandroid
material library custom lint rule be not get register after upgrade to 1 2 0 alpha03
Bug
description custom lint rule be not get register after upgrade to 1 2 0 alpha03 in my project I have several custom lint rule register with lint registry v2 and include in my project with lintcheck project check I have the custom issue id also list in my lint xml with version of material component prior to 1 2 0 alpha03 there be no problem and my lint rule all work with 1 2 0 alpha03 run lint report unknown issue ids for custom issue id list in my lint xml furthermore the custom lint check don t get run in android studio or from run lint through gradle expect behavior custom lint rule should be register and work regardless of what version of material component I m use source code n a android api version 29 material library version 1 2 0 alpha03 device n a to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomappbar crash with anchored fab
Bug
description when fab be anchor to a bottom bar the app crash with the follow error java lang illegalargumentexception width and height must be 0 at android graphic bitmap createbitmap bitmap java 969 at android graphic bitmap createbitmap bitmap java 948 at android graphic bitmap createbitmap bitmap java 915 at com google android material shape materialshapedrawable maybedrawcompatshadow materialshapedrawable java 978 at com google android material shape materialshapedrawable draw materialshapedrawable java 945 bottom bar without fab work great fab anchor to any other view or without anchor at all work great fab anchor to bottom bar and invisible work great I suspect it s cause by bottom bar cradle expect behavior fab should be anchor and cradle without issue source code layout file be in the attachment have to use txt instead of xml activity read article txt android api version sdk 29 material library version 1 2 0 alpha03 device avd api 28 with google play samsung sm t355 with android 7 1 1
materialcomponentsmaterialcomponentsandroid
alertdialog how to position alert dialog properly
Bug
description I can t set the alert dialog s position at a custom position expect behavior I read this in the official site 2020 01 14 111131 seem we be able to custom the dialog s position with the backgroundinset but I don t konw how to make it and I be a fresher in android development be there any example about this
materialcomponentsmaterialcomponentsandroid
slider click do not trigger onchangelistener
Bug
description when use a slider the onchange listener do not trigger when click on the slider itself note that drag the handle work as expect expect behavior when click on the slider the onchange listener should be call source code xml java mslider setonchangelistener new slider onchangelistener override public void onvaluechange slider slider float value log I mtag string format value change to f value android api version 26 material library version 1 2 0 alpha0 device emulator
materialcomponentsmaterialcomponentsandroid
tablayout binary incompatible change in ontabselectedlistener between 1 0 0 and 1 1 0 rc1
Bug
description there appear to be an binary incompatible change with ontabselectedlistener between 1 0 0 and 1 1 0 rc1 cause a runtime crash when use a lib compile with the previous version on the late one expect behavior a lib compile against 1 0 0 will continue to work with 1 1 0 source code the lib have a class foo implement ontabselectedlistener and be compile against 1 0 0 the app use version 1 1 0 rc1 expect the app doesn t crash actual the app crash with java lang incompatibleclasschangeerror class foo do not implement interface com google android material tabs tablayout baseontabselectedlistener in call to void com google android material tabs tablayout baseontabselectedlistener ontabunselecte com google android material tabs tablayout tab declaration of com google android material tab tablayout 1 appear in data app app base apk android api version n a device n a
materialcomponentsmaterialcomponentsandroid
materialdatepicker manual date input do not work on lg device
Bug
description when click the edit button next to select date on the picker to manually input a date with the edit text it be not possible to enter a valid date with the lg stock keyboard since the number keyboard that be open do not allow to enter or expect behavior it should be possible to enter a valid date with the keyboard either by automatically insert the special character to complete the date or by use keyboard variant that support these need character android api version 26 android 8 0 material library version 1 2 0 alpha03 device lg g5 lg h860
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton wrong shape theme
Bug
description I set shape theme in apptheme attribute component like materialcardview be work fine but extendedfloatingactionbutton have wrong shape expect behavior below be my expect behavior source code android api version 26 material library version 1 1 0 rc01 device google pixel xl