repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity
Bug
log text process name cc client thread name main back trace start java lang runtimeexception unable to start activity componentinfo cc client cc client ui splash splashactivity java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at android app activitythread performlaunchactivity activitythread java 3782 at android app activitythread handlelaunchactivity activitythread java 3961 at android app servertransaction launchactivityitem execute launchactivityitem java 91 at android app servertransaction transactionexecutor executecallback transactionexecutor java 149 at android app servertransaction transactionexecutor execute transactionexecutor java 103 at android app activitythread h handlemessage activitythread java 2386 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 213 at android app activitythread main activitythread java 8178 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 513 at com android internal os zygoteinit main zygoteinit java 1101 cause by java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at androidx appcompat app appcompatdelegateimpl createsubdecor appcompatdelegateimpl java 843 at androidx appcompat app appcompatdelegateimpl ensuresubdecor appcompatdelegateimpl java 806 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 693 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 170 at androidx databinde databindingutil setcontentview databindingutil java 303 at androidx databinde databindingutil setcontentview databindingutil java 284 at com android base vm baseactivity oncreate baseactivity java 46 at cc client ui splash splashactivity oncreate splashactivity java 61 at android app activity performcreate activity java 8086 at android app activity performcreate activity java 8074 at android app instrumentation callactivityoncreate instrumentation java 1313 at android app activitythread performlaunchactivity activitythread java 3755 11 more back trace end description my splashactivity use this splashtheme theme xml value v21 xml value v28 xml on the other hand my colleague use this theme on other activity in a module xml android api version 10 material library version 1 3 0 device honor hry al00a I wonder if we be use different theme result in this exception I think so but I can not persuade my colleague to use theme appcompat could you please explain this for I
materialcomponentsmaterialcomponentsandroid
motionlayout not find
Bug
description I use the 1 3 0 alpha01 I want to fix the bug so I update to the late version but I start to crash the app due to an error java lang runtimeexception unable to resume activity com app peshkariki com app peshkariki newpesh newtwoauth newtwoauthactivity java lang nullpointerexception attempt to read from field int androidx constraintlayout motion widget p b e on a null object reference by trial and error I determine that the last version on which the application do not crash due to an error be 1 3 0 alpha02 expect behavior bug fix source code fragment class startscreenfragment fragment private lateinit var viewmodel startscreenviewmodel private lateinit var layout motionlayout override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle view return inflater inflate r layout fr start container false override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate layout view findviewbyid r i d layout viewmodel viewmodelprovider this get startscreenviewmodel class java initviewmodel override fun onresume super onresume viewmodel start private fun initviewmodel viewmodel state observe viewlifecycleowner when it be startscreenstate start animation layout settransition r i d invisibleall r i d visibleonlylogo layout settransitionduration 1000 layout transitiontoend log d state start animation be startscreenstate loading viewmodel class startscreenviewmodel viewmodel private val state mutablelivedata val state livedata get state fun start state value startscreenstate start animation viewmodelscope launch dispatcher io delay 1000 xml motionscene android api version 9 0 material library version 1 3 0 alpha03 1 4 0 beta01 device xiaomi redmi 7 I cut out all the extra stuff and put it in the repository but this way another error come out but with motionlayout int androidx constraintlayout motion widget motionscene transition mdefaultinterpolator repository
materialcomponentsmaterialcomponentsandroid
material button materialbutton break german letter
Bug
description when use the standard theme button text get capitalize when set follow text via android text schlie en it display image expect behavior display schlie en or maybe even the correct capital form schlie en source code xml android api version 29 material library version material 1 3 0 device pixel 5
materialcomponentsmaterialcomponentsandroid
materialtoobar app navigationicontint apply the tint to the drawable resource globally without call mutate
Bug
I have a vector drawable resource with default color black it will be use sometimes with its default color without tint sometimes with various tint after be use in a materialtoobar with a tint its default color be change to the tint for materialtoobar after look into the source code it seem that method maybetintnavigationicon directly apply the tint to the drawable create from the resource without call mutate to make sure it win t affect other who re use the same resource
materialcomponentsmaterialcomponentsandroid
tablayout tab text color don t change when use custom tab in tablayout
Bug
description when use custom layout in tab if we set color it do not change color of custom tab text tablayout settabtextcolor color parsecolor ff0000 color parsecolor 00ff00 expect behavior color should change when tab get switch source code tablayout initialization tablayoutmediator tablayout vp tab tablayout tab I int tab customview this layoutinflat inflate r layout tab custom null false tab text tab I attach tablayout settabtextcolor color parsecolor ff0000 color parsecolor 00ff00 tab custom view layout current behaviour expect behaviour android api version 30 material library version 1 3 0 on late library also device all device
materialcomponentsmaterialcomponentsandroid
coordinatorlayout coordinatorlayout leave empty blank space at bottom of the screen
Bug
if second recyclerview rvbottomdisplay contain more item then blank space be not show if recyclerview contain 1 or 2 item then blank space be show kindly advice I to fix this thank
materialcomponentsmaterialcomponentsandroid
materialtimepicker time input cause the dialog to expand full width
Bug
switch from time picker to time input change the width of the dialog fragment to full width switch back to time picker it resize the dialog fragment back expect behavior the time input shouldn t resize the dialog fragment impl video android api version defaultcompilesdkversion 29 defaultbuildtoolsversion 29 0 2 defaultminsdkversion 26 defaulttargetsdkversion 29 material library version material version 1 3 0 device tablet pixel c os 8 1
materialcomponentsmaterialcomponentsandroid
textinputlayout letter spacing of child textinputedittext be not respect when render expand hint
Bug
description textinputlayout doesn t respect the letter space of it s child textinputedittext when render the hint in the expand state however other attribute such as android textsize and android typeface be respect current behavior text size and no letter space source code xml android api version 25 7 1 1 nougat material library version 1 3 0 device motorola moto g4 play
materialcomponentsmaterialcomponentsandroid
slider can not set step size when valueto be a prime number valuefrom 0
Bug
description I be not able to set a stepsize other than 1 when valueto 0 and valuefrom prime number expect behavior must be able to set some step regardless of valueto and valuefrom for e g when valuefrom 0 and valueto 17 I must be able to set a region where I can select value for e g step size should be able to be set to 5 and I should be able to scroll from 0 to 15 and beyond 17 I shouldn t be able to scroll source code bind slider apply valueto 17f valuefrom 0f stepsize 10f android api version android api version here all androd material library version material 1 3 0 device pixel 3a but be on all the device to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomsheet ignore bottomsheetstyle and backgroundtint if shapeappearance isn t set on tag
Bug
description consider this xml and bottomsheetstyle be set in theme xml let s assume it set a shapeappearanceoverlay unless app shapeappearance style shapeappearance todoist materialalertdialog be set in the tag above the shapeappearanceoverlay in the bottomsheetstyle and backgroundtint attribute be ignore expect behavior backgroundtint and bottomsheetstyle should not be ignore I guess even if it doesn t make sense to use bottomsheetstyle to build a shapeappearancemodel without a shapeappearance specify the backgroundtint shouldn t be ignore another thing be that even if backgroundtint isn t specify I believe if colorbackground be define in the theme it be also not currently respect unless a shapeappearance be specify material library version 1 3 0 device google pixel to help we triage fast please check to make sure you be use the late version of the library I m not use 1 4 0 alpha but I see that this code be the same as 1 3 0 l1325 we also happily accept pull request I would gladly take that if block outside of the if this shapethemingenabled block and submit a pr if anyone agree that at the very least the backgroundtint colorbackground should be apply regardless of whether a shapeappearance be specify or not
materialcomponentsmaterialcomponentsandroid
datepicker materialcalendargridview crash on select a date range across two month second month with 6 week
Bug
select a date range across two month open materialcalendargridview on current month april 2021 with 5 week and select a day move to next month may with 6 week and select the last day it s invisible when select the last day it crash mainactivity java the problem be with builder settheme r style themeoverlay hrapptheme materialcalendar package com example myapplication import android os bundle import android os handler import android view view import android widget button import com google android material datepicker materialdatepicker import androidx appcompat app appcompatactivity import androidx core util pair public class mainactivity extend appcompatactivity private handler openpickerhandler new handler private runnable runopenpicker new runnable override public void run materialdatepicker builder builder materialdatepicker builder daterangepicker builder settheme r style themeoverlay hrapptheme materialcalendar materialdatepicker datepicker builder build datepicker show getsupportfragmentmanager material date picker override protect void oncreate bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout activity main button button findviewbyid r i d button button setonclicklistener new view onclicklistener override public void onclick view v openpickerhandler postdelaye runopenpicker 120 style xml activity main xml crash video android api version android api 26 material library version com google android material material 1 3 0 com google android material material 1 4 0 alpha02 com google android material material 1 4 0 beta01 com google android material material 1 4 0 rc01 com google android material material 1 4 0 device emulator here the stacktrace 2021 04 29 16 57 30 483 19374 19374 com zucchetti hr hrsuite e androidruntime fatal exception main process com zucchetti hr hrsuite pid 19374 java lang nullpointerexception attempt to invoke virtual method int android view view getleft on a null object reference at com google android material datepicker materialcalendargridview horizontalmidpoint materialcalendargridview java 242 at com google android material datepicker materialcalendargridview ondraw materialcalendargridview java 172 at android view view draw view java 19123 at android widget abslistview draw abslistview java 4317 at android view view updatedisplaylistifdirty view java 18073 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at androidx recyclerview widget recyclerview drawchild recyclerview java 5030 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view draw view java 19126 at androidx recyclerview widget recyclerview draw recyclerview java 4429 at android view view updatedisplaylistifdirty view java 18073 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view updatedisplaylistifdirty view java 18064 at android view view draw view java 18851 at android view viewgroup drawchild viewgroup java 4214 at android view viewgroup dispatchdraw viewgroup java 4000 at android view view draw view java 19126 at com android internal policy decorview draw decorview java 785 at android view view updatedisplaylistifdirty view java 18073 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 643 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 649 at android view threadedrenderer draw threadedrenderer java 757 at android view viewrootimpl draw viewrootimpl java 2980 at android view viewrootimpl performdraw viewrootimpl java 2794 at android view viewrootimpl performtraversal viewrootimpl java 2347 at android view viewrootimpl dotraversal viewrootimpl java 1386 at android view viewrootimpl traversalrunnable run viewrootimpl java 6733 2021 04 29 16 57 30 483 19374 19374 com zucchetti hr hrsuite e androidruntime at android view choreographer callbackrecord run choreographer java 911 at android view choreographer docallback choreographer java 723 at android view choreographer doframe choreographer java 658 at android view choreographer framedisplayeventreceiver run choreographer java 897 at android os handler handlecallback handler java 789 at android os handler dispatchmessage handler java 98 at android os looper loop looper java 164 at android app activitythread main activitythread java 6541 at java lang reflect method invoke native method at com android internal os zygote methodandargscaller run zygote java 240 at com android internal os zygoteinit main zygoteinit java 767
materialcomponentsmaterialcomponentsandroid
shape bug when reference a color file with alpha in a gradient shape
Bug
description create a new project only change the background of the main activity to shape gradient xml file where the gradient android centercolor refer to the attr coloraccent with alpha value the problem appear no matter what color you set it will become pink but if the android centercolor value in the gradient be hard code the problem will not occur the color in the middle turn to pink when run on the device or avd problem expect behavior the editor interface of mask xml can be display correctly problem source code activity main xml xml drawable mask xml xml color alpha 95 xml xml android api version know in 30 not test other version material library version v1 3 0 device I think it should be all device it s on my oneplus 6 and on the moto z2f and avd to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
appbarlayout dimension not update after set materialtoolbar s visibility to gone
Bug
description appbarlayout do not change its dimension automatically after set materialtoolbar s visibility to go currently the workaround be to call appbarlayout requestlayout right after set materialtoolbar s visibility kotlin bind toolbar isvisible false bind appbarlayout requestlayout 1 expect behavior 2 source code xml android api 30 material library 1 4 0 alpha02 device any device build in emulator oppo reno5 5 g
materialcomponentsmaterialcomponentsandroid
textinputlayout different behavior of end icon when focus lose
Bug
description I find behavior of end icon when focus lose when field contain only digit android inputtype phone or android inputtype number end icon not hide and when field contain any symbol end icon hiding when focus lose look at screenshoot below expect behavior equal behavior of these case perfectly control this from code or xml source code no special code just simple textinputlayout and textinputedittext with input type android api version 29 material library version 1 3 0 device any
materialcomponentsmaterialcomponentsandroid
progressindicator progressindicator be invisible on android 5 1 api level 22
Bug
description progressindicator be invisible but progressbar work fine android api version 22 material library version 1 4 0 alpha02 device huawei avd
materialcomponentsmaterialcomponentsandroid
actionmode actionmode text size be inconsistent with toolbar when in landscape mode
Bug
when rotate the device into landscape mode the text size for action mode be inconsistent with toolbar this seem to be cause by the action mode not have any material design override I ve also notice this with the overflow menu in the dark theme I e here be how the toolbar define its title text size attr textappearanceheadline6
materialcomponentsmaterialcomponentsandroid
appbarlayout resource notfoundexception design appbar state list animator xml
Bug
description firebase crash log cause by android view inflateexception binary xml file line 20 error inflating class cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance0 constructor java at java lang reflect constructor newinstance constructor java 334 at android view layoutinflater createview layoutinflater java 658 at android view layoutinflater createviewfromtag layoutinflater java 801 at android view layoutinflater createviewfromtag layoutinflater java 741 at android view layoutinflater rinflate layoutinflater java 874 at android view layoutinflater rinflatechildren layoutinflater java 835 at android view layoutinflater rinflate layoutinflater java 877 at android view layoutinflater rinflatechildren layoutinflater java 835 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 555 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 161 at com base baseactivity oncreate baseactivity java 175 at android app activity performcreate activity java 7383 at android app instrumentation callactivityoncreate instrumentation java 1218 at android app activitythread performlaunchactivity activitythread java 3256 at android app activitythread handlelaunchactivity activitythread java 3411 at android app activitythread wrap12 activitythread java at android app activitythread h handlemessage activitythread java 1994 at android os handler dispatchmessage handler java 108 at android os looper loop looper java 166 at android app activitythread main activitythread java 7529 at java lang reflect method invoke method java at com android internal os zygote methodandargscaller run zygote java 245 at com android internal os zygoteinit main zygoteinit java 921 cause by android content re resource notfoundexception file re mipmap xxhdpi v4 ic launcher png from xml type anim resource i d 0x7f020000 at android content re resourcesimpl loadxmlresourceparser resourcesimpl java 1435 at android content re resource loadxmlresourceparser resource java 2312 at android content re resource getanimation resource java 1317 at android animation animatorinflater loadstatelistanimator animatorinflater java 171 at com google android material appbar viewutilslollipop setstatelistanimatorfromattrs viewutilslollipop java 51 at com google android material appbar appbarlayout appbarlayout java 215 at com google android material appbar appbarlayout appbarlayout java 199 at java lang reflect constructor newinstance0 constructor java at java lang reflect constructor newinstance constructor java 334 at android view layoutinflater createview layoutinflater java 658 at android view layoutinflater createviewfromtag layoutinflater java 801 at android view layoutinflater createviewfromtag layoutinflater java 741 at android view layoutinflater rinflate layoutinflater java 874 at android view layoutinflater rinflatechildren layoutinflater java 835 at android view layoutinflater rinflate layoutinflater java 877 at android view layoutinflater rinflatechildren layoutinflater java 835 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 555 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 161 at com base baseactivity oncreate baseactivity java 175 at android app activity performcreate activity java 7383 at android app instrumentation callactivityoncreate instrumentation java 1218 at android app activitythread performlaunchactivity activitythread java 3256 at android app activitythread handlelaunchactivity activitythread java 3411 at android app activitythread wrap12 activitythread java at android app activitythread h handlemessage activitythread java 1994 at android os handler dispatchmessage handler java 108 at android os looper loop looper java 166 at android app activitythread main activitythread java 7529 at java lang reflect method invoke method java at com android internal os zygote methodandargscaller run zygote java 245 at com android internal os zygoteinit main zygoteinit java 921 cause by java io filenotfoundexception corrupt xml binary file at android content re assetmanager openxmlassetnative assetmanager java at android content re assetmanager openxmlblockasset assetmanag java 862 at android content re resourcesimpl loadxmlresourceparser resourcesimpl java 1420 at android content re resource loadxmlresourceparser resource java 2312 at android content re resource getanimation resource java 1317 at android animation animatorinflater loadstatelistanimator animatorinflater java 171 at com google android material appbar viewutilslollipop setstatelistanimatorfromattrs viewutilslollipop java 51 at com google android material appbar appbarlayout appbarlayout java 215 at com google android material appbar appbarlayout appbarlayout java 199 at java lang reflect constructor newinstance0 constructor java at java lang reflect constructor newinstance constructor java 334 at android view layoutinflater createview layoutinflater java 658 at android view layoutinflater createviewfromtag layoutinflater java 801 at android view layoutinflater createviewfromtag layoutinflater java 741 at android view layoutinflater rinflate layoutinflater java 874 at android view layoutinflater rinflatechildren layoutinflater java 835 at android view layoutinflater rinflate layoutinflater java 877 at android view layoutinflater rinflatechildren layoutinflater java 835 at android view layoutinflater inflate layoutinflater java 515 at android view layoutinflater inflate layoutinflater java 423 at android view layoutinflater inflate layoutinflater java 374 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 555 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 161 at com base baseactivity oncreate baseactivity java 175 at android app activity performcreate activity java 7383 at android app instrumentation callactivityoncreate instrumentation java 1218 at android app activitythread performlaunchactivity activitythread java 3256 at android app activitythread handlelaunchactivity activitythread java 3411 at android app activitythread wrap12 activitythread java at android app activitythread h handlemessage activitythread java 1994 at android os handler dispatchmessage handler java 108 at android os looper loop looper java 166 at android app activitythread main activitythread java 7529 at java lang reflect method invoke method java at com android internal os zygote methodandargscaller run zygote java 245 at com android internal os zygoteinit main zygoteinit java 921 image image image image expect behavior I don t understand why the anim resource i d 0x7f020000 design appbar state list animator xml be bind to the re mipmap xxhdpi v4 ic launcher png source code I can t reproduce the bug this bug only crash on some of huawei s phone android api version android 8 0 0 8 1 0 material library version 1 2 1 device image to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
shapeableimageview badge attach to shapeableimageview be cut
Bug
description try to attach a badgedrawable to a shapeableimageview result in the part of the badge that exceed the shapeableimageview bound to be cut I guess I understand this be due to how the shape be be render and the fact that the badge become a part layer of the actual view it be attach to but be there any plan for fix it on a library level or should developer just wrap shapeableimageview with framelayout and attach the badge to the framelayout instead image expect behavior badge should be completely visible as in case of regular imageview image source code kotlin package com threekkapps badge import android os bundle import android view viewtreeobserver import androidx appcompat app appcompatactivity import com google android material badge badgedrawable import com google android material badge badgeutil import com google android material imageview shapeableimageview class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val imageview findviewbyid r i d imageview val badge badgedrawable create this mainactivity apply number 8 imageview viewtreeobserver addongloballayoutlistener object viewtreeobserver ongloballayoutlistener override fun ongloballayout badgeutil attachbadgedrawable badge imageview null imageview viewtreeobserver removeongloballayoutlistener this xml android api version 28 material library version 1 4 0 alpha02 device huawei p20pro
materialcomponentsmaterialcomponentsandroid
materialstyleddatepickerdialog can only be call from test
Bug
why be this class restrict materialstyleddatepickerdialog can only be call from within the same library group groupid com google android material what be the purpose of this as I want to use materialdatepicker with this constructor public materialstyleddatepickerdialog nonnull context context int themeresid nullable ondatesetlistener listener int year int monthofyear int dayofmonth
materialcomponentsmaterialcomponentsandroid
appbarlayout scrollingviewbehavior doesn t work properly with nestedscrollview
Bug
hi there I face an issue with nest scrolling and as far as I can see the problem be somewhere inside appbarlaoyut scrollingviewbehavior description I have a fragment with appbarlayout and nestedscrollview inside a coordinatorlayout it work pretty good until I add the trivial onclicklistener for the view which locate deep down inside the nestedscrollview child nestedscrollview constraintlayout viewpager2 recyclerview framelayout view holder after this the scroll behavior become break the nestedscrollview scroll independently of appbarlayout there be 2 video to compare without click listener with click listener just to make it clear the only difference between 2 video above be framelayout setonclicklistener look like if there be some view that handle touch event e g for handle click inside the nestedscrollview then the nested scroll work unproperly I double check which view be scroll it s not a recyclerview it s nestedscrollview which actually should pass the touch event to the parent coordinator accord to the appbarlaoyut scrollingviewbehavior expect behavior source code I omit some irrelevant detail like color ids etc to reduce code amount android api version 30 material library version 1 3 0 device google pixel 4 xl
materialcomponentsmaterialcomponentsandroid
widget not clickable on android 12
Bug
description after the scroll widget be not clickable but the delay in a few second allow do this expect behavior widget clickable immediately after scroll android api version android 12 developer preview 2 material library version material android library version 1 4 0 alpha02 device google pixel 4
materialcomponentsmaterialcomponentsandroid
autocompletetextview drop down item fail to show once fragment be destroy and re create
Bug
description my app be a single activity with multiple parent and nest fragment in one of the child fragment I use viewpager2 component to show different fragment depend on the tab select for the sake of simplicity let s say I have a textinputlayout autocompletetextview control on tab1 there be a total of 8 tab and other tab have a combination of other control textview edittext etc step on how to reproduce 1 on first creation of tab1 I can see all the drop down item on the autocompletetextview control 2 I navigate to tab2 tab3 tab4 so on until at some point fragment manager decide to destroy tab1 and ondestroyview be call on tab1 fragment 3 now if I navigate back to tab1 oncreateview be call and I can not see all the item in autocompletetextview control anymore except the previously select one sample code to make my layout more clear and consistent I use compound view to encapsulate the textinputlayout and the child autocompletetextview or textinputedittext for the sake of keep the explanation short I have omit code for my viewmodel class and the parent fragment that host the viewpager2 view share spinner xml spinnersharedview kt class spinnersharedview jvmoverloads constructor context context attrs attributeset null defstyle int 0 linearlayout context attrs defstyle private var bind viewsharedspinnerbinde private var currentselecteditemposition int 1 init val inflater context getsystemservice context layout inflater service as layoutinflat bind viewsharedspinnerbinde inflate inflater this bind spname hint my spinner fun getselecteditemposition int return currentselecteditemposition this method be use to attach a view to the register datum model object it be call in onviewcreate method of the fragment this be how user update the datum object fun attach reg register item array callback register unit reg let register be just a data model class val adapter arrayadapter arrayadapter context r layout list item spinner item bind spvalue setadapter adapter setonitemselectedlistener doesn t work on autocompletetextview instead we should use setonitemclicklistener bind spvalue setonitemclicklistener position if currentselecteditemposition position currentselecteditemposition position it value position todouble callback invoke reg clearfocus this method be call when viewmodel observer see change to the register datum model object this be how update to the data object be pass to the view fun update reg registerdec map map null reg let val tmp reg value toint val mappedvalue if map null tmp else map tmp 0 currentselecteditemposition mappedvalue bind spvalue settext bind spvalue adapter getitem mappedvalue tostre false tab1 layout class tab1 fragment private var bind fragmenttab1binde null private val bind get bind private val viewmodel tab1viewmodel by activityviewmodel injectorutil providetab1viewmodelfactory private val controlmodeitem arrayof n a ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts8 average low override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view bind fragmenttab1binde inflate inflater container false return bind root override fun ondestroyview super ondestroyview bind null override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate attachui viewmodel mydatamodel observeui private fun attachui d mydatamodel bind mode attach d controlmode controlmodeitem edititemcallback private fun observeui viewmodel mydatamodellive observe viewlifecycleowner it let bind mode update it controlmode private fun edititemcallback reg register viewmodel update reg version info andnrod api 11 navigation version 2 3 5 fragment version 1 3 2 material design version 1 2 1 also try with 1 3 0
materialcomponentsmaterialcomponentsandroid
mobile input picker hint date format change when the language be change
Bug
description hint date format change when the language be change expect behavior the date format should be the same in all language screenshot 20210407 144217 screenshot 20210407 144309 screenshot 20210407 144527 android api version 30 material library version 1 3 0 alpha03 device samsung sm a715f
materialcomponentsmaterialcomponentsandroid
materialdatepicker crash on singledateselector
Bug
crashlytic show attempt to read from field java lang long com google android material datepicker singledateselector a on a null object reference possible duplicate but in new version of material design library this bug still not solve use material design version 1 3 0 beta01 I change my library version to 1 4 0 alpha02 but I believe on new release this bug not solve device version android 9 10 11 thank your attention and thank for all your work
materialcomponentsmaterialcomponentsandroid
bottomsheet status bar icon remain dark after first use
Bug
description use bottom sheet dialog with edge to edge and a white theme on first run status bar icon be light while open the sheet and do turn dark as the bottom sheet white background hit the status bar as expect you can even play with the sheet to slide it in and out of the status bar and see the icon change color properly however if you close the bottom sheet and later try to reuse it icon will remain dark as you be slide down the sheet to workaround it I just instantiate a new dialog instead of reuse the same one expect behavior status bar icon should change color properly past the the first run so that dialog instance can be reuse source code just try reuse an edge to edge bottomsheetdialog instance android api version 28 material library version 1 4 0 alpha02 device f x tec pro
materialcomponentsmaterialcomponentsandroid
textinputlayout the space between hint and text be so small
Bug
description textinputlayout the space between hint and text be so small expect behavior screenshot and or description of expect behavior source code android api version 29 material library version implementation com google android material material 1 4 0 alpha02 bug version material library version implementation com google android material material 1 4 0 alpha02 android 29 api device pixel 2 pixel 2 library 1 4 0 alpha02 not bug version material library version implementation com google android material material 1 1 0 rc01 android 29 api device pixel 2 pixel 2 library 1 1 0 rc01 device pixel 2 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
build failure after update from 1 1 0 to 1 3 0 or 1 2 0 type androidx appcompat app actionbar displayoption be define multiple time
Bug
description when build in release both app instrument test with material 1 2 0 build fail execution fail for task app mergeextdexrelease a failure occur while execute com android build gradle internal task worker actionfacade com android builder dexing dexarchivemergerexception error while merge dex archive learn how to resolve the issue at duplicate class type androidx appcompat app actionbar displayoption be define multiple time home build gradle cache transform 3 230d761abc2a9fbf4dacd2f7dafa174e transform appcompat 1 2 0 runtime class dex home build gradle cache transform 3 fa06e5dc648e3583f0d86da56f60831d transform appcompat 1 2 0 runtime class dex expect behavior build successful source code sample project to reproduce the issue available here tl dr app build gradle android testbuildtype system getproperty buildtype debug compileoption workaround enable corelibrarydesugaringenable corelibrarydesugaringenable true sourcecompatibility javaversion version 1 8 targetcompatibility javaversion version 1 8 kotlinoption jvmtarget 1 8 dependency workaround enable corelibrarydesugaringenable corelibrarydesugare com android tool desugar jdk lib 1 1 5 implementation org jetbrain kotlin kotlin stdlib jdk7 kotlin version implementation com google android material material 1 3 0 implementation androidx preference preference 1 1 1 androidtestimplementation androidx test espresso espresso contrib 3 3 0 gradle property android enablejetifi false then gradlew assemblerelease app assemblereleaseandroidt dbuildtype release android api version 30 material library version 1 3 0 or 1 2 0 fine with 1 1 0 device n a build time issue
materialcomponentsmaterialcomponentsandroid
bottomsheet padding for status bar not apply when start expand
Bug
description top padding for status bar not apply when start expand with edge to edge the content view be then draw below our transparent status bar if you start slide the bottom sheet the padding get set properly expect behavior top padding should be apply even when start expand source code assume edge to edge attribute be set to true and transparent status bar val bottomsheetdialog bottomsheetdialog this we need to set private datum member edgetoedgeenable to true to get full screen effect that have be already fix since alpha 02 release this be not our issue here but be leave for completeness val field bottomsheetdialog class java getdeclaredfield edgetoedgeenable field isaccessible true field setboolean bottomsheetdialog true bottomsheetdialog setcontentview myview bottomsheetdialog show bottomsheetdialog behavior skipcollapse true bottomsheetdialog behavior state bottomsheetbehavior state expand to workaround that issue I have to mainhandler postdelaye bottomsheetdialog behavior state bottomsheetbehavior state expand 100 analysis edgetoedgecallback setpaddingforposition be not get call when set the state to expand just after the call to show for some reason edgetoedgecallback onstatechange be not call then moreover if the content of the sheet change cause it to change its size the padding can get out of sync like show top padding when none need because sheet get small or not show the padding when need because sheet get big edgetoedgecallback setpaddingforposition should also be call whenever the sheet size be change android api version 28 material library version 1 4 0 alpha02 device f x tec pro
materialcomponentsmaterialcomponentsandroid
error inflate class com google android material tab tablayout the style on this component require your app theme to be theme appcompat or a descendant
Bug
description when navigate to a page with tablayout I get error inflate class com google android material tab tablayout the style on this component require your app theme to be theme appcompat or a descendant expect behavior app do not crash source code java intent nextscreen widgetfactory getwidgetintent widget this bridge getactivity if widgetfactory canaccesswidget widget nextscreen null getactivity startactivity nextscreen else success false showaccessdialog android api version 29 material library version com google android material material 1 0 0 device google pixel 4 google pixel 3
materialcomponentsmaterialcomponentsandroid
linearprogressindicator match parent not work properly when parent have wrap content
Bug
description I use linearprogressindicator in a viewholder and need to adjust base on a textview the progress take the width of the parent wrap content instead of the width of the parent the size of the textview in this case expect behavior I use a framelayout with wrap content as width but I want the progress to take the whole width source code xml android api version 30 material library version 1 3 0 device pixel 3a emulator
materialcomponentsmaterialcomponentsandroid
materialdatepicker excessive whitespace in input date
Bug
description while switch between select date to input date the input date have excessive whitespace on big screen expect behavior no excessive whitespace android api version 30 material library version 1 3 0 device emulator pixel 2 3 nexus one nexus one pixel 2 pixel 3
materialcomponentsmaterialcomponentsandroid
textinputlayout textinputlayout with textinputedittext drastically slow down inflation
Bug
description when inflate a layout the presence of a textinputlayout make the inflation noticably slow it s enough to add two til to a layout to start notice a lag on my device nokia 7 1 which be not high end but not the bad phone either it happen even when I put they in a simple linearlayout with no other view on the other hand if I inflate a layout with even 10 edittext there be no lag whatsoever you can reproduce it on this basic sample the dashboard fragment contain a few til and the notification one contain normal edittext here be a screenrecord use the sample I provide first I navigate to the fragment with basic edittext and there be no lag then I navigate to the one with til and there s the lag it might not look that severe but in a layout with other widget the inflation time add up and it s enough to have a single til to get a bad ux previously file at be tell to refile here expect behavior textinputlayout should inflate much fast at least so that it doesn t cause any lag in fragment transition when you have a few of they in your layout source code android api version test with api 29 material library version 1 3 0 alpha02
materialcomponentsmaterialcomponentsandroid
materialcalendargridview nullpointerexception in ondraw in 1 3 0
Bug
description I m receive a similar bug to but use version 1 3 0 I don t have step to reproduce but it occur on different device with different android version maybe there be a trick with language most user be use fr expect behavior expect the app will not crash source code private fun showdatepicker from datetime to datetime onsubmit datetime datetime unit val datepicker materialdatepicker builder daterangepicker datepicker setselection pair from millis to millis val dialog datepicker build dialog addonpositivebuttonclicklistener onsubmit datetime it first datetime it second dialog show parentfragmentmanager dialog javaclass simplename android api version 29 28 27 26 material library version 1 3 0 device huawei p20 xiaomi redmi 9 samsung galaxy s7 samsung galaxy s7 edge samsung galaxy a41 samsung galaxy note 10 samsung galaxy s9 oneplus 6 stacktrace fatal exception java lang nullpointerexception attempt to invoke virtual method int android view view getleft on a null object reference at com google android material datepicker materialcalendargridview horizontalmidpoint materialcalendargridview java at com google android material datepicker materialcalendargridview ondraw materialcalendargridview java 221 at android view view draw view java 23187 at android widget abslistview draw abslistview java 7190 at android view view updatedisplaylistifdirty view java 22062 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at androidx recyclerview widget recyclerview drawchild recyclerview java at android view viewgroup dispatchdraw viewgroup java 4987 at android view view draw view java 23190 at androidx recyclerview widget recyclerview draw recyclerview java at android view view updatedisplaylistifdirty view java 22062 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view updatedisplaylistifdirty view java 22048 at android view view draw view java 22917 at android view viewgroup drawchild viewgroup java 5230 at android view viewgroup dispatchdraw viewgroup java 4987 at android view view draw view java 23190 at com android internal policy decorview draw decorview java 1154 at android view view updatedisplaylistifdirty view java 22062 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 588 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 594 at android view threadedrenderer draw threadedrenderer java 667 at android view viewrootimpl draw viewrootimpl java 4296 at android view viewrootimpl performdraw viewrootimpl java 4080 at android view viewrootimpl performtraversal viewrootimpl java 3348 at android view viewrootimpl dotraversal viewrootimpl java 2225 I go to try the late release 1 4 0 alpha01 of the library but I can t reproduce this issue by myself so the only way be to receive crash information from firebase it s painful maybe someone face the same issue will be thankful for any help
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton app elevation 0dp be invalid
Bug
description app elevation 0dp be invalid expect behavior the same as floatingactionbutton source code android api version api 29 material library version com google android material material 1 3 0 device pixel 2 virtual machine preview
materialcomponentsmaterialcomponentsandroid
chip accessibility chip be not focusable by touch navigation with talkback on api version 24
Bug
description on api level 24 with talkback enable a user be unable to navigate accessibility focus to a chip by touch exploration either by single tap the view or by drag their finger to explore the view a user be still able to navigate to a chip by swipe through the view tree video of bug below expect behavior a user be able to move accessibility focus to a chip via single tap or touch exploration source code material component catalog app android api version 24 material library version 1 2 1 1 3 0 1 4 0 alpha01 device alcatel verso android emulator here be the bug in our app here be a video of the bug in the material component catalog app build from source run on the emulator on api level 24 in our testing this be the only api level where we have encounter the bug
materialcomponentsmaterialcomponentsandroid
chip accessibility chipgroup with singleselect should report item as radio button rather than check box
Bug
description for accessibility purpose if an application be use a chipgroup with singleselection true the underlie behavior mimic that of a radiogroup however when each chip be focus on the contentdescription inform the user that it be a checkbox seemingly indicate that multiple item can be choose expect behavior if singleselection true each chip should indicate as a radiobutton rather than a checkbox chip accessibility screenshot 1616698480 radiobutton accessibility screenshot 1616698631 source code this can be see in the catalog demo app see screenshot above android api version 30 material library version 1 4 0 alpha01 device pixel 3 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomsheetdialogfragment shadow animation be wierd
Bug
description when the bottom sheet come up the shadow animation be wierd expect behavior smooth shadow animation source code class somenamedfragment bottomsheetdialogfragment override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle view return inflater inflate r layout fragment random layout container false companion object fun newinstance somenamedfragment somenamedfragment somenamedfragment newinstance show parentfragmentmanager dialog material library version 1 4 0 alpha01 device any device
materialcomponentsmaterialcomponentsandroid
rangeslider thumb highlight animation ripple on the wrong thumb
Bug
description when I move one thumb and then start move the other thumb the ripple animation start from the first last touch thumb instead of the current one see the follow gif range slider bug expect behavior the ripple effect always start on the correct thumb android api version android 11 api 30 material library version 1 4 0 alpha01 and 1 3 0 device pixel 4a 5 g and pixel 3 xl
materialcomponentsmaterialcomponentsandroid
material design button bug
Bug
I set a dark green color but the light green background appear button s background be set to the colorprimary of the theme so when I change button to image button it come out right as a result of the test it seem that the problem be occur in material design 1 2 1 or high I have to use theme materialcomponent light noactionbar so I can t change theme I also post it at stackoverflow at here
materialcomponentsmaterialcomponentsandroid
tablayout tablayout inside appbarlayout dark theme bug
Bug
description when use tablayout inside appbarlayout the appbarlayout background be not elevate with overlay under tablayout expect behavior light theme image dark theme image source code xml android api version 30 material library version 1 4 0 alpha01
materialcomponentsmaterialcomponentsandroid
rangeslider setminseparationvalue have no effect
Bug
description when I try to set setminseparationvalue to 1f to make the minimum selectable range of length 1 nothing happen both thumb still can be move to the same value expect behavior I should not be able to move the thumb on the same value if I set setminseparationvalue 1f source code kotlin val count 7 rangeslider valuefrom 0f rangeslider valueto count 1f rangeslider setvalue 0f count 1f rangeslider stepsize 1f rangeslider setminseparationvalue 1f xml android api version android 11 api 30 material library version 1 4 0 alpha01 and 1 3 0 device google pixel 4a 5 g
materialcomponentsmaterialcomponentsandroid
textinputlayout graphical issue with rounded textinputlayout hint
Bug
description the inset for the label be misplace and doesn t fully cover the stroke of the container on the outlined text field if corner be round expect behavior the inset should cover the stroke source code no need for code in my opinion but I m absolutely available to provide some code if need android api version r material library version be fine on 1 3 0 break on 1 4 0 alpha01 device both emulator and physical one plus nord photo 2021 03 22 13 32 20
materialcomponentsmaterialcomponentsandroid
material android resource compilation fail
Bug
after update the material component version from 1 2 1 1 3 0 I start get compilation error task xxxx mergeider14debugresource agpbi kind error text android resource compilation fail source file xxxx xxxx gradle cache transform 2 file 2 1 eae45302ca3024115a1299e7406e5fc2 material 1 3 0 re value value xml position startline 3631 startcolumn 4 startoffset 230901 endline 3633 endcolumn 22 endoffset 231019 original xxxx xxxx gradle cache transform 2 file 2 1 eae45302ca3024115a1299e7406e5fc2 material 1 3 0 re value value xml 3632 5 3634 23 aapt error duplicate value for resource attr navigationicontint with config n tool aapt agpbi kind error text android resource compilation fail source file xxxx xxxx gradle cache transform 2 file 2 1 eae45302ca3024115a1299e7406e5fc2 material 1 3 0 re value value xml position startline 3631 startcolumn 4 startoffset 230901 endline 3633 endcolumn 22 endoffset 231019 original xxxx xxxx gradle cache transform 2 file 2 1 eae45302ca3024115a1299e7406e5fc2 material 1 3 0 re value value xml 3632 5 3634 23 aapt error resource previously define here n tool aapt task xxxx mergeider14debugresource fail execution fail for task yyyy mergeider14debugresource a failure occur while execute com android build gradle internal task worker actionfacade android resource compilation fail xxxx xxxx gradle cache transform 2 file 2 1 eae45302ca3024115a1299e7406e5fc2 material 1 3 0 re value value xml 3632 5 3634 23 aapt error duplicate value for resource attr navigationicontint with config I check my project and I can confirm that I be not use attr navigationicontint so I don t understand from where the issue be come
materialcomponentsmaterialcomponentsandroid
materialtoolbar no attribute app titlecentere
Bug
description there be no attribute app titlecentere but it should be present accord to material io documentation expect behavior the attribute should be present source code I think there be no need for sample code but I m absolutely available to provide some code if need android api version r material library version 1 3 0 device can t compile
materialcomponentsmaterialcomponentsandroid
rangeslider if branch in onchangelistener always fast than else branch
Bug
description there be no build in way that I have find to tell which slider be be move in the onchangelistener so I do slider apply set valuefrom and valueto and default value this addonchangelistener value value mytransform let if value value 0 startvaluetextview text it else endvaluetextview text it expect behavior the textview in the else branch in this case the endvaluetextview will be a random number when the user slide the correspond slider rapidly back and forth between touch the start slider thumb and anywhere behind the start slider thumb e g if valuefrom be 0 and valueto be 100 and the start slider be at 20 slide the end slider between 20 and 100 rapidly will result in the endvaluetextview display a random value every time the end slider meet the start slider at 20 swap the endvaluetextview and startvaluetextview will move the bug from the endvaluetextview to the startvaluetextview hence whichever textview be be update in the else branch will result in a random number and the one in the if branch will be the same correct number every time source code see above android api version 28 android 9 material library version 1 3 0 device samsung galaxy s8
materialcomponentsmaterialcomponentsandroid
textinputlayout setstarticondrawable do not apply tint on drawable
Bug
description full description of issue here setstarticondrawable do not invoke applystarticontint to apply tint on set drawable so starticontint attribute be ignore when drawable be set from code expect behavior screenshot and or description of expect behavior setstarticondrawable should invoke applystarticontint to apply tint on set drawable android api version 29 material library version material android library version you be use here e g 1 1 0 alpha07 1 3 0
materialcomponentsmaterialcomponentsandroid
tablayout select tab indicator color be not apply instantly at runtime
Bug
description I need to change color of tabindicatorcolor at runtime when I use setselectedtabindicatorcolor the color be not apply until I change tab call tablayout invalidate do not help expect behavior tab indicator color be change instantly source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 30 material library version 1 4 0 alpha01 device pixel 3a
materialcomponentsmaterialcomponentsandroid
textinputlayout float label background problem with custom font
Bug
description this commit fix a old problem but now it s not work with custom font image without custom font image source code l38 android api version 30 material library version 1 4 0 alpha01
materialcomponentsmaterialcomponentsandroid
snackbar can t style snackbar action text unless also style text label
Bug
description I be try to customize the text color of the snackbar s action accord to the documentation theme snackbar I be unable to adjust the color of the action text a quick look at this changeset diff e19f85ce9e235bfd327e6c94cd6bebbdcbc074b6943cebfdd29d4cff9167605b make I aware that in order to customize the action I need to customize the snackbar s text label as well expect behavior I expect to be able to change the action on its own without provide a style for the text label if the current implementation be intend behaviour it should be part of the documentation source code I try set a custom snackbarbuttonstyle which didn t work by which I mean that the color do not change xml when I add a snackbartextviewstyle which just reference the default style it work xml android api version 30 material library version 1 3 0 device any device but pixel 4 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
materialbuttontogglegroup check button ui issue
Bug
description select button background be not properly render this be fix by set default check button to group app checkedbutton i d button1 expect behavior source code class mainactivity appcompatactivity private lateinit var bind activitymainbinding private val ld mutablelivedata override fun oncreate savedinstancestate bundle super oncreate savedinstancestate bind activitymainbinding inflate layoutinflater val view bind root setcontentview view lifecyclescope launchwhenstarte delay 1000 ld value true ld observe this if it null bind group1 check r i d button1 android api version api 29 material library version com google android material material 1 3 0 device samsung galaxy note 9
materialcomponentsmaterialcomponentsandroid
textinputlayout endicondrawable doesn t work
Bug
goal set endicondrawable expect drawable be present on the screen current drawable be miss from the screen android 11 material version 1 3 0 alpha02 device emulator
materialcomponentsmaterialcomponentsandroid
badgeutil detachment from toolbar menu item do not remove offset add during attachment
Bug
description when a badgedrawable be attach to a toolbar menu item it add horizontal and vertical offset these offset be not remove when a badgedrawable be remove therefore add and remove the drawable multiple time will add an additional 12dp offset to the left and down additionally if a badge be present on a menu item and an adjacent menu item have its visibility toggle the badge will disappear and will not come back even after add or remove the badge expect behavior a badge should maintain its position when attach to or detach from a toolbar ideally attach a badge would be idempotent and would not have a cumulative side effect on the badge but if detachment be require before re attachment that requirement should be document source code 1 in a layout create a materialtoolbar with two menu item 2 attach a badgedrawable to one of the menu item 3 hide the first menu item 4 observe that the badge attach to the other item disappear 1 in a layout create a materialtoolbar with a menu item 2 create a badgedrawable 3 add a menu item click listener to detach and attach the badge drawable 4 observe that the badge on the menu item be shift each time it be click android api version api 30 material library version 1 3 0 device pixel 3a api 30 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
textinputlayout endicondrawable not show icon
Bug
description material library version implementation com google android material material 1 3 0 device device on which the bug be encounter here
materialcomponentsmaterialcomponentsandroid
transition when two or more activity be start and then return the activity materialfadethrough transition will be interrupt
Bug
description when two or more activity be start and then return the activity materialfadethrough transition will be interrupt expect behavior when two or more activity be start and then return the activity materialfadethrough transition can proceed normally source code kotlin abstract class baseactivity contentlayoutid int appcompatactivity contentlayoutid override fun oncreate savedinstancestate bundle window requestfeature window feature activity transition window entertransition materialfadethrough window exittransition materialfadethrough super oncreate savedinstancestate override fun startactivity intent intent super startactivity intent activityoption makescenetransitionanimation this tobundle class mainactivity baseactivity r layout activity main override fun oncreate savedinstancestate bundle super oncreate savedinstancestate findviewbyid r i d toa setonclicklistener startactivity intent this aac class java class aac baseactivity r layout activity a override fun oncreate savedinstancestate bundle super oncreate savedinstancestate findviewbyid r i d btntob setonclicklistener startactivity intent this bac class java findviewbyid r i d btnback setonclicklistener finishaftertransition class bac baseactivity r layout activity b override fun oncreate savedinstancestate bundle super oncreate savedinstancestate findviewbyid r i d btntoc setonclicklistener startactivity intent this cac class java findviewbyid r i d btnback setonclicklistener finishaftertransition class cac baseactivity r layout activity c override fun oncreate savedinstancestate bundle super oncreate savedinstancestate findviewbyid r i d btnback setonclicklistener finishaftertransition call finish or finishaftertransition have the same effect android api version 29 android 10 material library version 1 4 0 alpha01 device redmi k30 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
fail to sync material component 1 3 0 with android studio 4 1 2
Bug
android studio 4 1 2 be sync forever when I use the new material component 1 3 0 I don t know if it s only I until I change and use material component material 1 2 0 alpha03
materialcomponentsmaterialcomponentsandroid
viewpager 1 tab not change color on dark light mode switch
Bug
every element in a view hierarchy change color dynamically except the viewpager s tab the horizontal section over the top that allow you to select between fragment in the view this view stubbornly refuse to change use a theme that should be sensitive to the theme change as it be for all other view on restart the correct theme appear
materialcomponentsmaterialcomponentsandroid
textinputlayout style don t work when inherit
Bug
description when inherit from textinputlayout and use the new class in a layout file and apply a style that modify the boxbackgroundcolor property then the styling change be ignore expect behavior the boxbackgroundcolor color define in the the style should be display source code kotlin import android content context import android util attributeset import com google android material textfield textinputlayout class textfield textinputlayout constructor context context super context constructor context context attrs attributeset super context attrs r style themetextfield constructor context context attrs attributeset defstyleattr int super context attrs defstyleattr xml textfield android i d i d here style style themetextfield android layout width match parent android layout height wrap content app layout constraintbottom tobottomof parent app layout constraintend toendof parent app layout constraintstart tostartof parent app layout constrainttop totopof parent xml groovy plugin i d com android application i d kotlin android android compilesdkversion 30 buildtoolsversion 30 0 3 defaultconfig applicationid com opentrace themeexperiment minsdkversion 24 targetsdkversion 30 versioncode 1 versionname 1 0 testinstrumentationrunner androidx test runner androidjunitrunner buildtype release minifyenable false proguardfile getdefaultproguardfile proguard android optimize txt proguard rule pro compileoption sourcecompatibility javaversion version 1 8 targetcompatibility javaversion version 1 8 kotlinoption jvmtarget 1 8 dependency implementation org jetbrain kotlin kotlin stdlib kotlin version implementation androidx core core ktx 1 3 2 implementation androidx appcompat appcompat 1 2 0 implementation com google android material material 1 3 0 implementation androidx constraintlayout constraintlayout 2 0 4 testimplementation junit junit 4 androidtestimplementation androidx test ext junit 1 1 2 androidtestimplementation androidx test espresso espresso core 3 3 0 android api version groovy minsdkversion 24 targetsdkversion 30 material library version groovy implementation com google android material material 1 3 0 also try with groovy implementation com google android material material 1 4 0 alpha01 device razer phone 1st generation
materialcomponentsmaterialcomponentsandroid
chip set current drawable state for update icon
Bug
description when chipicon update and that icon be not stateful the current state of the view check etc be ignore but chip can have chipicontint and in result we can have icon without actual tint state expect behavior before icon update before icon update after icon update after icon update source code chipstyle xml choice chip icon tint xml chip in layout xml and simply need change icon in code material library version 1 4 0 alpha01 and less
materialcomponentsmaterialcomponentsandroid
textinputlayout outlinedbox boxstrokecolor doesn t work with colorstatelist for the disabled state
Bug
hello I use an outlinedbox with the follow style with my stroke color define as a colorstatelist expect behavior description of expect behavior material v 1 3 0 do handle the focus true enable true state color1 and the focus false enable true state color3 but not the enable false state color2 it should be note that v 1 3 0 rc01 do handle the 3 state android api version android 11 2021 03 05 material library version 1 3 0 device google pixel 3xl
materialcomponentsmaterialcomponentsandroid
tablayout tablayout do not scroll to select tab without viewpager
Bug
when I have tablayout with tabmode scrollable then select a tab do not cause view to scroll to select tab like it happen after I manually click on tab the select tab indicator move fine there be a possible workaround use it with view pager and select item in viewpager do the job but if I do not need viewpager then I do not like do workaround to make it fine
materialcomponentsmaterialcomponentsandroid
progressindicator width and height not update with indicatorsize
Bug
description when I set the indicatorsize programmatically for a circularprogressindicator the width and the height be not update alongside which result in a cropped progress indicator expect behavior what s the point of set the indicatorsize programmatically if the view s size be not update alongside be there a reason so should I manually update the width and the height when I update the indicatorsize material library version 1 4 0 alpha01
materialcomponentsmaterialcomponentsandroid
materialtimepicker be pm position incorrect
Bug
the am pm location be on the wrong side and the width be incorrect image expect behavior it should be on the right hand side source code val picker materialtimepicker builder settimeformat timeformat clock 12h sethour hour of day setminute minute settitletext select time build picker show this supportfragmentmanager selectstarttime android api version api 28 and api 29 material library version 1 4 0 alpha01 device emulator pixel 3 and emulator pixel 3a xl
materialcomponentsmaterialcomponentsandroid
android widget editor nullpointerexception drawhardwareaccelerate
Bug
description crash report to google play console java lang nullpointerexception at android widget editor drawhardwareaccelerate editor java 1872 at android widget editor ondraw editor java 1863 at android widget textview ondraw textview java 7509 at android view view draw view java 20275 at android view view updatedisplaylistifdirty view java 19150 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view viewgroup recreatechilddisplaylist viewgroup java 4391 at android view viewgroup dispatchgetdisplaylist viewgroup java 4364 at android view view updatedisplaylistifdirty view java 19110 at android view threadedrenderer updateviewtreedisplaylist threadedrenderer java 686 at android view threadedrenderer updaterootdisplaylist threadedrenderer java 692 at android view threadedrenderer draw threadedrenderer java 801 at android view viewrootimpl draw viewrootimpl java 3433 at android view viewrootimpl performdraw viewrootimpl java 3230 at android view viewrootimpl performtraversal viewrootimpl java 2590 at android view viewrootimpl dotraversal viewrootimpl java 1530 at android view viewrootimpl traversalrunnable run viewrootimpl java 7533 at android view choreographer callbackrecord run choreographer java 1025 at android view choreographer docallback choreographer java 836 at android view choreographer doframe choreographer java 771 at android view choreographer framedisplayeventreceiver run choreographer java 1011 at android os handler handlecallback handler java 873 at android os handler dispatchmessage handler java 99 at android os looper loop looper java 193 at android app activitythread main activitythread java 6854 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 860 android api version android api version here api version 29 material library version material android library version you be use here e g 1 1 0 alpha07 1 1 0 device device on which the bug be encounter here samsung galaxy s8 3 8 8 3 584 mb 3 347 mb qualcomm msm8998 tct alcatel 9029w 3 8 8 2 048 mb 1 897 mb mediatek mt8765a google pixel 5 2 5 9 7 680 mb 7 457 mb qualcomm sm7250 samsung galaxy a70 2 5 9 5 632 mb 1 536 mb qualcomm sm6150 samsung galaxy note20 ultra 5 g 2 5 9 10 752 mb 10 536 mb qualcomm sm8250pro google pixel 3 2 5 9 3 584 mb 3 546 mb qualcomm sdm845 lge lg g7 thinq 1 2 9 3 840 mb 3 646 mb qualcomm sdm845 google pixel 3 xl 1 2 9 3 584 mb 3 546 mb qualcomm sdm845 google pixel 4 1 2 9 5 632 mb 1 536 mb qualcomm sdm855 lge lg k30 1 2 9 2 048 mb 1 859 mb qualcomm msm8917 lenovo tab m8 1 2 9 2 048 mb 1 849 mb mediatek mt8766a samsung galaxy s10e 1 2 9 5 632 mb 1 536 mb qualcomm sm8150 motorola moto g 6 plus 1 2 9 3 840 mb 3 742 mb qualcomm sdm630 google pixel 4 xl 1 2 9 5 632 mb 1 536 mb qualcomm sdm855 samsung galaxy a51 5 g 1 2 9 5 632 mb 1 536 mb qualcomm sm7250 huawei p20 pro 1 2 9 5 888 mb 1 792 mb hisilicon kirin970 at t u705aa 1 2 9 2 816 mb 2 793 mb mediatek mt6762 samsung galaxy a50 1 2 9 5 632 mb 1 536 mb samsung exynos 9610 lge v50s thinq 1 2 9 7 680 mb 5 511 mb qualcomm sm8150 samsung galaxy s20 5 g 1 2 9 10 752 mb 7 583 mb qualcomm sm8250 samsung galaxy a71 5 g 1 2 9 7 424 mb 5 418 mb qualcomm sm7250 samsung galaxy s9 1 2 9 3 584 mb 3 270 mb qualcomm sdm845 samsung galaxy s20 fe 5 g 1 2 9 5 632 mb 1 536 mb qualcomm sm8250 t mobile revvl 5 g 1 2 9 5 632 mb 1 536 mb qualcomm sm7250 samsung galaxy s10 1 2 9 7 680 mb 953 mb qualcomm sm8150 motorola moto g stylus 1 2 9 3 840 mb 3 645 mb qualcomm sm6125
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup rounded outline badly render
Bug
description button in materialbuttontogglegroup be not render correctly for the full rounded corner when cornerradius height 2 image expect behavior fully round outline source code android api version android api 29 material library version 1 3 0
materialcomponentsmaterialcomponentsandroid
materialdatepicker picker do not open at selection date by default
Bug
description I be excited to hear that this issue be resolve with 1 3 0 however in some case the picker still open at an unwanted date and not the selection date in the example below the picker should open on dec 2nd 2020 but open in the year 1900 image when the setend on calendarconstraint be leave out it work as expect though also when setopenat be set to the same value as setselection the picker open correctly source code materialdatepicker builder datepicker setcalendarconstraint new calendarconstraint builder setend 1607299200000l dec 07 2020 00 00 00 utc build setselection 1606867200000l dec 02 2020 00 00 00 utc build show getsupportfragmentmanager dialog android api version 29 material library version 1 3 0 1 4 0 alpha01 device simulator
materialcomponentsmaterialcomponentsandroid
materialcheckbox wrong touch target for link in text
Bug
description when use a checkbox description text that contain a link that have a line break touch target for the clickable text be mess up and can prevent the checkbox from be checkable expect behavior only actually tap on the underlined text should open the link source code create a layout that cause the checkbox text to wrap in a way that cause a line break between word that be part of a link example text with a link xml I have read and agree to the privacy policy android api version 28 reproducible on old and new sdk version material library version 1 3 0 reproducible on old version device avd use the pixel 2 preset reproducible on different device
materialcomponentsmaterialcomponentsandroid
materialbutton indeterminatedrawable not show when use as icon of a materialbutton
Bug
description if I add a indeterminatedrawable to a materialbutton the same way it be do in the catalog app for the chip s it will not show animate and only an empty space will be add expect behavior the indeterminatedrawable should be show and play the animation the same way it do when use in a chip see progressindicatorstandalonedemofragment of the catalog app source code repro project image android api version test on api 24 and 30 material library version 1 3 0 and 1 4 0 alpha01 device android emulator api 24 and 30
materialcomponentsmaterialcomponentsandroid
textinputlayout prefixtext position be wrong when endiconmode be set
Bug
description prefixtext position be wrong when endiconmode be set screenshot from 2021 02 21 12 06 03 expect behavior prefix text should be properly align screenshot from 2021 02 21 12 06 18 source code android api version any material library version 1 3 0 device any android studio layout editor
materialcomponentsmaterialcomponentsandroid
floatingactionbutton hide and show trouble with motionlayout
Bug
description incorrect behavior of fab fab hide fab hide but if I click on fab position fab clicklistener will be call fab show doesn t show fab expect behavior when click on notification item hide fab when click on home or dashboard item show fab source code android api version minsdkversion 23 targetsdkversion 30 material library version 1 3 0 device oneplus 3 and test on emulator
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton hide show animation break
Bug
description unlike regular floatingactionbutton extendedfab have a bug with no animation for show and hide I make a sample project reproduce the bug as well as to show that regular fab have no problem expect behavior source code android api version 28 material library version 1 3 0 device pixel 4 avd samsung galaxy s8 both with android pie
materialcomponentsmaterialcomponentsandroid
materialbutton not show up in android 6 and 7 in release 1 3 0
Bug
description after upgrade the library material button do not show anymore in android 6 and 7 device expect behavior can see the button with the correct background color source code android api version android 6 and 7 material library version 1 3 0 it work again after downgrade to 1 2 0 alpha02 the background be transparent or white that s why we can t see it
materialcomponentsmaterialcomponentsandroid
get select date detail
Bug
description I need to get select date detail separately such as day month year in number not word like feb expect behavior this be what I m try to get year 2021 month 02 day 19 source code mpickdatebutton findviewbyid r i d pick date button mshowselecteddatetext findviewbyid r i d show select date val materialdatebuilder builder datepicker materialdatebuilder settitletext select a date val materialdatepicker materialdatebuilder build mpickdatebutton setonclicklistener materialdatepicker show supportfragmentmanager material date picker materialdatepicker addonpositivebuttonclicklistener log d datepicker activity date string materialdatepicker headertext date epoch value it mshowselecteddatetext settext materialdatepicker headertext result of log d datepicker activity date string materialdatepicker headertext date epoch value it d datepicker activity date string feb 16 2021 date epoch value 1613433600000 apparently datepicker only have headertext option or I couldn t find any other option android api version 23 material library version 1 3 0 device emulator physical device to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog bottomsheetdialog doesn t respect skipcollapse flag
Bug
description when set behavior skipcollapse true flag the initial dialog state remain state collapse l258 which lead to have a state which be not reachable after first interaction kapture 2021 02 18 at 10 12 21 expect behavior I expect the dialog to be fully expand when open with skipcollapse true flag accord to the spec modal bottom sheet that s an expected behavior but I claim that in case when bottom sheet doesn t have any top action we should be able to let the library know to expand the sheet fully source code sample repository l25 android api version 23 all probably material library version 1 3 0 device android emulator with window dpi 480
materialcomponentsmaterialcomponentsandroid
materialcontainertransform freeze lottieimageview
Bug
description materialcontainertransform freeze lottieimageview I be use materialcontainertransform to transition from a fragment to an activity I be set the transitionname to android r i d content the transition be execute well but in the destination activity I have a lottie and it be frozen android api version all material library version 1 3 0 device xiaomi mi a2 pixel xl
materialcomponentsmaterialcomponentsandroid
badgedrawable badgedrawable can only be anchor to a framelayout
Bug
description version 1 30 remove the capability of set badgedrawable in any kind of view limit it to be anchor only on framelayout I could not find any discussion why this feature be remove in 9487c33b8ab50edbcff46cf728531712ab091a85 by the look of it it be remove by mistake that be why I m report this as an issue and not as a feature wcshi and hunterstich could you please explain why this be remove can I create a pr to add this feature back to the code expect behavior badgedrawable should be anchor in any view start in api 18 source code badge updatebadgecoordinate iconview toolbar android api version any material library version 1 3 0 device any
materialcomponentsmaterialcomponentsandroid
com google android material textfield textinputlayout text language be not update after locale update and activity recreate
Bug
description the android hint app helpertext text language in textinputlayout be not update after activity be recreate with new locale this issue have be present since 1 3 0 alpha03 1 3 0 alpha02 be the last release in which it work to my knowledge expect behavior expect text language to be update with new set locale like it do for other component for example materialbutton source code please find a small sample project attach which show the behavior materiallocalechanget zip switch between com google android material material 1 3 0 and 1 3 0 alpha02 to see the difference android api version android api version here api 23 api 29 material library version 1 3 0 device test on emulator and custom tablet to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
tab useless tooltip on tab with text
Bug
description tooltip be show even when the tab have text and tooltip have identical text probably cause by although there be if tab be icon only in description but I don t see how it could make it icon only expect behavior tooltip be not show on tab which have text if there s no contentdescription specify source code xml android api version 30 material library version 1 3 0 device api 30 emulator
materialcomponentsmaterialcomponentsandroid
textinputlayout custom style crash with the style on this component require your app theme to be theme appcompat or a descendant error
Bug
description define a custom style for the textinputlayout crash the app during fragment inflation with the follow error android view inflateexception binary xml file line 11 in com textinputlayout style crash layout main fragment binary xml file line 11 in com textinputlayout style crash layout main fragment error inflate class com google android material textfield textinputlayout I ve experience this issue in a project I m work on and be able to reproduce the crash with a sample project see source code section the sample project have just three component mainactivity mainfragment mainviewmodel the fragment have the follow simple layout while the main theme xml be the follow expect behavior the fragment should inflate correctly and display the textinputlayout with the style set in the theme xml source code please find attach a minimal sample project that can reproduce the issue by just run it on a device along with a crashlog textinputlayoutstylecrash zip textinputlayout style crash log update txt android api version targetsdkversion 30 material library version 1 3 0 device google pixel xl run android 10 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
materialcardview check icon be not display when card be not clickable or not enable
Bug
description check materialcardview display a check icon the check icon be not display if the materialcardview be not check or not enable expect behavior as long as the state have the check flag the check icon should be display source code check icon not display findviewbyid r i d card let it clickable false it isenable true it checkable true it check true check icon not display findviewbyid r i d card let it clickable true it isenable false it checkable true it check true check icon display findviewbyid r i d card let it clickable true it isenable true it checkable true it check true android api version android 10 9 material library version implementation com google android material material 1 3 0 device samsung galaxy s10e samsung galaxy a42
materialcomponentsmaterialcomponentsandroid
appbarlayout lift state doesn t work with dark mode
Bug
description lift state doesn t cause the toolbar to change color when in dark mode unlike when set the elevation expect behavior lift state should change the color in dark mode like when set the elevation android api version 21 material library version 1 3 0 device pixel 4 xl
materialcomponentsmaterialcomponentsandroid
appbarlayout no way to set lift state
Bug
description I need to lift appbarlayout one when view create and keep forever in this state so no matter which setup I will try setlifte true setliftonscroll false behavior will always be as intend by code expect behavior expect that by my command setlifte true will move appbarlayout to lift state and will not be automatically reset by internal lift state resolve logic on next invalidate source code in my opinion the next line cause the problem final boolean change layout setliftedstate lift 1854 line in guthub inside updateappbarlayoutdrawablestate method that will be invoke by onnestedprescroll callback code inside onnestedprescroll also look weird 1315 line in guthub inside updateappbarlayoutdrawablestate method so lifting will be change insde if min max consume 1 scroll coordinatorlayout child dy min max but also will be change again in next line but at least here we have some logic and it look like it could be prevent by isliftonscroll flag android api version I guess any 21 material library version 1 2 1 device zte axon 7
materialcomponentsmaterialcomponentsandroid
textinputlayout app expandedhintenable true doesn t occupy the input area when empty idle
Bug
description use app expandedhintenable true attribute to show the textinputlayout when empty and idle but it doesn t take effect I try 1 3 0 alpha03 and 1 3 0 rc01 I use android hint item title app expandedhintenable true expect behavior to show the textinputlayout expand design screen source code android api version 29 material library version 1 3 0 alpha03 and 1 3 0 rc01 device pixel 4xl
materialcomponentsmaterialcomponentsandroid
bottomnavigator error when migrate to version 1 3 0
Bug
hi when I migrate from version 1 2 1 to version 1 3 0 I get this error 2021 02 11 21 46 46 447 16352 16352 br com ubook ubookapp e androidruntime fatal exception main process br com ubook ubookapp pid 16352 java lang nullpointerexception attempt to invoke virtual method int android view viewgroup getpaddingbottom on a null object reference at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 108 at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 89 at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 85 at com google android material bottomnavigation bottomnavigationmenuview getnewitem bottomnavigationmenuview java 634 at com google android material bottomnavigation bottomnavigationmenuview buildmenuview bottomnavigationmenuview java 563 at com google android material bottomnavigation bottomnavigationpresenter updatemenuview bottomnavigationpresenter java 67 at com google android material bottomnavigation bottomnavigationview inflatemenu bottomnavigationview java 349 at br com ubook ubookapp ui fragment mainfragment createall mainfragment kt 185 at br com ubook ubookapp ui fragment basefragment oncreateview basefragment kt 127 at androidx fragment app fragment performcreateview fragment java 2699 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 320 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1199 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1368 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1446 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1509 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2181 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 2004 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1959 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1861 at androidx fragment app fragmentmanager dispatchstatechange fragmentmanager java 2641 at androidx fragment app fragmentmanager dispatchactivitycreated fragmentmanager java 2589 at androidx fragment app fragmentcontroller dispatchactivitycreate fragmentcontroller java 247 at androidx fragment app fragmentactivity onstart fragmentactivity java 541 at androidx appcompat app appcompatactivity onstart appcompatactivity java 210 at br com ubook ubookapp ui activity baseactivity onstart baseactivity kt 552 at android app instrumentation callactivityonstart instrumentation java 1391 at android app activity performstart activity java 7348 at android app activitythread handlestartactivity activitythread java 3138 at android app servertransaction transactionexecutor performlifecyclesequence transactionexecutor java 180 at android app servertransaction transactionexecutor cycletopath transactionexecutor java 165 at android app servertransaction transactionexecutor executelifecyclestate transactionexecutor java 142 at android app servertransaction transactionexecutor execute transactionexecutor java 70 at android app activitythread h handlemessage activitythread java 1948 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 214 at android app activitythread main activitythread java 7050 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 494 at com android internal os zygoteinit main zygoteinit java 965 the line with error be navigationleft inflatemenu r menu navigation leave 3 and the content be I revert it to 1 2 1 to make it work for now
materialcomponentsmaterialcomponentsandroid
navigationrail error when compile error resource attr headerlayout aka io material catalog attr headerlayout not find
Bug
description an error occur when attempt to compile and run the late catalog demo app or most likely all of the other project that export the navigation rail component on an android device none ps c user edric studioproject material component android gradlew catalog installdebug task catalog processdebugresource fail failure build fail with an exception what go wrong execution fail for task catalog processdebugresource a failure occur while execute com android build gradle internal task worker actionfacade android resource linking fail c user edric studioproject material component android lib build intermediate package re debug value value xml 3807 5 3822 23 aapt error resource attr headerlayout aka io material catalog attr headerlayout not find c user edric studioproject material component android lib build intermediate package re debug value value xml 3823 5 3877 23 aapt error resource attr headerlayout aka io material catalog attr headerlayout not find try run with stacktrace option to get the stack trace run with info or debug option to get more log output run with scan to get full insight get more help at build fail in 13 30 actionable task 2 execute 28 up to date expect behavior the compilation process should be successful and the demo app should be deploy on the android device or the library should be successfully compile with no issue source code the error appear to be introduce from the commit e13610e589be1b1f785e3ece09ccd038a7a15ab6 which introduce the navigation rail component android api version n a material library version late change from the master branch device n a to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputedittext hint overlap edittext
Bug
description when edittext have focus hint doesn t up perfectly it overlap edittext I use style filledbox same come with outlinedbox work perfectly source code android api version any material library version 1 3 0 device any
materialcomponentsmaterialcomponentsandroid
crash no compoment relate crash when call getlocale on api level 19
Bug
description in version 1 3 0 there be a bug that cause a fatal crash that can not be handle with try catch construction look like the library insert a new locale that can not be parse on old api level the stacktrace be attach stacktrace txt also when run on new api level the code run fine but in comparison to version 1 2 1 there be a one new locale expect behavior no crash getlocale method simply return an array of locale source code public class mainactivity extend appcompatactivity override protect void oncreate bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout activity main getresource getasset getlocale the crash happen here android api version 19 material library version 1 3 0 device emulator with api level 16 19
materialcomponentsmaterialcomponentsandroid
textinputedittext not display text while type only display after tap anywhere in the screen
Bug
I have two field username and password when type username no issue work fine when type password text be not display only display after tap anywhere else in screen or tap do in keypad I be set password eye icon programatically like below passwordlayout setendiconmode textinputlayout end icon password toggle passwordlayout setendicondrawable getdrawable getdrawable show hide password passwordlayout setendicontintlist colorstatelist valueof getresource getcolor r color color white test on library v1 3 1 mi a2 android version 10
materialcomponentsmaterialcomponentsandroid
textinputlayout outlinedbox height change size after first frame
Bug
when a textinputlayout contain a textinputedittext be initially draw the outlinedbox height be the same size as the textinputedittext height which be set to wrap content then in updateedittextheightbasedonicon the minimum height be change edittext setminimumheight maxiconheight this result in the minimum height change on the next frame make the box around the textinputedittext jump in size this happen whether or not there be visible icon on the textinputlayout and look really janky my affected textinputlayout have visibility set to go at first which be later set to visible and do that may make it easy to reproduce set the text size to 10sp be not necessary but it make the issue much more obvious test on android api 30 library v1 3 0 pixel 2xl
materialcomponentsmaterialcomponentsandroid
materialalertdialog the style on this component require your app theme to be theme appcompat
Bug
description I m have random crash when try to create materialalertdialog the message the style on this component require your app theme to be theme appcompat this be happen in some device while be not happen in other for instance I have an a71 android 10 and be ok but crashlytic report too many so far all related to the same issue and there be also a71 report in crashlytic with the same issue I m set a custom view into the alert dialog and in some instance I m create the builder from a static utility class that I can use across the application the source code below be from one of the case but I still have many issue with other alert dialog relate to the same this be a major issue for I because be the source of too many crash and I literally can t reproduce with my device I m aware of the crash only for user report and crashlytic expect behavior the dialog should show without any issue source code public void showchoicedialog view randomgeneratorview view inflate this r layout alert dialog random generator null textinputedittext presidentname randomgeneratorview findviewbyid r i d random president picker name presidentname settext utility getsharedpreference this getstre sp card name empty string numberpicker presidentspicker randomgeneratorview findviewbyid r i d random president picker presidentspicker setminvalue 1 presidentspicker setmaxvalue 45 presidentspicker setvalue utility getsharedpreference this getint random pick 1 new materialalertdialogbuilder this r style alert dialog material theme progress bar settitle r string generate random president name setview randomgeneratorview setpositivebutton r string ok dialog which president clear int randompick presidentspicker getvalue generaterandomcard randompick presidentname gettext null empty string presidentname gettext tostre trim utility savepreference random pick randompick utility editor be int this setnegativebutton r string cancel dialog which show r layout alert dialog random generator theme style logcat from crashlytic cause by java lang illegalargumentexception the style on this component require your app theme to be theme appcompat or a descendant at com google android material internal themeenforcement checktheme themeenforcement java 243 at com google android material internal themeenforcement checkappcompattheme themeenforcement java 213 at com google android material internal themeenforcement checkcompatibletheme themeenforcement java 148 at com google android material internal themeenforcement obtainstyledattributes themeenforcement java 76 at com google android material dialog materialdialog getdialogbackgroundinset materialdialog java 60 at com google android material dialog materialalertdialogbuilder materialalertdialogbuilder java 117 at com google android material dialog materialalertdialogbuilder materialalertdialogbuilder java 103 at com guanacodevs utility utility customalertdialog utility java 411 at com guanacodevs ubv activity activityhome resetgame activityhome java 2117 at java lang reflect method invoke method java at androidx appcompat view supportmenuinflater inflatedonmenuitemclicklistener onmenuitemclick supportmenuinflater java 267 at androidx appcompat view menu menuitemimpl invoke menuitemimpl java 154 at androidx appcompat view menu menubuilder performitemaction menubuilder java 985 at androidx appcompat view menu menubuilder performitemaction menubuilder java 975 at androidx appcompat widget actionmenuview invokeitem actionmenuview java 623 at androidx appcompat view menu actionmenuitemview onclick actionmenuitemview java 151 at android view view performclick view java 6659 at android view view performclickinternal view java 6631 at android view view access 3100 view java 790 at android view view performclick run view java 26187 at android os handler handlecallback handler java 907 at android os handler dispatchmessage handler java 105 at android os looper loop looper java 216 at android app activitythread main activitythread java 7625 at java lang reflect method invoke method java at com android internal os runtimeinit methodandargscaller run runtimeinit java 524 at com android internal os zygoteinit main zygoteinit java 987 android api version 8 9 10 11 material library version material android library version you be use here 1 3 0 device too many to list
materialcomponentsmaterialcomponentsandroid
badge in bottomnavigation illegalargumentexception badgedrawable can not be null
Bug
description so I be currently use badge on tab on a bottom navigation view in my activity like so I occasionally get an illegalargumentexception crash report in my google play console by read the call stack you can trace the issue back to the createparcelablebadgestate function in badgeutil java java give a map of int key to code badgedrawable badgedrawable create a parcelable map of unique int key to code badgedrawable savedstate savedstate useful for state restoration param badgedrawable a link sparsearray that contain a map of int key e g menuitemid to code badgedrawable badgedrawable return a parcelable link sparsearray that contain a map of int key e g menuitemid to code badgedrawable savedstate savedstate nonnull public static parcelablesparsearray createparcelablebadgestate nonnull sparsearray badgedrawable parcelablesparsearray badgestate new parcelablesparsearray for int I 0 I badgedrawable size I int key badgedrawable keyat I badgedrawable badgedrawable badgedrawable valueat I if badgedrawable null throw new illegalargumentexception badgedrawable can not be null this be the error that be be throw badgestate put key badgedrawable getsavedstate return badgestate I have not be able to replicate it myself but I be curious to see if anyone else know about have this issue because it do appear to be regularly occur full callstack java lang illegalargumentexception com google android material badge badgeutil createparcelablebadgestate java lang illegalargumentexception at com google android material badge badgeutil createparcelablebadgestate badgeutil java 136 at com google android material bottomnavigation bottomnavigationpresenter onsaveinstancestate bottomnavigationpresenter java 114 at androidx appcompat view menu menubuilder dispatchsaveinstancestate menubuilder java 332 at androidx appcompat view menu menubuilder savepresenterstate menubuilder java 365 at com google android material bottomnavigation bottomnavigationview onsaveinstancestate bottomnavigationview java 739 at android view view dispatchsaveinstancestate view java 18584 at android view viewgroup dispatchsaveinstancestate viewgroup java 3856 at android view viewgroup dispatchsaveinstancestate viewgroup java 3862 at android view viewgroup dispatchsaveinstancestate viewgroup java 3862 at android view viewgroup dispatchsaveinstancestate viewgroup java 3862 at android view viewgroup dispatchsaveinstancestate viewgroup java 3862 at android view view savehierarchystate view java 18567 at com android internal policy phonewindow savehierarchystate phonewindow java 2100 at android app activity onsaveinstancestate activity java 1717 at androidx core app componentactivity onsaveinstancestate componentactivity java 93 at androidx activity componentactivity onsaveinstancestate componentactivity java 169 at androidx fragment app fragmentactivity onsaveinstancestate fragmentactivity java 509 at androidx appcompat app appcompatactivity onsaveinstancestate appcompatactivity java 544 at android app activity performsaveinstancestate activity java 1644 at android app instrumentation callactivityonsaveinstancestate instrumentation java 1443 at android app activitythread callactivityonsaveinstancestate activitythread java 4926 at android app activitythread callactivityonstop activitythread java 4274 at android app activitythread performstopactivityinner activitythread java 4238 at android app activitythread handlestopactivity activitythread java 4313 at android app servertransaction stopactivityitem execute stopactivityitem java 41 at android app servertransaction transactionexecutor executelifecyclestate transactionexecutor java 145 at android app servertransaction transactionexecutor execute transactionexecutor java 70 at android app activitythread h handlemessage activitythread java 1905 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 193 at android app activitythread main activitythread java 6788 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 493 at com android internal os zygoteinit main zygoteinit java 911 android api version I have see this error happen on device run android 9 all the way up to android 11 material library version com google android material material 1 2 1 device thus far google pixel 4 xl samsung galaxy a11 lge stylo 6 tct alcatel alcatel 3v thank
materialcomponentsmaterialcomponentsandroid
popupmenu background padding top be not respect
Bug
there s documentation describe how to style popupmenu theme menu it show the follow menu as an example image and allegedly it s achieve by set this as a background xml however in reality padding top be not respect and add only additional padding at the bottom of the menu image here I ve set both padding to 24dp exactly as in documentation which result in 48dp padding at the bottom android api version api 26 api 30 material library version 1 3 0 device api 26 emulator api 30 samsung galaxy s10
materialcomponentsmaterialcomponentsandroid
slider slider onchangelistener be be call even when slider s value be not set
Bug
description at the time of come back to fragment with slider from other fragment slider onchangelistener be get call even if the slider s value be not set expect behavior slider onchangelistener should only be call when slider s value be set source code android api version android 29 material library version 1 3 0 device motorola one fusion
materialcomponentsmaterialcomponentsandroid
progress indicator first animate progress update doesn t work
Bug
description animate the first progress update on a linearprogressindicator doesn t animate correctly subsequent progress update will correctly animate the progress indicator I believe this bug be cause during the initialization of the linearprogressindicator by several call that toggle the springanimation between run and not run quickly this cause the mpendingposition property to be corrupt by be set to a value other than unset while an animation isn t run this corrupt mpendingposition property then override the request progress on the first actual animate progress update source code progressindicatorbug zip the attach sample app display a progress indicator that will automatically update it s progress twice the first update isn t animate and isn t reflect by the progress indicator android api version 28 material library version 1 3 0 device android emulator
materialcomponentsmaterialcomponentsandroid
materialcalendar materialdatepicker background draw on top of header background
Bug
description I m use material component 1 3 0 and try to apply a custom style to a materialdatepicker I m try to set a different background color for the body and for the header while the header technically use the correct background color from the materialcalendarheaderlayout style the dialog background still get partially draw on top expect behavior header and body should have separate background color actual behavior image source code xml android api version api 30 material library version 1 3 0 device pixel 3a emulator
materialcomponentsmaterialcomponentsandroid
materialtextview inflateviewexception in create custom dialog use materialalertdialogbuilder
Bug
description full description of issue here the app crash whenever build a custom dialog use context that be not from appcompatactivity I try change theme remove theme completely but still crash want to create my own custom dialog so I can call it from anywhere but still keep on crash during inflation I be fail to understand what be miss theme be e androidruntime fatal exception main 02 05 14 04 41 583 13761 13761 e androidruntime android view inflateexception binary xml file line 9 in com a c layout content alert binary xml file line 9 in com a c content alert error inflate class com google android material textview materialtextview 02 05 14 04 41 583 13761 13761 e androidruntime cause by android view inflateexception binary xml file line 9 in com a c layout content alert error inflate class com google android material textview materialtextview 02 05 14 04 41 583 13761 13761 e androidruntime cause by java lang reflect invocationtargetexception 02 05 14 04 41 583 13761 13761 e androidruntime at java lang reflect constructor newinstance0 native method 02 05 14 04 41 583 13761 13761 e androidruntime at java lang reflect constructor newinstance constructor java 343 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater createview layoutinflater java 852 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater createviewfromtag layoutinflater java 1004 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater createviewfromtag layoutinflater java 959 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater rinflate layoutinflater java 1121 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater rinflatechildren layoutinflater java 1082 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater inflate layoutinflater java 680 02 05 14 04 41 583 13761 13761 e androidruntime at android view layoutinflater inflate layoutinflater java 532 02 05 14 04 41 583 13761 13761 e androidruntime at com a ac a a a as as kt 22 02 05 14 04 41 583 13761 13761 e androidruntime at com a ac a a a aqzz vda kt 15 02 05 14 04 41 583 13761 13761 e androidruntime at com a ac a a a sas bss kt 15 02 05 14 04 41 583 13761 13761 e androidruntime at com a ac a a a ssav a kt 386 02 05 14 04 41 583 13761 13761 e androidruntime at com a ac a a a cav a kt 168 02 05 14 04 41 583 13761 13761 e androidruntime at com a ac a a a asav 1 a a kt 43 02 05 14 04 41 583 13761 13761 e androidruntime at android view view performclick view java 7448 02 05 14 04 41 583 13761 13761 e androidruntime at android view view performclickinternal view java 7425 02 05 14 04 41 583 13761 13761 e androidruntime at android view view access 3600 view java 810 02 05 14 04 41 583 13761 13761 e androidruntime at android view view performclick run view java 28305 02 05 14 04 41 583 13761 13761 e androidruntime at android os handler handlecallback handler java 938 02 05 14 04 41 583 13761 13761 e androidruntime at android os handler dispatchmessage handler java 99 02 05 14 04 41 583 13761 13761 e androidruntime at android os looper loop looper java 223 02 05 14 04 41 583 13761 13761 e androidruntime at android app activitythread main activitythread java 7660 02 05 14 04 41 583 13761 13761 e androidruntime at java lang reflect method invoke native method 02 05 14 04 41 583 13761 13761 e androidruntime at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 02 05 14 04 41 583 13761 13761 e androidruntime at com android internal os zygoteinit main zygoteinit java 947 02 05 14 04 41 583 13761 13761 e androidruntime cause by java lang unsupportedoperationexception fail to resolve attribute at index 5 typedvalue t 0x2 d 0x7f040144 a 8 02 05 14 04 41 583 13761 13761 e androidruntime at android content re typedarray getcolorstatelist typedarray java 597 02 05 14 04 41 583 13761 13761 e androidruntime at android widget textview readtextappearance textview java 4006 02 05 14 04 41 583 13761 13761 e androidruntime at android widget textview textview java 1093 02 05 14 04 41 583 13761 13761 e androidruntime at android widget textview textview java 994 02 05 14 04 41 583 13761 13761 e androidruntime at androidx appcompat widget appcompattextview appcompattextview java 100 02 05 14 04 41 583 13761 13761 e androidruntime at com google android material textview materialtextview materialtextview java 93 02 05 14 04 41 583 13761 13761 e androidruntime at com google android material textview materialtextview materialtextview java 88 02 05 14 04 41 583 13761 13761 e androidruntime at com google android material textview materialtextview materialtextview java 83 02 05 14 04 41 583 13761 13761 e androidruntime 26 more api version 30 material library version material android library version you be use here e g 1 1 0 alpha07 material lib 1 3 0 device device on which the bug be encounter here emulator
materialcomponentsmaterialcomponentsandroid
shapeableimageview corner be not rounded after update to 1 3 0
Bug
description corner be not round in shapeableimageview after update to 1 3 0 it be work properly in 1 2 0 corner be just flat with the update version I have add shape style to the global theme expect behavior corner should be round screenshot 20210206 004836 todafy debug android api version android version 10 samsung one ui 2 0 material library version 1 3 0 device samsung galaxy a30
materialcomponentsmaterialcomponentsandroid
exposeddropdownmenu in night mode show incorrect text color
Bug
in this style widget materialcomponent textinputlayout outlinedbox dense exposeddropdownmenu in night mode the text of dropdown item be black the problem exist just in night mode in day mode everything be ok this text of item of the dropdown when open be show over the colorsurface so they should be use the coloronsurface for the text in screenshot the colorsurface be green the text be unchangeable and it should work correctly without have to be customize in night mode all other aspect work correctly when I select the item it also work by show white text I would expect the behavior to be like the select item color in short the item in the dropdown should match the text color of the select item as you can also see in the screenshot I set the coloronsurface to be white and it will also not change the text to white in the dropdown this problem happen on each device any api material version 1 3 0 rc01 this problem happen on each device can you give I the solution how to solve this issue please
materialcomponentsmaterialcomponentsandroid
progress indicator improve doc for multi color indeterminate progress
Bug
description the documentation be lack some info when it come to multi color progress it be only specify that you can choose between disjoint and contiguous mode but not how to set they and that there s a mininum requirement of 3 color or exception will be throw expect behavior add a snippet like this app indeterminateanimationtype contiguous source code na android api version na material library version 1 3 0 device na
materialcomponentsmaterialcomponentsandroid
snackbar memory leak due to setanchorview
Bug
description anchor work as expect but the listener be never remove and leakcanary be get a memory leak expect behavior it s work as expect snackbar be show above the desire view but there be a memory leak I try reference via idre view from viewbinde view from findviewbyid always the same when I remove setanchroview there be no leak I think it s connect with viewutil addongloballayoutlistener in setanchorview function of basetransientbottombar its never remove after show source code with viewbinde venuerecyclerview snackbar make viewbinde root context getstre r string tap again in map venue snackbar length short setanchorview this show leak canary gc root system class android view inputmethod inputmethodmanager class leak no inputmethodmanager be not leak and a class be never leak static inputmethodmanager sinstance android view inputmethod inputmethodmanager instance leak no decorview be not leak and inputmethodmanager be a singleton inputmethodmanager mcurrootview com android internal policy decorview instance leak no view attach view be part of a window view hierarchy view mattachinfo be not null view attach view mwindowattachcount 1 mcontext instance of com android internal policy decorcontext wrapping activity com upgrade venue user presentation mainactivity with mdestroye false view mattachinfo android view view attachinfo instance leak unknown retain 2 4 mb in 13380 object view attachinfo mtreeobserver android view viewtreeobserver instance leak unknown retain 2 4 mb in 13337 object viewtreeobserver mongloballayoutlistener android view viewtreeobserver copyonwritearray instance leak unknown retain 2 1 mb in 13264 object viewtreeobserver copyonwritearray mdata java util arraylist instance leak unknown retain 2 1 mb in 13262 object arraylist elementdata java lang object array leak unknown retain 2 1 mb in 13261 object object 0 com google android material snackbar basetransientbottombar 2 instance leak unknown retain 2 1 mb in 13260 object anonymous class implement android view viewtreeobserver ongloballayoutlistener basetransientbottombar 2 this 0 com google android material snackbar snackbar instance leak unknown retain 2 1 mb in 13259 object context instance of com upgrade venue user presentation mainactivity with mdestroye false basetransientbottombar anchorview androidx recyclerview widget recyclerview instance leak unknown retain 2 1 mb in 13011 object view not part of a window view hierarchy view mattachinfo be null view detach view mid r i d venue recycler view view mwindowattachcount 1 mcontext instance of dagger hilt android internal manager viewcomponentmanager fragmentcontextwrapper wrap activity com upgrade venue user presentation mainactivity with mdestroye false view mcontext dagger hilt android internal manager viewcomponentmanager fragmentcontextwrapper instance leak unknown retain 172 b in 6 object mbase instance of com upgrade venue user presentation mainactivity with mdestroye false viewcomponentmanager fragmentcontextwrapper wrap an activity with activity mdestroye false viewcomponentmanager fragmentcontextwrapper fragment com upgrade venue user presentation explore exploremapfragment instance leak yes objectwatcher be watch this because com upgrade venue user presentation explore exploremapfragment receive fragment ondestroy callback and fragment mfragmentmanager be null retain 1 9 mb in 10078 object key 90d80d2a 9c93 4a64 960a 5925009d3547 watchdurationmillis 199061 retaineddurationmillis 194060 componentcontext instance of dagger hilt android internal manager viewcomponentmanager fragmentcontextwrapper wrapping activity com upgrade venue user presentation mainactivity with mdestroye false uicontroll instance of com upgrade venue user presentation mainactivity with mdestroye false 2807 byte retain by leak object signature e3e5b03a4f9b45443e8991fe4237eb4ebee6defa android api version any material library version material android library version 1 3 0 rc01 device 2 emulator pixel 2 and pixel c and huawei mate 20 lite
materialcomponentsmaterialcomponentsandroid
tablayout doesn t support datum update without glitche
Bug
description when have a few tab with a viewpager when a data update be send to the adapter the datum will move to a random position instead of stay at the current select one expect behaviour the select tab doesn t move when there be a datum update if you need more detail please see that describe the exact same issue android api version any material library version material android library version 1 3 0