repository stringclasses 156 values | issue title stringlengths 1 1.01k ⌀ | labels stringclasses 8 values | body stringlengths 1 270k ⌀ |
|---|---|---|---|
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment recyclerview item inside bottomsheetdialogfragment need double touch after fast scrolling | Bug | I have a recyclerview inside bottomsheetdialogfragment the recyclerview item touch work normally when it s scroll slowly but when the recyclerview be scroll fast and after the list stop without touch than touch on any item doesn t work on fast touch it need double touching see in the below example gif when touch on andhra pradesh it s work fine after slow scrolling touch on haryana also work fine then do a fast scroll and touch on punjab doesn t work on the first touch touch again it work rv gif 1 1 follow be the code operatorlistdialogfragment java java package com import public class operatorlistdialogfragment extend bottomsheetdialogfragment private static final string arg name item name private static final string arg logo item logo private listener mlistener private string header private context mcontext public static operatorlistdialogfragment newinstance string name int logo string header final operatorlistdialogfragment fragment new operatorlistdialogfragment final bundle args new bundle args putstringarray arg name name args putintarray arg logo logo args putstre header header fragment setargument args return fragment nullable override public view oncreateview layoutinflater inflater nullable viewgroup container nullable bundle savedinstancestate return inflater inflate r layout fragment operator list dialog list dialog container false override public void onviewcreate nonnull view view nullable bundle savedinstancestate textview headertv view findviewbyid r i d title headertv settext getargument getstre header final recyclerview recyclerview view findviewbyid r i d list recyclerview setlayoutmanager new linearlayoutmanager getcontext recyclerview setadapter new operatoradapter getargument getstringarray arg name getargument getintarray arg logo view findviewbyid r i d dismiss setonclicklisten new view onclicklistener override public void onclick view v dismiss override public void onattach context context super onattach context mcontext context final fragment parent getparentfragment if parent null mlistener listener parent else mlistener listener context override public void ondetach mlistener null super ondetach public interface listener void onfilterselecte string select string selectedquery private class viewholder extend recyclerview viewholder final textview text imageview logo viewholder layoutinflater inflater viewgroup parent todo customize the item layout super inflater inflate r layout fragment operator list dialog list dialog item parent false text itemview findviewbyid r i d tv operator name logo itemview findviewbyid r i d iv recharge provider icon private class operatoradapter extend recyclerview adapter private string mname private int mlogos operatoradapter string name int logo mname name mlogos logo nonnull override public viewholder oncreateviewholder nonnull viewgroup parent int viewtype return new viewholder layoutinflater from parent getcontext parent override public void onbindviewholder final viewholder holder final int position holder text settext mname position holder itemview setonclicklisten new view onclicklistener override public void onclick view v log e click position override public int getitemcount return mname length dialog xml xml recycler item xml xml 1 |
materialcomponentsmaterialcomponentsandroid | textinputlayout hintenable set to false but hint top space be still claim | Bug | description set app hintenable false properly hide the hint but keep the top space where it would normally appear cause misalignment of component expect behavior the problem as see in the layout inspector mark be the mentioned claim space also from the ide preview with app hintenable false without app hintenable false the expect behavior would have be basically the second the without visual but without the animation and the hint source code android api version from 23 up to recent material library version 1 2 0 alpha5 device emulator pixel 3xl pixel 4xl samsung s9 s10 other |
materialcomponentsmaterialcomponentsandroid | textinputlayout app suffixtext add a line break | Bug | when a textinputlayout be add within a custom view and a suffixtext be add the input add a line break screenshot 1583516759 xml captura de pantalla 2020 03 06 a la s 11 55 48 android api version 29 material library version 1 2 0 alpha05 device motorola g8 plus |
materialcomponentsmaterialcomponentsandroid | extendedfloatingactionbutton shrink not work with motionlayout | Bug | th extendedfloatingactionbutton do t shrink when it s a child of a motionlayout I think because it update its size in the with layoutparam width size getwidth layoutparam height size getheight in changesizestrategy performnow which shouldn t be do like that when the layoutparam be a constraintlayout layoutparam |
materialcomponentsmaterialcomponentsandroid | textinputlayout accessibility touch target hight of error message doesn t adjust | Bug | description the touch target box hight of the error message doesn t adjust when support text with multiple line be convert to an error message please follow these step below set a support text that wrap up into multiple line turn on the talkback select the support text to check the touch target area will notice the touch target box will take the size of multiple text line next turn on the error state of the text input field by set a shot error message message fit into one line would do it I do it with a button action now select the error message it ll be notice that the touch target box hight of error message will still take the space of multiple line expect behavior the touch target box hight of the error message should adjust to fit the error message without any extra line space android api version android api version 28 material library version 1 1 0 device emulator pixel 3 |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior collapse expand threshold be different for nestedscrollview | Bug | description when drag a bottom sheet without fling it and then let go the expand collapse behavior be different base on if the user start the drag from within a nestedscrollview versus any other type of view when start a drag from outside of a nestedscrollview the bottomsheetbehavior appear to take the velocity of the pointer into account both horizontal and vertical when determine to expand or collapse if there be no vertical velocity or if there be more horizontal velocity than vertical then the bottom sheet will move to whichever of the expand or collapse position be close when start a drag from within a nestedscrollview the bottomsheetbehavior doesn t appear to take the pointer velocity into account all movement be treat as if the user be fling the view so any slight movement in the upward direction will expand the bottom sheet and any movement in the downward direction will collapse the bottom sheet expect behavior I be expect the expand collapse behavior to be the same between nestedscrollview view and other type of view the current behavior make user interaction within a nestedscrollview overly sensitive if a user swipe horizontally on a control within a nestedscrollview it may expand collapse the bottom sheet unexpectedly if there be any amount of upward or downward motion source code I post about this issue on stackoverflow sample code that illustrate this issue can be find there it look like it s this check in the onviewrelease method that result in the desire behavior which be not present in the onstopnestedscroll method l1345 l1347 android api version 28 material library version com google android material material 1 2 0 alpha04 device pixel |
materialcomponentsmaterialcomponentsandroid | navigationview isvisible do not completely hide show item | Bug | description I have a problem with the menu of a navigationview I want to hide menu item and re show they later e g login logout button but when set kotlin menu finditem r i d nav login isvisible isloggedin menu finditem r i d nav logout isvisible isloggedin the login item be get invisible instead of go and the logout item do not show up at all to get it work I need to click on an other item and this other item need to be in a group with android checkablebehavior single my login logout item be in a group with none expect behavior item set to invisible should be go and re appear when set to be visible again without the need of click on an item in a android checkablebehavior single group material library version 1 2 0 alpha04 |
materialcomponentsmaterialcomponentsandroid | floatingactionbutton fab do not move smoothly when snackbar appear | Bug | description floatingactionbutton twitch when snackbar appear untitled expect behavior expect smoothly move fab 2 source code floatingactionbutton fab findviewbyid r i d fab fab setonclicklistener new view onclicklistener override public void onclick view view snackbar make view replace with your own action snackbar length long setaction action null show android api version android api 23 and 24 material library version 1 1 0 device nexus 5x and samsung j7 |
materialcomponentsmaterialcomponentsandroid | textinputlayout onfocuschangelistener be only notify on first gain focus | Bug | description setting a onfocuschangelistener on the textinputedittext inside the textinputlayout notifie the listener only the very first time the focus be gain expect behavior the listener should always fire when focus be gain and lose source code kotlin textinputedittext setonfocuschangelistener hasfocus println only fire on first focus gain android api version 29 material library version 1 2 0 alpha04 device emulator |
materialcomponentsmaterialcomponentsandroid | bottomappbar replace menu while change fab alignment mode cause flicker | Bug | description if you change the fab alignment mode and replace the menu in the bottomappbar the item get replace 2 time it look like the icon be flicker expect behavior there should be a smooth transition of the item if they change the side in the bottomappbar also the animation should not be affect if in this time the menu item change source code controller addondestinationchangedlistener new navcontroller ondestinationchangedlistener override public void ondestinationchange nonnull navcontroller controller nonnull navdestination destination nullable bundle argument if destination getid r i d homefragment bottomappbar setnavigationicon r drawable ic menu bottomappbar setfabalignmentmode bottomappbar fab alignment mode center bottomappbar replacemenu r menu home fragment menu else bottomappbar setnavigationicon null bottomappbar setfabalignmentmode bottomappbar fab alignment mode end bottomappbar replacemenu r menu detail fragment menu android api version 29 material library version material android library version you be use here e g 1 2 0 alpha03 device pixel 3 emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | tablayoutmediator populatetabsfrompageradapter be call on every notify type in recyclerview adapter | Bug | description when you instantiate tablayoutmediator autorefresh true you register pagedataobserver that invoke populatetabsfrompageradapter on every type of notify notifydatasetchange notifyitemchanged int position and every time the method will remove all the tab and create a new one and triger onconfigurechange tablayout tab tab int position adapter getitemcount ask yourself what if I notify only one item or maybe remove one item why do we need to recreate the whole tablayout what if our adapter list have 100 and more item expect behavior I would expect if you call notifyitemchange int position that you call onconfigurechange to only that specific item or if you remove an item then remove that select tab not recreate the whole tablayout datum source code private class pageradapterobserver extend recyclerview adapterdataobserver pageradapterobserver override public void onchange populatetabsfrompageradapter override public void onitemrangechange int positionstart int itemcount populatetabsfrompageradapter override public void onitemrangechange int positionstart int itemcount nullable object payload populatetabsfrompageradapter override public void onitemrangeinserte int positionstart int itemcount populatetabsfrompageradapter override public void onitemrangeremove int positionstart int itemcount populatetabsfrompageradapter override public void onitemrangemove int fromposition int toposition int itemcount populatetabsfrompageradapter int positionstart int itemcount propose solution I would suggest implement case method updatetabfrompageadapter updatetabsrangepageadapter int positionstart int itemcount removetabsfrompageadapter int positionstart int itemcount etc there will be no need for attach and detach the tablayoutmediator when you call other type of notify in the adapter and also tablayout scrollto animation bug when tablayout be scrollable not fix material library version 1 2 0 alpha03 device on every device |
materialcomponentsmaterialcomponentsandroid | materialcardview stroke not correctly overlap corner | Bug | description when use materialcardview with a strokecolor and strokewidth set the render stroke do not fully overlap rounded corner expect behavior the stroke should correctly overlap all corner source code layout style android api version reproducible with api 29 to 21 material library version reproducible with 1 1 0 rc1 and 1 2 0 alpha03 device emulator and real device pixel 1 e g |
materialcomponentsmaterialcomponentsandroid | textinputlayout prefix not align correctly when phone font size be change | Bug | description the prefix horizontal alignment be not correct when the font size of the phone be change it seem to be a bit high from the text inside the textinputedittext expect behavior should be align correctly the textinputedittext android api version android 10 material library version 1 2 0 alpha01 device samsung galaxy s10 |
materialcomponentsmaterialcomponentsandroid | hidebottomviewonscrollbehaviour bottomview doesn t slide off or on when the main fragment can t scroll | Bug | description if you have a fragment whose content vary as to whether it s scrollable or not use the below xml for the bottomnavigationview it s possible to scroll off the bottomnavigationview when it have sufficient content to scroll then if the content change so it s no long scrollable the bottomnavigationview can t be scroll back on expect behavior bottomnavigationview should scroll off on screen for non scrollable content too source code look at in hidebottomviewonscrollbehavior java override public void onnestedscroll coordinatorlayout coordinatorlayout nonnull v child view target int dxconsume int dyconsume int dxunconsume int dyunconsume if dyconsume 0 slidedown child else if dyconsume 0 slideup child in the scenario where the content can t scroll dyconsume be 0 but dyunconsume be non 0 so I d propose change it to if dyconsume 0 slidedown child else if dyconsume 0 slideup child else if dyunconsume 0 slidedown child else if dyunconsume 0 slideup child android api version 28 material library version 1 1 0 beta01 device motorola one |
materialcomponentsmaterialcomponentsandroid | tablayout viewpager integration isn t effective | Bug | the current implementation of tablayout inside viewpager be bad I try use just icon in the tabitem in xml for an app and when my adapter get assign in the activity fragment the tab layout immediately dispose all the icon and show blank tab it internally try to set the view pager title but since none exist in the adapter it null they out to empty string ideally this should not happen l1473 l1479 and the tab should not be re create programmatically to text but rather it should reinflate the tab layout with the tab icon specify in the xml over pageradapter s implementation alternatively at least the developer should be allow to specify whether to take the pager adapter s title as tab with a start method call something like set a boolean property shouldtablayoutuseviewpagertitle to false should do the trick |
materialcomponentsmaterialcomponentsandroid | textinputedittext several issue with typeface in textinputedittext e g typeface be not apply with textpassword inputtype | Bug | description typeface be not apply with textpassword inputtype expect behavior when android inputtype text textpassword textnosuggestion incorrect behaviour screenshot 1568119309 when android inputtype text textnosuggestion expect behaviour screenshot 1568119497 source code android api version all material library version 1 0 0 device emulator |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior state half expand collapsingtoolbarlayout scrollflag scroll | Bug | description when bottomsheetbehavior be in state half expand and appbarlayout collapsingtoolbarlayout have layout scrollflag scroll the bottom sheet win t scroll up expand the bottom sheet view when recyclerview have reach its end when the collapsingtoolbarlayout have expand its content everything work fine if bottomsheetbehavior expand or peek height also recyclerview have not correct size at the end e g only 27 30 item would be possible to scroll up look like the recyclerview have the wrong size or be not full scroll up look like the recyclerview consume all scroll event because touch the expand collapsingtoolbarlayout view scroll the bottomsheetbehavior view successfully up expect behavior while the bottomsheetbehavior be in state half expand and the user scroll up the recyclerview should scroll the last item into visible view port and after that the bottom sheet should expand which it do unless there be a scroll flag set source code android api version 29 material library version com google android material material 1 1 0 alpha08 device samsung galaxy s9 |
materialcomponentsmaterialcomponentsandroid | appbarlayout statusbarforeground property cause visual glitch | Bug | description when we use this property I be try thing to have a beautiful scrim on the status bar it cause a visual glitch when scroll top and bottom basically the a scrim colored status bar that appear in the various place of the collapsingtoolbarlayout see this video for an easy explanation expect behavior the glitch doesn t appear source code see activity statusbarscrimbugactivity in this sample use the follow property app statusbarforeground color coloraccent android api version test on api 28 material library version 1 1 0 alpha08 device google pixel android 9 |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview bottom navigation view size | Bug | in order to try to keep consistency across device density I use small width folder for the bottomnavigationview I set a height of 56dp an itemiconsize of 24dp and a textsize of 12sp in order to test it I change the small width available in my device as I the sw size the bnb overlap the icon with the text seem like the parent view of each item be not resize accordingly as you can see from the screenshot with show layout bound enable while the icon and text size look I expect in the screenshot I m use sw360dp as a baseline bnb height 56dp icon 24dp text size 12sp sw480dp bnb height 74 67dp icon 32dp text size 16sp sw720dp bnb height 112dp icon 48dp text size 24sp be there anyway to access the design bottom navigation item to modify its layout param as by look a the screenshot seem like it have a fix height that cause the icon text overlaping or how can I avoid this bnb gh |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior findscrollingchild error with viewpager | Bug | we re transition from github issue to a public buganizer component rather than submit a bug here on github please file any bug or feature request at error link because of bottomsheetbehavior findscrollingchild if I use bottomsheetdialog with viewpager the second or more fragment can t scroll the solution in the link will create new behavior not extend bottomsheetbehavior which be not so elegant and will add new dialog or dialogfragment hope it will be solve |
materialcomponentsmaterialcomponentsandroid | bottomsheet fly away with visibility change when use animatelayoutchange | Bug | overview after a few research I find more devs with the same problem in this stackoverflow thread a guy from google suggest to use transitionmanager begindelayedtransition bottomsheet but the solution don t work as expect to simplify I have create a repository with the problem |
materialcomponentsmaterialcomponentsandroid | compliance | 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 minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app 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 | dialog icon isn t where the spec say | Bug | description accord to the spec anatomy and key property when a dialog have an icon it s at the top above the title however when we set an icon in a dialog we see the icon appear on the left of the title in english image look at the implementation the icon be in the title layout it s the first component inside a linear layout with horizontal orientation l69 so the code put it on the left in ltr language of the title image expect behavior the code and the spec match source code l69 minimal sample app repro n a android api version 30 material library version 1 11 0 device emulator cc eartle |
materialcomponentsmaterialcomponentsandroid | slider thumbheight not respect on some device | Bug | description on some device the thumbheight of the new slider be not respect image expect behavior on all my device and emulator it look correctly image source code the code snippet which be cause this issue android api version android 9 or 10 material library version 1 12b1 device huawei yal l21 I quickly check the code and can t figure out why it could happen the padding be force to 0 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | component name short description of issuedlg | 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 minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app 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 | materialcontainertransform illegalargumentexception the transition must support seek use fragment 1 7 0 beta01 | Bug | description illegalargumentexception when use materialcontainertransform in any project compile with fragment 1 7 0 beta01 1 7 0 beta01 fatal exception main process io material catalog pid 11196 java lang illegalargumentexception the transition must support seek at androidx transition transitionmanager controldelayedtransition transitionmanager java 512 at androidx transition fragmenttransitionsupport controldelayedtransition fragmenttransitionsupport java 249 at androidx fragment app defaultspecialeffectscontroller transitioneffect onstart 4 invoke defaultspecialeffectscontroller kt 769 at androidx fragment app defaultspecialeffectscontroller transitioneffect onstart 4 invoke defaultspecialeffectscontroller kt 767 at androidx fragment app defaultspecialeffectscontroller transitioneffect runtransition defaultspecialeffectscontroller kt 1044 at androidx fragment app defaultspecialeffectscontroller transitioneffect onstart defaultspecialeffectscontroller kt 767 at androidx fragment app specialeffectscontroller effect performstart specialeffectscontroller kt 817 at androidx fragment app specialeffectscontroller processstart specialeffectscontroller kt 426 at androidx fragment app specialeffectscontroller executependingoperation specialeffectscontroller kt 284 at androidx fragment app fragment 4 run fragment java 2924 at android os handler handlecallback handler java 959 at android os handler dispatchmessage handler java 100 at android os looper looponce looper java 232 at android os looper loop looper java 317 at android app activitythread main activitythread java 8501 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 552 at com android internal os zygoteinit main zygoteinit java 878 source code materialcontainertransform not return true in isseekingsupporte android api version 34 and up material library version 1 12 0 beta01 |
materialcomponentsmaterialcomponentsandroid | dynamiccolor override colorsurface with theme and contentbasedsource | Bug | description I be try to apply amole theme with a content base source use the follow code application kt kotlin override fun oncreate super oncreate val theme r style amole theme val resourcetheme resource newtheme resourcetheme applystyle theme true val blue resource getcolor r color blue resourcetheme val option dynamiccolorsoption builder setthemeoverlay theme setcontentbasedsource blue build dynamiccolor applytoactivitiesifavailable this option theme xml xml expect behavior attr colorsurface to be overridden by the amoled theme if do not use the setcontentbasedsource I e application kt kotlin override fun oncreate super oncreate val theme r style amole theme val option dynamiccolorsoption builder setthemeoverlay theme build dynamiccolor applytoactivitiesifavailable this option here the colorsurface be overridden |
materialcomponentsmaterialcomponentsandroid | dynamic color get custom color palette | Bug | be there any way to get programmatically custom color palette like at custom I would like to use with they in code image 1426 |
materialcomponentsmaterialcomponentsandroid | component name color | Bug | description all google app have a pink hue to they from what I could tell its relate to the material feature that this repository be for I try change my background multiple time to change the color but nothing happen this effect google calendar contact drive gmail etc expect behavior I would expect the app to change color base on the background minimal sample app repro see image screenshot 20240302 092549 calendar jpg google calendar most google app have the same color but it never change base on the wallpaper screenshot 20240302 092557 one ui home jpg current wallpaper android api version I don t know how to check material library version I don t know how to check device samsung s22 one ui 6 0 android 14 I apologize if this be the wrong place to report this I couldn t find where to go and this repository seem related to the issue |
materialcomponentsmaterialcomponentsandroid | bottomsheet corner style affect on material button inside the bottom sheet | Bug | description use extended style of widget material3 bottomsheet affect on shape of material button inside the bottom sheet see bellow image image when I use themeoverlay material3 bottomsheetdialog as parent style it doesn t affect on the shape of its child but this have some other issue expect behavior image source code and this be a button inside the bottom sheet for close button icon of bottom sheet android api version 30 material library version material android library version 1 11 0 |
materialcomponentsmaterialcomponentsandroid | slider inactive track part draw when it shouldn t anymore | Bug | description the inactive track part of slider doesn t respect trackinsidecornersize cause draw artefact to occur with the default trackinsidecornersize this translate to draw when it shouldn t anymore at its minimum size it look like the thumbtrackgapsize isn t respect but this be not actually the case when use a big trackinsidecornersize this bug become clearly visible expect behavior current behavior source code the code snippet which be cause this issue l2052 minimal sample app repro the current catalog app android api version android api 34 material library version 1 12 0 alpha03 device pixel 7 |
materialcomponentsmaterialcomponentsandroid | slider trackpath round corner draw a circle | Bug | description at the end of a track path a rounded corner be draw when the track path be at its mimimum size the rounded corner draw a circle instead it should use the trackinsidecornersize for the corner near the slider expect behavior current behaviour source code the code snippet which be cause this issue l2205 minimal sample app repro the current catalog app android api version android api 34 material library version 1 12 0 alpha03 device pixel 7 |
materialcomponentsmaterialcomponentsandroid | tablayout show some empty space at bottom when increase font size to large 200 in android 14 | Bug | description I ve observe that when change the font size to large in android 14 it s increase the tablayout height from 48dp to 60dp but its content mean tab be not cover the whole height and stick to 48dp which result in some empty space below tab however when I test the same behaviour with android 13 and old version it s not change even when change the font size to large I think there be some optimisation need to support the newly introduce font scale non linear font scale upto 200 in android 14 expect behavior current behaviour android api version 34 material library version 1 11 0 device pixel 6a emulator |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview crash after upgrade to 1 11 0 get start doc may need an upgrade | Bug | android api version 30 material library version 1 11 0 device android emulator I upgrade the material library to 1 11 0 and my app keep crash when launch and finally I figure out that in version 1 11 0 the background tint use a new attribute which be miss in the getting start my app use a appcompat theme then I add this attribute in the style xml there be no crash accord to this commit a few default value use new attribute maybe the getting start doc need an upgrade |
materialcomponentsmaterialcomponentsandroid | doc misspelling | Bug | description dynamiccolorsoption dynamiccolor s option expect behavior update the document |
materialcomponentsmaterialcomponentsandroid | slider leave side disappear too early | Bug | description start leave side of the slider disappear when handle even doesn t reach the end expect behavior it shouldn t disappear that way material library version 1 12 0 alpha03 screen record |
materialcomponentsmaterialcomponentsandroid | tablayout redundant talkback readout for tab with badge | Bug | description when utilize talkback with a tablayout contain active badge the current behavior result in redundant and unnecessary information be read the current behavior be as follow select title 1 new notification tab title 1 of 2 screenshot 20240109 165749 screenshot 20240109 165757 expect behavior the expect behavior be that talkback read the tab title only once without repeat source code tablayout xml definition apply the badge to the first tab bind tablayout gettabat 0 orcreatebadge apply number 1 isvisible true android api version 34 material library version com google android material material 1 11 0 device pixel 4xl pixel 8 pro emulator |
materialcomponentsmaterialcomponentsandroid | materialautocompletetextview when focus lose and regain the position of the filter item be not correct on the setonitemclicklistener | Bug | description 1 use android inputtype textautocomplete 2 set item with app simpleitem array country 3 select an item preferably not the first one 4 tap and start filtering do not select an item preferably leave non complete 5 tap somewhere else to lose focus no need to lose focus just the popup menu disappear enough 6 tap the materialautocompletetextview so that the list appear for selection 7 select an item and print the position 8 the position be not the original position on the non filter it be on the filter position expect behavior return the position from the non filter source code minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version version 30 material library version material 1 11 0 device emulator and physical device autocompletetextviewbug 1 tar gz |
materialcomponentsmaterialcomponentsandroid | materialalertdialogbuilder unsupportedoperationexception when upgrade from 1 10 0 to 1 11 0 | Bug | description instantiate a materialalertdialogbuilder crash after update from library version 1 10 0 to library version 1 11 0 I be able to reproduce this on an emulator run the system image with release name upsidedowncake api level 34 abi arm64 v8a target android 14 0 google play revision 12 this be the crash java lang unsupportedoperationexception fail to resolve attribute at index 4 typedvalue t 0x2 d 0x7f03013c a 8 theme inheritancemap i d 0x7f1305b8com redact evergreen app develop style redact dialog themeoverlay i d 0x7f1303e4com redact evergreen app develop style themeoverlay material3 materialalertdialog i d 0x7f13040dcom redact evergreen app develop style themeoverlay materialcomponent materialalertdialog i d 0x7f130095com redact evergreen app develop style base themeoverlay materialcomponent materialalertdialog i d 0x7f1300accom redact evergreen app develop style base v14 themeoverlay materialcomponent materialalertdialog i d 0x7f1303b6com redact evergreen app develop style themeoverlay appcompat dialog alert i d 0x7f13008acom redact evergreen app develop style base themeoverlay appcompat dialog alert i d 0x7f130089com redact evergreen app develop style base themeoverlay appcompat dialog i d 0x7f1300b6com redact evergreen app develop style base v21 themeoverlay appcompat dialog i d 0x7f1300cbcom redact evergreen app develop style base v7 themeoverlay appcompat dialog i d 0x7f130085com redact evergreen app develop style base themeoverlay appcompat i d 0x7f130239com redact evergreen app develop style platform themeoverlay appcompat theme com redact evergreen app develop style redact dialog themeoverlay force com redact evergreen app develop style theme redact standard force com redact evergreen app develop style theme appcompat empty force android style theme devicedefault light darkactionbar force at android content re typedarray getcolor typedarray java 529 at com google android material dialog materialalertdialogbuilder materialalertdialogbuilder java 131 expect behavior no crash as in library version 1 10 0 source code invocation materialalertdialogbuilder context 0 minimal sample app repro I have not attempt to reproduce outside of our primary project at this time android api version 34 material library version 1 11 0 device emulator see detail in description to help we triage fast please check to make sure you be use the late version of the library possibly relate though that specifically mention usage of a beta version of android u which I do not believe be the case for this issue |
materialcomponentsmaterialcomponentsandroid | rangeslider crash occur when assign a large value to valueto | Bug | description crash occur when assign a large value to valueto to reproduce set the value as follow valuefrom 1000 0 valueto 258896000 0 stepsize 1000 0 expect behavior source code the cause be the float point round error java private boolean valuelandsontick float value check that the value be a multiple of stepsize give the offset of valuefrom return ismultipleofstepsize value valuefrom minimal sample app repro android api version android api 33 material library version 1 9 0 device galaxy z flip4 |
materialcomponentsmaterialcomponentsandroid | crash on api 15 from shadowrenderer materialshapedrawable | Bug | description I m have an unsupportedoperationexception crash I m not sure where it originate from but the sample app be simple enough the crash doesn t occur on api 21 34 but do on api 15 I haven t test other version I m not sure if it be plan to continue support down to api 14 since the minsdk for 1 12 and up appear to be 19 I open a bug report anyway if it can help here s the stacktrace text e fatal exception main java lang unsupportedoperationexception at android view gles20canvas clippath gles20canvas java 413 at com google android material shadow shadowrenderer drawcornershadow shadowrenderer java 176 at com google android material shape shapepath arcshadowoperation draw shapepath java 430 at com google android material shape shapepath 1 draw shapepath java 263 at com google android material shape shapepath shadowcompatoperation draw shapepath java 368 at com google android material shape materialshapedrawable drawcompatshadow materialshapedrawable java 1099 at com google android material shape materialshapedrawable maybedrawcompatshadow materialshapedrawable java 978 at com google android material shape materialshapedrawable draw materialshapedrawable java 958 at android graphic drawable insetdrawable draw insetdrawable java 158 at android view view draw view java 10963 at android widget framelayout draw framelayout java 450 at android view view getdisplaylist view java 10417 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view getdisplaylist view java 10415 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view draw view java 10981 at android widget framelayout draw framelayout java 450 at androidx core widget nestedscrollview draw nestedscrollview java 2328 at android view view getdisplaylist view java 10417 at android view viewgroup drawchild viewgroup java 2850 at androidx coordinatorlayout widget coordinatorlayout drawchild coordinatorlayout java 1277 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view getdisplaylist view java 10415 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view draw view java 10981 at android widget framelayout draw framelayout java 450 at android view view getdisplaylist view java 10417 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view getdisplaylist view java 10415 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view getdisplaylist view java 10415 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view getdisplaylist view java 10415 at android view viewgroup drawchild viewgroup java 2850 at android view viewgroup dispatchdraw viewgroup java 2489 at android view view draw view java 10981 at android widget framelayout draw framelayout java 450 at com android internal policy impl phonewindow decorview draw phonewindow java 2126 at android view view getdisplaylist view java 10417 at android view hardwarerenderer glrenderer draw hardwarerenderer java 841 at android view viewrootimpl draw viewrootimpl java 1910 at android view viewrootimpl performtraversal viewrootimpl java 1634 at android view viewrootimpl handlemessage viewrootimpl java 2442 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 137 at android app activitythread main activitythread java 4424 at java lang reflect method invokenative native method at java lang reflect method invoke method java 511 at com android internal os zygoteinit methodandargscaller run zygoteinit java 784 at com android internal os zygoteinit main zygoteinit java 551 at dalvik system nativestart main native method minimal sample app repro build the demo app from the app should crash on startup on api 15 android api version 15 material library version 1 3 0 through 1 12 0 alpha02 device emulator api 15 |
materialcomponentsmaterialcomponentsandroid | progress indicator track be almost indistinguishable from the indicator when the monochrome theme be enable | Bug | material library version 701d5c2 android api version 34 |
materialcomponentsmaterialcomponentsandroid | surface color programmatically resolve surface container color break on api 31 33 | Bug | description hi I recently migrate a project s surface to use the new tone base surface color role from v1 11 0 this include set color programmatically instead of in the layout xml with the follow method java utility method public static int getcolorattr context context attrre int resid typedvalue typedvalue new typedvalue context gettheme resolveattribute resid typedvalue true return typedvalue datum example view setbackgroundcolor getcolorattr context r attr colorsurfacecontainer use the new color role in xml work perfectly but as soon as I resolve the attribute programmatically thing be get really weird and unexpected this be just the case with the new surfacecontainer color role all other attribute be behave normally on api 31 33 depend on deactivate or activate dark mode some of the new color role become transparent screenshot 20231225 184434 screenshot 20231225 184527 as I say with v1 11 0 this only affect theme with dynamic color apply on android 12 13 api 31 33 but when I downgrade to v1 10 0 this also affect android 14 I couldn t find any reason for this weird random behavior in the library but the system color palette be the same on all plattform version as the attribute and color role be fully library specific another weird observation the programmatically resolve color be not fully transparent 00000000 instead it s some transparent color like 000001b2 the first two zero be the alpha channel hope you can find the reason and a fix quickly expect behavior screenshot 20231225 191938 screenshot 20231225 191950 source code java override protect void oncreate nullable bundle savedinstancestate super oncreate savedinstancestate appcompatdelegate setdefaultnightmode appcompatdelegate mode night no or yes as visible in the screenshot dynamiccolor applytoactivityifavailable this bind activitymainbinding inflate getlayoutinflater setcontentview bind getroot bind view1 setbackgroundcolor getcolorattr this r attr colorsurfacecontainerlowest bind view2 setbackgroundcolor getcolorattr this r attr colorsurfacecontainerlow bind view3 setbackgroundcolor getcolorattr this r attr colorsurfacecontainer bind view4 setbackgroundcolor getcolorattr this r attr colorsurfacecontainerhigh bind view5 setbackgroundcolor getcolorattr this r attr colorsurfacecontainerhighest private static int getcolorattr context context attrre int resid typedvalue typedvalue new typedvalue context gettheme resolveattribute resid typedvalue true return typedvalue datum I ve attach a minimal sample repo with the tiny app from above to reproduce the issue down below minimal sample app repro test surface android api version 31 33 and 34 when use v1 10 0 material library version 1 10 0 1 11 0 not testable with old version as the color role be new device api 31 33 emulator and poco f3 android 13 with 1 10 0 also on pixel 6 android 14 |
materialcomponentsmaterialcomponentsandroid | textfield textinputlayout preview be break | Bug | description textinputlayout 1 11 0 preview be break text overflow start icon if padding be set on edittext size of it become wrap content this stuff be only on preview on real app screen everything seem ok expect behavior in 1 10 0 version image source code image minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version 34 material library version 1 11 0 device google pixel 7 34 api emulator |
materialcomponentsmaterialcomponentsandroid | appbarlayout flicker appbarlayout | Bug | material library version 1 12 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | appbarlayout render problem with android studio giraffe and hedgehog | Bug | description whenever appbarlayout be use with coordinatorlayout the preview render be fail cause it to not load the rest of the view or ui component java lang nosuchfielderror action scroll in direction at androidx core view accessibility accessibilitynodeinfocompat accessibilityactioncompat accessibilitynodeinfocompat java 748 at com google android material appbar appbarlayout basebehavior updateaccessibilityaction appbarlayout java 1846 at com google android material appbar appbarlayout basebehavior setheadertopbottomoffset appbarlayout java 2082 at com google android material appbar appbarlayout basebehavior setheadertopbottomoffset appbarlayout java 1458 at com google android material appbar headerbehavior setheadertopbottomoffset headerbehavior java 158 at com google android material appbar appbarlayout basebehavior onlayoutchild appbarlayout java 1792 at com google android material appbar appbarlayout behavior onlayoutchild appbarlayout java 1439 at com google android material appbar appbarlayout basebehavior onlayoutchild appbarlayout java 1458 at androidx coordinatorlayout widget coordinatorlayout onlayout original coordinatorlayout java 918 at androidx coordinatorlayout widget coordinatorlayout onlayout coordinatorlayout java at android view view layout original view java 23694 at android view view delegate layout view delegate java 91 at android view view layout view java 23680 at android view viewgroup layout viewgroup java 6413 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout original view java 23694 at android view view delegate layout view delegate java 91 at android view view layout view java 23680 at android view viewgroup layout viewgroup java 6413 at android widget relativelayout onlayout relativelayout java 1103 at android view view layout original view java 23694 at android view view delegate layout view delegate java 91 at android view view layout view java 23680 at android view viewgroup layout viewgroup java 6413 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout original view java 23694 at android view view delegate layout view delegate java 91 at android view view layout view java 23680 at android view viewgroup layout viewgroup java 6413 at com android layoutlib bridge impl rendersessionimpl inflate rendersessionimpl java 384 at com android layoutlib bridge bridge createsession bridge java 450 at com android tool idea layoutlib layoutlibrary createsession layoutlibrary java 122 at com android tool render rendertask createrendersession rendertask java 742 at com android tool render rendertask lambda inflate 7 rendertask java 889 at com android tool render renderexecutor runasyncactionwithtimeout 3 run renderexecutor kt 202 at com android tool render renderexecutor priorityrunnable run renderexecutor kt 316 at java base java util concurrent threadpoolexecutor runworker unknown source at java base java util concurrent threadpoolexecutor worker run unknown source at java base java lang thread run unknown source expect behavior it suppose to be look like this source code minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version 21 and above material library version 1 10 0 device n a |
materialcomponentsmaterialcomponentsandroid | release note break link | Bug | description be tonal surface color system 0abbf8b7 61e1 49ee 9f97 4967beb1e4fe a break link in expect behavior update the release note |
materialcomponentsmaterialcomponentsandroid | 0x23181f21dea5936e24163ffaba4ea3b316b57f3c | 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 minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app 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 | baseslider labelformatter regression with string value in 1 12 0 alpha01 | Bug | description app doesn t show any label crash when slide stack trace below use to work in previous version sample part of code final slider slider extensiontoast findviewbyid r i d extension slider final string period new string 1 day 1 week 1 month 1 2 year 1 year slider setlabelformatter value period int value stack trace java lang numberformatexception for input string my string here at jdk internal math floatingdecimal readjavaformatstre floatingdecimal java 2054 at jdk internal math floatingdecimal parsefloat floatingdecimal java 122 at java lang float parsefloat float java 455 at com google android material slider baseslider positionlabel baseslider java 2674 at com google android material slider baseslider setvalueforlabel baseslider java 2668 at com google android material slider baseslider ensurelabelsadde baseslider java 2655 at com google android material slider baseslider ondraw baseslider java 2017 android api version 33 material library version 1 12 0 alpha01 work correctly until version 1 11 0 rc01 |
materialcomponentsmaterialcomponentsandroid | topappbar regression in 1 12 0 alpha01 due to compress effect recent commit | Bug | since 1 12 0 alpha01 there be a regression where call getsupportactionbar hide on an action bar back by a materialtoolbar have app layout scrolleffect compress and set as first child of an appbarlayout will do nothing when this call be make and the toolbar be not visible because it be compress this mean that getsupportactionbar hide do nothing and the when undo the compress effect the toolbar will be visible instead of be hide it work in 1 11 0 beta01 and I believe this regression be cause by 2ac8c1cbf6cb5aea7d60ef5655bed7d014e5f930 it seem in that commit that a check be miss to not make child unconditionally visible |
materialcomponentsmaterialcomponentsandroid | doc search break link | Bug | description translucent status bar for an example of how to set this up in xml take a look at the search bar map demo search bar usage map be search bar map demo search bar usage map a break link expect behavior update the document |
materialcomponentsmaterialcomponentsandroid | materialtoolbar layout scrollflag not work when use layout behavior hidebottomviewonscrollbehavior | Bug | description use the typical view hierarchy from android s sample template materialtoolbar scroll flag be have conflict with bottomnavigationview behavior expect behavior be try to replicate this but they be use custom implementation of bottomnavigationview behavior and even though I use those solution the same issue happen 1 8f7qspiumgri6uacctt3q source code this layout be inside mainactivity app bar main xml with layout scrollflag add to collapse expand the toolbar during scroll content main xml inside fragmentcontainerview we have fragment and default one call homefragment which have viewpager2 with 3 child fragment all have recyclerview fragment home xml the code above result to these behavior 1 materialtoolbar s layout scrollflag no long work as scroll up and down do not collapse or expand the appbarlayout 2 bottomnavigationview expand mode be not properly display and too below the screen it can perform collapse but the expand already behave like collapse next attempt I do be to remove the app layout behavior string appbar scrolling view behavior attribute in content main xml the above change result to these behavior 1 materialtoolbar scroll flag still not work no expand or collapse 2 bottomnavigationview be now work properly it expand and collapse during scroll 3 appbarlayout overlap the content recyclerview android api version 21 and above material library version 1 10 0 device pixel emulator |
materialcomponentsmaterialcomponentsandroid | badgedrawable bug setbadgegravity be ignore as I want it to be top end | Bug | description full description of issue here I m try to have the badge show to the top end of the framelayout container but for some reason it keep be at the top start image expect behavior screenshot and or description of expect behavior to have the badge show on top end source code the code snippet which be cause this issue val itembinde actionviewverticalbinde inflate inflater bind framelayout false bind framelayout addview itembinde root itembinde actiontitletextview text text itembinde actionimageview setimageresource android r drawable ic dialog email val badgedrawable badgedrawable createfromresource context 0 badgedrawable number 2 badgedrawable badgegravity badgedrawable top end badgeutil attachbadgedrawable badgedrawable itembinde actionimageview itembinde badgecontainer minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app attach just run it android api version android api version here android api 34 material library version material android library version you be use here e g 1 1 0 alpha07 1 11 0 rc01 device device on which the bug be encounter here pixel 6 my application zip app debug zip |
materialcomponentsmaterialcomponentsandroid | bottomsheetscaffold sheet move to partiallyexpande when the content be update | Bug | description when the sheet be in hidden state and the sheet content be update sheet move to partiallyexpanded state the follow code define in anchorchangehandler define in material seem to map both hide partiallyexpande to expand kotlin val newtarget when previoustarget hide partiallyexpande partiallyexpande expand if newanchor containskey expand expand else partiallyexpande expect behavior sheet should retain its state I e should stay hide source code use bottomsheetscaffold with peek height supply like so kotlin sheetscaffold sheetstate scaffoldstate bottomsheetstate sheetpeekheight 120 dp sheetcontent update the content dynamically change the sheetcontent from a one paragraph text to say a 3 paragraph text the sheet will move to partially expand state android api version 33 material library version material3 1 1 2 device pixel 4 api 29 emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | outlinedcard default borderstroke use outline style instead of outlinevariant | Bug | description full description of issue here as per material spec 80df927a 2997 445d af10 6012db40c53c the default border color for should be outline variant the implementation use outlinedcardtokens outlinecolor tocolor which be way dark expect behavior screenshot and or description of expect behavior doc and impl should match source code the code snippet which be cause this issue outlinedcard modifier modifier weight 1f wrapcontentsize clickable enable onelementclick null onclick onelementclick invoke border borderstroke 1 dp materialtheme colorscheme outlinevariant android api version 34 material library version material android library version you be use here e g 1 1 0 alpha07 compose material 3 1 1 1 google material component com google android material material 1 9 0 can not update to the new version till hilt merge a fix they already have in head device pixel 6a |
materialcomponentsmaterialcomponentsandroid | slider slider with label formatter crash | Bug | description the slider with a label formatter crash java lang numberformatexception for input string 12 5k at sun misc floatingdecimal readjavaformatstre floatingdecimal java 2043 at sun misc floatingdecimal parsefloat floatingdecimal java 122 at java lang float parsefloat float java 451 at com google android material slider baseslider positionlabel baseslider java 2674 at com google android material slider baseslider setvalueforlabel baseslider java 2668 at com google android material slider baseslider ensurelabelsadde baseslider java 2655 at com google android material slider baseslider ondraw baseslider java 2017 expect behavior the slider with a label formatter doesn t crash minimal sample app repro catalog app sliderdiscretedemofragment android api version 34 material library version 1 12 0 alpha01 device emulator 32 1 15 api 32 |
materialcomponentsmaterialcomponentsandroid | catalog carousel catalog app can t be display in landscape orientation | Bug | description after the fullscreenstrategydemofragment be display once the catalog app can t be display in landscape orientation screenshot 20231111 175802 screenshot 20231111 175813 screenshot 20231111 175822 expect behavior after the fullscreenstrategydemofragment be display the catalog app can be display in landscape orientation screenshot 20231111 175802 screenshot 20231111 175813 screenshot 20231113 093741 minimal sample app repro catalog app android api version 34 material library version 1 11 0 beta01 device emulator 32 1 15 api 32 |
materialcomponentsmaterialcomponentsandroid | materialcheckbox buttontint attribute remove checkmark | Bug | description in every stable version since 1 6 1 the buttontint attribute change the background color of the checkbox as expect but also change the color of the checkmark so that the checkmark be not visible not expect expect behavior expect error source code I do not think the checkbox I m use have any special customization that could cause this android api version 33 material library version it work as expect on 1 6 1 but the error occur on every version after that device the result be the same on every simulator I try as well as my physical device a galaxy s9 |
materialcomponentsmaterialcomponentsandroid | appbarlayout app crash with unsupportedoperationexception and inflateexception | Bug | description I ve update material design from 1 11 0 alpha03 to 1 11 0 beta01 since then my app crash shortly after startup with below exception take from the pre launch report on google play console if I go back to 1 11 0 alpha03 the issue disappear so something have change in the late m3 version that cause now that issue the problem be that I can not debug the issue as only one test device on google play console be affect google redfin 64 bit only pixel 5 in combination with android 14 sdk 34 I can not reproduce the crash on another emulator run on my computer with the same api level or low to I it seem as if the system be look at startup for an particular attribute in a material theme in combination with appbar and as this attribute be not find the app crash do you have any idea where I could start to investigate exception java lang runtimeexception unable to start activity componentinfo ch patrickfrei myapp ch patrickfrei myapp mainactivity android view inflateexception binary xml file line 18 in ch patrickfrei myapp layout activity main binary xml file line 18 in ch patrickfrei myapp layout activity main error inflate class com google android material appbar appbarlayout at android app activitythread performlaunchactivity activitythread java 3781 at android app activitythread handlelaunchactivity activitythread java 3921 at android app servertransaction launchactivityitem execute launchactivityitem java 103 at android app servertransaction transactionexecutor executecallback transactionexecutor java 139 at android app servertransaction transactionexecutor execute transactionexecutor java 96 at android app activitythread h handlemessage activitythread java 2442 at android os handler dispatchmessage handler java 106 at android os looper looponce looper java 205 at android os looper loop looper java 294 at android app activitythread main activitythread java 8170 at java lang reflect method invoke at com android internal os runtimeinit methodandargscaller run runtimeinit java 552 at com android internal os zygoteinit main zygoteinit java 971 cause by android view inflateexception binary xml file line 18 in ch patrickfrei myapp layout activity main binary xml file line 18 in ch patrickfrei myapp layout activity main error inflate class com google android material appbar appbarlayout cause by android view inflateexception binary xml file line 18 in ch patrickfrei myapp layout activity main error inflate class com google android material appbar appbarlayout cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance0 at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 866 at android view layoutinflater createviewfromtag layoutinflater java 1018 at android view layoutinflater createviewfromtag layoutinflater java 973 at android view layoutinflater rinflate layoutinflater java 1135 at android view layoutinflater rinflatechildren layoutinflater java 1096 at android view layoutinflater inflate layoutinflater java 694 at android view layoutinflater inflate layoutinflater java 538 at android view layoutinflater inflate layoutinflater java 485 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 775 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 197 at ch patrickfrei myapp mainactivity initialize mainactivity java 159 at ch patrickfrei myapp mainactivity onrequestpermissionsresult mainactivity java 639 at ch patrickfrei myapp mainactivity checkpermission mainactivity java 613 at ch patrickfrei myapp mainactivity oncreate mainactivity java 122 at android app activity performcreate activity java 8595 at android app activity performcreate activity java 8573 at android app instrumentation callactivityoncreate instrumentation java 1456 at android app activitythread performlaunchactivity activitythread java 3763 at android app activitythread handlelaunchactivity activitythread java 3921 at android app servertransaction launchactivityitem execute launchactivityitem java 103 at android app servertransaction transactionexecutor executecallback transactionexecutor java 139 at android app servertransaction transactionexecutor execute transactionexecutor java 96 at android app activitythread h handlemessage activitythread java 2442 at android os handler dispatchmessage handler java 106 at android os looper looponce looper java 205 at android os looper loop looper java 294 at android app activitythread main activitythread java 8170 at java lang reflect method invoke at com android internal os runtimeinit methodandargscaller run runtimeinit java 552 at com android internal os zygoteinit main zygoteinit java 971 cause by java lang unsupportedoperationexception fail to resolve attribute at index 13 typedvalue t 0x2 d 0x7f04013c a 10 theme inheritancemap i d 0x7f1402e1ch patrickfrei myapp style themeoverlay material3 dynamiccolor light theme ch patrickfrei myapp style themeoverlay material3 dynamiccolor light force ch patrickfrei myapp style apptheme noactionbar force ch patrickfrei myapp style theme appcompat empty force android style theme devicedefault light darkactionbar force at android content re typedarray getdrawablefordensity typedarray java 1007 at android content re typedarray getdrawable typedarray java 991 at android view view view java 5706 at android view viewgroup viewgroup java 704 at android widget linearlayout linearlayout java 254 at android widget linearlayout linearlayout java 250 at com google android material appbar appbarlayout appbarlayout java 237 at com google android material appbar appbarlayout appbarlayout java 233 expect behavior no crash when move to 1 11 0 beta01 source code see above code android api version android api 14 material library version 1 11 0 beta01 device google redfin 64 bit only |
materialcomponentsmaterialcomponentsandroid | catalog slider slider label be not move with slider | Bug | description the slider label app labelbehavior visible be not move with the slider 2869 screenshot 20231106 175528 expect behavior the slider label be move with the slider screenshot 20231106 175601 minimal sample app repro catalog app sliderlabelbehaviordemofragment android api version 34 material library version 1 11 0 beta01 device emulator 32 1 15 api 32 |
materialcomponentsmaterialcomponentsandroid | materialtoolbar minheight not work when inside collapsingtoolbarlayout | Bug | description android height android minheight and other styling be not work the wrap content in materialtoolbar be not use minheight define in theme style if it be inside collapsingtoolbarlayout but this be not the case when materialtoolbar be a first child of appbarlayout where wrap content will use the define height and minheight from style expect behavior should no long need to define hardcode height since it be already define in theme style source code layout style theme usage this issue will cause toolbar to overlaps statusbar and scroll behavior be just like use regular scrollview with linearlayout note it look like materialtoolbar turn into a regular actionbar when inside collapsingtoolbarlayout android api version 21 material library version 1 10 0 device pixel c emulator |
materialcomponentsmaterialcomponentsandroid | slider slider label be not scroll with slider | Bug | description the slider label app labelbehavior visible be not scroll with the slider before screenshot 20231102 212702 after screenshot 20231102 212711 expect behavior the slider label be scroll with the slider minimal sample app repro catalog app sliderlabelbehaviordemofragment to scroll the slider I add the follow space to slider re layout cat slider demo label behavior android api version 34 material library version 1 11 0 beta01 device emulator 32 1 15 api 32 |
materialcomponentsmaterialcomponentsandroid | materialdivideritemdecoration divider appear instantly on insertion | Bug | description divider that be draw with materialdivideritemdecoration appear or disappear instantly when add or remove item from recyclerview while item get fade in or out smoothly respectively expect behavior divider that be draw with materialdivideritemdecoration appear or disappear smoothly with the same in or out fade as item when add or remove item from recyclerview source code regular code from docs kotlin val divider materialdivideritemdecoration context linearlayoutmanag vertical recyclerview additemdecoration divider minimal sample app repro android api version 29 material library version 1 11 0 device samsung galaxy s9 extra probably the fix should be somewhere here with set dividerdrawable alpha to child alpha l333 |
materialcomponentsmaterialcomponentsandroid | navigationdraweritem can t set navigationdraweritemcolor | Bug | description I don t know if this be the place to send issue for kotlin jetpack compose but I can t set color for navigationdraweritem in jetpack compose expect behavior this be what the documentation have image this be what I try image this be what error image android api version minimum android sdk 26 material library version androidx compose material3 material3 1 2 0 alpha10 |
materialcomponentsmaterialcomponentsandroid | datepicker add option to pass optional locale | Bug | be your feature request relate to a problem please describe when the material date picker dialog be show it use phone s default locale which might not be correct for app with different language describe the solution you d like have an optional parameter on datepicker composable or datepickerstate that would allow passing of a desire locale describe alternative you ve consider the only other solution I ve come across be set app wide locale which seem as a not so great workaround even while do so the year dropdown menu title and headline seem to stay in the default language additional context see provide screenshot where locale change only affect the name of day but not the default title and headline or year dropdown menu |
materialcomponentsmaterialcomponentsandroid | other break activity transition after upgrade to 1 10 0 | Bug | description activity transition be break after upgrade google material from 1 9 0 to 1 10 0 restart the app do not help to fix the issue restart the phone or downgrade to 1 9 fix the problem expect behavior after update the transition should remain intact source code theme theme materialcomponent daynight noactionbar bridge override fun startactivity intent intent super startactivity intent overridependingtransition r anim slide in left r anim slide out leave override fun finish super finish overridependingtransition r anim slide in right r anim slide out right minimal sample app repro branch master have com google android material material 1 9 0 branch maintenance upgrade google material to 1 10 0 have com google android material material 1 10 0 android api version api 28 api 34 material library version com google android material material 1 10 0 device huawei p10 api 28 pixel 6 api 34 emulator api28 api34 |
materialcomponentsmaterialcomponentsandroid | carousel carousel crash if it s too small | Bug | how to reproduce set the width of the horizontal carousel to 1 dp stacktrace java lang illegalargumentexception keyline before the first focal keyline must be order by incremente mask item size at com google android material carousel keylinestate builder addkeyline keylinestate java 282 at com google android material carousel keylinestate builder addkeyline keylinestate java 231 at com google android material carousel carouselstrategyhelper createleftalignedkeylinestate carouselstrategyhelper java 96 at com google android material carousel multibrowsecarouselstrategy onfirstchildmeasuredwithmargin multibrowsecarouselstrategy java 140 at com google android material carousel carousellayoutmanager onlayoutchildren carousellayoutmanager java 191 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4309 at androidx recyclerview widget recyclerview dispatchlayout recyclerview java 4012 at androidx recyclerview widget recyclerview onlayout recyclerview java 4578 material library version 1 10 0 |
materialcomponentsmaterialcomponentsandroid | carousel crash on arrangement null reference | Bug | description I have list of image display in carousel once navigate to a setting fragment and comme back to main carousel my app crash when I look at stacktrace I get after onresume callback app crash I be hopelessly search on how to use savedstatehandle to fix this and find I absolutely do not understand this code but it be odd to my eye image 2023 10 15 23 07 55 expect behavior carousel page should resume and show image from where it be before navigation action source code fragment carousel xml carouselfragment kt nav graph xml but remove these two to reproduce the issue xml app launchsingletop true app popupto i d nav graph minimal sample app repro android api version 33 material library version recycler view 1 3 1 m3 1 10 0 nav 2 7 4 device redmi note 11 miui android 12 redmi note 9 pro android 13 custom rom |
materialcomponentsmaterialcomponentsandroid | time picker can not change the size of the timeselectorlabeltextfont | Bug | description can not change the size of the timeselectorlabeltextfont timeselectorlabeltextfont by default take the font size as displaylarge expect behavior allow text styling for clockdisplaynumber and time picker content source code the code snippet which be cause this issue in package androidx compose material3 timepicker the clockdisplaynumber function compositionlocalprovider localtextstyle provide materialtheme typography fromtoken timeselectorlabeltextfont android api version 31 material library version 1 1 0 device pixel 4 api 31 emulator |
materialcomponentsmaterialcomponentsandroid | carousel the last item can not be fully expand feat hero carousel with center align item | Bug | material library version cbb380d device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | materialcomponentsandroid materialdatepicker incorrect behaviour on samsung device | Bug | on samsung galaxy s9 api30 date picker component from demo application behave totally incorrectly system information system1 system2 text input work completely incorrectly not apply text format and treat hint as simple text video of incorrect work attach |
materialcomponentsmaterialcomponentsandroid | color unable to override surface color | Bug | description unable to override the background color for appbar and bottomnavigationbar colorsurfacecontainer I ve not test if this issue exist with other color constant expect behavior color should be overridden base on what be specify in xml source code xml minimal sample app repro na android api version api 34 material library version 1 11 0 alpha03 device pixel 6 api 34 |
materialcomponentsmaterialcomponentsandroid | tablayout tooltip value get reset to text value | Bug | description despite set the value of the tooltip it get reset to the text value when the tab be select expect behavior the tooltip should still show the value set programmatically source code I m use the tablayoutmediator to change my tooltip text while this work at first the tooltip get reset when the tab be select java new tablayoutmediator day timetable tab position tab settext daystring position substre 0 1 view day tab view tooltipcompat settooltiptext day daystring position day setcontentdescription daystring position attach minimal sample app repro na android api version api 34 material library version 1 11 0 alpha03 device pixel 6 api 34 |
materialcomponentsmaterialcomponentsandroid | catalog navigation drawer after restart activity and push back button open navigation drawer will not be close but activity will be close | Bug | 3593 description after restart the activity e g rotate the device and push the back button the open navigation drawer will not be close but the activity will be close screenshot 20230930 154601 expect behavior after restart the activity and push the back button the activity will not be close but the open navigation drawer will be close we don t have to use the onbackpressedcallback if the drawerlayout itself use the onbackpressedcallback minimal sample app repro catalog app navigationdrawerdemoactivity android api version 34 material library version 1 11 0 alpha03 device emulator 32 1 15 api 32 33 and 34 |
materialcomponentsmaterialcomponentsandroid | button visual feedback be poorly visible on api 33 | Bug | material library version 1 11 0 alpha03 device pixel 4a 5 g android api version 13 build tq3a 230901 001 |
materialcomponentsmaterialcomponentsandroid | button double ripple | Bug | this issue be a duplicate of but I have to reopen it because it s still not resolve and this bug be quite serious as it affect all material button on device run api 30 and below material library version 1 11 0 alpha03 device api 23 emulator |
materialcomponentsmaterialcomponentsandroid | topappbar compress effect not properly work on api level 24 | Bug | description I ve see that the compress effect of the m3 catalog example top app bar compress effect demo topappbarcompresseffectfragment be not properly work on device with api level 24 the problem occur in case tab be use when scroll up the app bar title be be compress and disappear as intend however as soon as the tab be start to get hide the app bar title reappear and overlap with the tab icon and text expect behavior the compress effect also work as intend on api level 24 I e the app bar title and tab text icon do not overlap when scroll up down source code minimal sample app repro see m3 catalog example top app bar compress effect demo android api version api 23 22 21 16 material library version 1 11 0 alpha03 and low device various pixel 5 emulator |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment background not dim on android 14 beta | Bug | description the bottomsheetdialogfragment be not dim the background as expect when it be display on device run android 14 beta the content below the bottomsheetdialogfragment remain fully visible without any dim effect this differ from the expected behavior observe on android 13 where the background be dim correctly emphasize the focus on the bottom sheet expect behavior the background content below the bottomsheetdialogfragment should exhibit a dim effect to emphasize the bottom sheet and de emphasize the background content this behavior be observe and expect on android 13 however on android 14 beta the background remain undimmed cause inconsistency in user experience across different android version source code class simplebottomsheetfragment bottomsheetdialogfragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view return inflater inflate r layout fragment simple bottom sheet container false companion object fun show fragmentmanager fragmentmanager val bottomsheetfragment simplebottomsheetfragment bottomsheetfragment show fragmentmanager bottomsheetfragment tag class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontent content onclick simplebottomsheetfragment show supportfragmentmanager composable private fun content onclick unit bottomsheetdialogdimmingissuetheme val text string getosversion surface modifier modifier fillmaxsize color materialtheme colorscheme background column modifier modifier fillmaxsize horizontalalignment alignment centerhorizontally verticalarrangement arrangement center text modifier modifier padding bottom 16 dp text text button onclick onclick text show bottom sheet fun getosversion string return android sdk build version sdk int release build version release android api version the issue be observe on android 14 beta and be not present on android 13 material library version 1 9 0 device test on emulator run android 14 beta bottomsheetdialogdimmingissue zip |
materialcomponentsmaterialcomponentsandroid | carousel an uncontained carousel can not be scroll to the end if there be few item in it | Bug | material library version 1 11 0 alpha03 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | carousel the last item can not be fully expand if there be few item in the carousel than keyline | Bug | material library version 1 11 0 alpha03 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | appbarlayout get tonal surface color for status bar | Bug | description I ve update my app to material 1 11 0 alpha03 in mainactivity I m already use the tonal surface color system to dynamically change the color of the status bar as follow if android os build version sdk int 29 appbarlayout appbarlayout findviewbyid r i d appbar appbarlayout setstatusbarforegroundcolor com google android material color materialcolor getcolor appbarlayout r attr colorsurface in addition my app contain some activity e g an aboutactivity where I m still use the surface color approach base on an elevation value as show in below code in these activity I d also like to switch to the tonal surface color system however I m unable to figure out how to get the color from the action bar in order to apply it to the status bar in addition below approach result in slightly different color apply to status and app bar on 1 11 0 alpha03 do you have an advice for I in this regard public class aboutactivity extend appcompatactivity override protect void oncreate bundle savedinstancestate super oncreate savedinstancestate setupactionbar setupstatusbar setcontentview r layout about activity private void setupstatusbar if android os build version sdk int 29 window window getwindow int color surfacecolor surface 2 getcolor aboutactivity this window setstatusbarcolor color private void setupactionbar actionbar actionbar this getsupportactionbar if actionbar null set background color prior api 21 as that doesn t work automatically if android os build version sdk int 22 int color surfacecolor surface 2 getcolor aboutactivity this colordrawable colordrawable new colordrawable color actionbar setbackgrounddrawable colordrawable source code see above android api version 29 34 material library version 1 11 0 alpha03 device various pixel 5 emulator |
materialcomponentsmaterialcomponentsandroid | materialdatepicker save button content description be hardcode | Bug | description I m use a materialdatepicker on which I use setpositivebuttontext to change the text of the save button the text I set do visually display however talkback still read out save I can see that this be because of this line l92c29 l92c29 where the content description be set in xml but be not update accordingly where the button text be set in java expect behavior talkback should read out the text that have be set in setpositivebuttontext source code l92c29 l92c29 l300c1 l304c6 android api version test on 34 but presumably all material library version 1 10 0 beta01 device test on pixel 4 but presumably all |
materialcomponentsmaterialcomponentsandroid | searchview predictive back searchview will not detach from screen edge after restart activity | Bug | 3575 description the searchview will not detach from the screen edge after restart the activity e g after rotate the device 3f2d4e47 2cf5 4c33 b6e1 5368ceaade55 predictive back expect behavior the searchview will detach from the screen edge after restart the activity e g after rotate the device minimal sample app repro catalog app searchmaindemoactivity and searchrecyclerdemoactivity android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 15 api 34 |
materialcomponentsmaterialcomponentsandroid | navigationdrawer predictive back navigationdrawer will not detach from screen edge after restart activity | Bug | 3575 description the navigationdrawer will not detach from the screen edge after restart the activity e g after rotate the device d77245e3 1013 48f8 a9d7 76f484e1be13 predictive back expect behavior the navigationdrawer will detach from the screen edge after restart the activity e g after rotate the device minimal sample app repro catalog app navigationdrawerdemoactivity and customnavigationdrawerdemoactivity android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 15 api 34 |
materialcomponentsmaterialcomponentsandroid | carousel item doesn t expand fully in a carousel with center align item with only 2 item | Bug | material library version 1 11 0 alpha02 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | appbarlayout status bar color not change dynamically on api level 33 | Bug | description in my app I m use appbarlayout incl materialtoolbar and tablayout and a viewpager2 incl a recyclerview list I m dynamically change the color of the status bar when the user be scroll up and down the list and I m use a compress effect for the toolbar in order to dynamically change the status bar color I m use setstatusbarforeground together with createwithelevationoverlay see below screenshot code snippet and the follow complete code example during the testing of my app I ve realize that the color of the status bar doesn t dynamically change on api level 33 on all the other api level as of api level 29 the same code be work as expect in the example app when scroll up and down the list the color of the status bar change between white and light grey use api 29 32 34 but it keep to be white all the time when use api level 33 expect behavior the color of the status bar should change dynamically when scroll up and down the list on all api level as of 29 source code code of mainactivity java in accordance with the m3 documentation either use appbarlayout appbarlayout findviewbyid r i d appbar appbarlayout setstatusbarforeground materialshapedrawable createwithelevationoverlay mainactivity this or appbarlayout appbarlayout findviewbyid r i d appbar appbarlayout setstatusbarforegroundcolor com google android material color materialcolor getcolor appbarlayout r attr colorsurface to reproduce the issue minimal sample app repro android api version android api 29 34 material library version test on 1 10 0 beta01 1 11 0 alpha02 1 11 0 alpha02 incl the very late code change fork device test on various pixel emulator various samsung and nokia device screenshot this be how the status bar look like on api level 33 screenshot 1694880955 |
materialcomponentsmaterialcomponentsandroid | textinputlayout the label overlap the text | Bug | actual result expect result material library version 1 11 0 alpha02 android api version 19 |
materialcomponentsmaterialcomponentsandroid | carousel a single item be incorrectly display in rtl mode | Bug | material library version 1 11 0 alpha02 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | carousel part of the next item be visible when fullscreencarouselstrategy be set | Bug | material library version 1 11 0 alpha02 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | catalog bottomsheet mismatch between bottom sheet state and display | Bug | description the expand bottom sheet be still expand after restart the activity e g after rotate the device but the display be state collapse before restart activity screenshot 20230914 153718 after restart activity screenshot 20230914 153728 expect behavior the expand bottom sheet be collapse or the display be state expand after restart the activity e g after rotate the device minimal sample app repro catalog app android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 15 api 34 |
materialcomponentsmaterialcomponentsandroid | catalog bottomappbar bottomsheet navigationdrawer searchview sidesheet predictive back state mismatch between bottom sheet and back callback after restart activity | Bug | description the expand bottom sheet be still expand after restart the activity e g after rotate the device but the back callback be disabled and the bottom sheet will not detach from the left and right edge of the screen 3d7735e2 73ea 4f3e bd42 e70161fc1085 similar thing be happen in other demos bottomsheetmaindemofragment navigationdrawerdemoactivity customnavigationdrawerdemoactivity searchmaindemoactivity searchrecyclerdemoactivity and sidesheetmaindemofragment as well before restart activity screenshot 20230913 171952 after restart activity screenshot 20230913 172001 expect behavior the expand bottom sheet be hide or the back callback be enable after restart the activity e g after rotate the device minimal sample app repro catalog app android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 15 api 34 |
materialcomponentsmaterialcomponentsandroid | catalog bottomappbar bottomsheet predictive back when bottom sheet be collapse it will not detach from left and right edge of screen | Bug | description when the bottom sheet be collapse the back callback be disabled and the bottom sheet will not detach from the left and right edge of the screen 3d7735e2 73ea 4f3e bd42 e70161fc1085 standard non modal bottom sheet screenshot 20230913 172011 expect behavior when the bottom sheet be collapse the back callback be enable and the bottom sheet will detach from the left and right edge of the screen minimal sample app repro catalog app android api version 34 material library version 1 11 0 alpha02 device emulator 32 1 15 api 34 |
materialcomponentsmaterialcomponentsandroid | topappbar back button different color than overflow menu icon | Bug | description the back button be color with coloronsurface and the right icon be color with coloronsurfacevariant expect behavior screenshot and or description of expect behavior the material spec be also not clear the docs state the color should differ why though but on the picture they be equal m3 doc 14e23895 ac2e 40d8 b0f7 8d016c10a225 source code composable private fun appbarwithbackbutton onbackclicke unit onmarkallusernotificationsasreadselecte unit topappbar title text text my title navigationicon iconbutton onclick onbackclicke icon imagevector icon default arrowback contentdescription null action if onmarkallusernotificationsasreadselecte null dropdownmenu onmarkallusernotificationsasreadselecte composable private fun dropdownmenu onmarkallusernotificationsasreadselecte unit var showmenu by remembersaveable mutablestateof false iconbutton to open the menu iconbutton onclick showmenu true icon icon fill morevert contentdescription null dropdownmenu expand showmenu ondismissrequest showmenu false dropdownmenuitem onclick showmenu false onmarkallusernotificationsasreadselecte text text blabla minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version 33 material library version com google android material material 1 9 0 device emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | materialcheckbox accessibility info contain only english state description | Bug | description accessibility info contain only english state description expect behavior state description be either use from platform or be translate to other language or be possible to provide own source code super setstatedescription getbuttonstatedescription android api version 33 material library version 1 8 0 1 9 0 I have the device set to polish language and when I use appcompatcheckbox it read state change properly in that language but when use materialcheckbox default when not specify appcompat explicitly it read sate change only in english not I try to inherit from materialcheckbox and in accessibility info I set info statedescription null it start to read state in device language somehow and it read differently from appcompat |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview backgroundtint not work for white | Bug | description white I e ffffff be ignore when set the background tint in xml other color work as expect expect behavior the item background color be work as expect but the container background color be not when draw behind the gesture navigtation source code this get ignore but here it be set as blue I e 000fff android api version android 13 android 14 material library version 1 9 0 device pixel 4 pixel 7 pro galaxy s21 |
materialcomponentsmaterialcomponentsandroid | carousel the first element be not fully display in the uncontained carousel rtl | Bug | material library version 1 10 0 alpha02 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | catalog carousel crash in rtl mode | Bug | how to reproduce enable rtl mode on your device open multibrowsecarouseldemofragment also reproducible on herocarouseldemofragment and uncontainedcarouseldemofragment swipe the carousel to the right and wait for it to stop stacktrace java lang illegalstateexception slider value 8 0 must be great or equal to valuefrom 1 0 and low or equal to valueto 10 0 at com google android material slider baseslider validatevalue baseslider java 575 at com google android material slider baseslider validateconfigurationifdirty baseslider java 628 at com google android material slider baseslider ondraw baseslider java 1771 at android view view draw view java 23266 at android view view updatedisplaylistifdirty view java 22133 material library version 4e995d1 |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment doesn t have scrim background | Bug | description bottomsheetdialogfragment and alertdialogs don t have scrim background when they appear I also try same logic use compose composable modalbottomsheet have scrim while alertdialog have not expect behavior both bottomsheet and alertdialog should have scrim when they appear source code private fun appcompatactivity showalert alertdialog builder this settitle alert title setmessage alert message setpositivebutton ok setnegativebutton cancel show private fun appcompatactivity showbottomsheet bottomsheetdialogfragment r layout fr bottom sheet show supportfragmentmanager bottomsheetdialogfragment minimal sample app repro github sample android api version 34 material library version 1 11 0 alpha02 device pixel 2 emulator |
materialcomponentsmaterialcomponentsandroid | alertdialog materialalertdialog have wrong title textsize | Bug | description materialalertdialog have small text size than specify in m3 documentation telegram cloud photo size 2 5420222584542317162 y expect behavior title expect to have 24sp text size but actually it be 18 2sp layoutinspector refer to value v21 xml where I don t see 18sp text size in this file it be also 24sp source code kotlin override fun oncreatedialog savedinstancestate bundle dialog return materialalertdialogbuilder requirecontext apply settitle argument getstre key title setmessage argument getstre key message setpositivebutton dismiss setnegativebutton dismiss create in app theme I do not override dialog theme it default android api version api 33 material library version 1 8 0 1 9 0 1 10 0 alpha06 1 11 0 alpha02 device xiaomi 13 I also notice that dialog from 1 11 0 aplha02 have different background color than on 1 10 0 alpha06 and below screenshot at the top of this issue be take with material 1 11 0 aplha02 background color have purplish tint but the primary color of theme be a blue 007aff dialog with material 1 10 0 alpha06 have correct as I think bluish color as I know dialog background color should be surface elevation overlay but seem on late version it be not correct telegram cloud photo size 2 5420222584542317199 y |
materialcomponentsmaterialcomponentsandroid | bottomsheet sheet corner animation be break on api s device with rounded corner | Bug | material library version 1 11 0 alpha02 device pixel 4a 5 g |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.