repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
materialcomponentsmaterialcomponentsandroid
badge drawable badge drawable recreate when activity state be restore
Bug
in my app I use bottom navigation with badge and in oncreate of the activity I initialize the badge with this code kotlin val chatbadge bind bottomnav getorcreatebadge r i d recent private message chatbadge maxcharactercount 2 chatbadge badgetextcolor contextcompat getcolor this r color white chatbadge backgroundcolor contextcompat getcolor this r color primarycolor when there be no notification to show I follow this material guildeline to set the visibility of the badge with this code kotlin private fun updatebadgecount badge badgedrawable count int if count 0 hide the badge badge isvisible false else badge number count badge isvisible true every thing work normal except when I toggle the dark mode in android which cause the badge to show dot like this image image after some research I find that when the dark mode be turn on the view be recreate and it s state be restore I may be wrong here on debug the source code it turn out that bottomnavigationpresenter onrestoreinstancestate create badge from the save state so there be two badge that I initialize in oncreate and two badge that the view restore this cause the restore badge to show the dot I hide the visibility of the badge that I create if I use removebadge instead of use visibility everything work fine I don t know if this be the expect behavior or be I miss something in my code any help would be appreciate android api version api 29 material library version 1 1 0 but the same happen with 1 2 0 alpha04 device android emulator
materialcomponentsmaterialcomponentsandroid
classnotfoundexception when unmarshalle com google android material bottomnavigation bottomnavigationview savedstate
Bug
hi guy this bug have be fix in version 1 1 but it still appear we use 1 1 version and it contain fix code 56fbbe9 do you know why
materialcomponentsmaterialcomponentsandroid
bottomappbar set elevation crash in version 1 1 0 stable material libraray android
Bug
beginning of crash 2020 04 25 12 05 30 436 27240 27240 com example spabooke e androidruntime fatal exception main process com example spabooke pid 27240 java lang runtimeexception unable to start activity componentinfo com example spabooking com example spabooking landingactivity android view inflateexception binary xml file line 33 in com example spabooke layout activity land binary xml file line 33 in com example spabooke layout activity land error inflate class com google android material bottomappbar bottomappbar at android app activitythread performlaunchactivity activitythread java 3374 at android app activitythread handlelaunchactivity activitythread java 3513 at android app servertransaction launchactivityitem execute launchactivityitem java 83 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2109 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 214 at android app activitythread main activitythread java 7682 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 516 at com android internal os zygoteinit main zygoteinit java 950 cause by android view inflateexception binary xml file line 33 in com example spabooke layout activity land binary xml file line 33 in com example spabooke layout activity land error inflate class com google android material bottomappbar bottomappbar cause by android view inflateexception binary xml file line 33 in com example spabooke layout activity land error inflate class com google android material bottomappbar bottomappbar cause by java lang reflect invocationtargetexception at java lang reflect constructor newinstance0 native method at java lang reflect constructor newinstance constructor java 343 at android view layoutinflater createview layoutinflater java 854 at android view layoutinflater createviewfromtag layoutinflater java 1006 at android view layoutinflater createviewfromtag layoutinflater java 961 at android view layoutinflater rinflate layoutinflater java 1123 at android view layoutinflater rinflatechildren layoutinflater java 1084 at android view layoutinflater inflate layoutinflater java 682 at android view layoutinflater inflate layoutinflater java 534 at android view layoutinflater inflate layoutinflater java 481 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 555 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 161 at com example spabooking landingactivity oncreate landingactivity java 337 at android app activity performcreate activity java 7815 at android app activity performcreate activity java 7804 at android app instrumentation callactivityoncreate instrumentation java 1318 at android app activitythread performlaunchactivity activitythread java 3349 at android app activitythread handlelaunchactivity activitythread java 3513 at android app servertransaction launchactivityitem execute launchactivityitem java 83 at android app servertransaction transactionexecutor executecallback transactionexecutor java 135 at android app servertransaction transactionexecutor execute transactionexecutor java 95 at android app activitythread h handlemessage activitythread java 2109 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 214 at android app activitythread main activitythread java 7682 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 516 at com android internal os zygoteinit main zygoteinit java 950 2020 04 25 12 05 30 436 27240 27240 com example spabooke e androidruntime cause by java lang nullpointerexception attempt to invoke virtual method void com google android material shape materialshapedrawable setelevation float on a null object reference at com google android material bottomappbar bottomappbar setelevation bottomappbar java 410 at android view view view java 5900 at android view viewgroup viewgroup java 686 at android view viewgroup viewgroup java 682 at androidx appcompat widget toolbar toolbar java 236 at com google android material bottomappbar bottomappbar bottomappbar java 219 at com google android material bottomappbar bottomappbar bottomappbar java 215 28 more description set an android elevation cause nullpointer exception in material version 1 1 0 stable in bottomappbar expect behavior it should not crash obviously source code android api version 28 material library version material android library version you be use here e g 1 1 0 stable device oneplus 6 emulator pixel xl to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
slider negativearraysizeexception
Bug
java lang negativearraysizeexception at com google android material slider slider calculatetickscoordinate slider java at com google android material slider slider onsizechange slider java com google android material appbar headerscrollingviewbehavior layoutchild headerscrollingviewbehavior java 6 at com google android material appbar viewoffsetbehavior k viewoffsetbehavior java it happen often be there a view size limit version 1 2 0 alpha06 value 0 0 1 0 etc constraint variable size
materialcomponentsmaterialcomponentsandroid
chip chip icon do not support icon with different width and height
Bug
description when use a drawable with width great than height vice versa the icon become stretch even after use the attribute chipiconsize expect behavior should show the image correctly source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue the drawable xml android api version 29 material library version 1 2 0 alpha06 device emulator pixel 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 icon be not use its own state to update the color
Bug
side effect of b17d042f description neither erroriconview endiconview and starticonview be use their state when update their color expect behavior icon should be able to update their state if they be check focus hover activate etc source code create a color selector with state check xml the icon do not change it s color when check as it currently only use the textinputlayout state in updateiconcoloronstate android api version any test with 29 and 24 material library version 1 2 0 alpha06 test with master branch device any test with s10 and nexus 6
materialcomponentsmaterialcomponentsandroid
materialalertdialog button theme break on 1 2 0 alpha06 for bridge theme
Bug
description full description of issue here alertdialog theming seem break in 1 2 0 alpha06 with bridge theme expect behavior alpha05 bridge alpha06 bridge alpha06 expect behavior image image image with backgroundtint I can manage to have the correct color with alpha05 bridge but not with alpha06 bridge source code android api version 29 material library version 1 2 0 alpha06 device pixel 3xl
materialcomponentsmaterialcomponentsandroid
textinputlayout seterroriconvisible true be not call
Bug
description textinputlayout seterroriconvisible true be never call if erroricondrawable be set from xml result in custom error icon not show the error icon be only visible if it s explicitly set via seterroricondrawable after textinputlayout seterror text here be call and then set to null after textinputlayout seterror null be set expect behavior textinputlayout seterroriconvisible true be never call because textinputview updateedittextbackground can t be access when indicatorviewcontroller seterrorenable true be call display error source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue style as assignment later error be enable with emailinputlayout error error android api version 28 material library version 1 2 0 alpha06 device nexus s
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder materialalertdialogbuilder crash because of theme
Bug
description java lang illegalargumentexception the style on this component require your app theme to be theme appcompat or a descendant expect behavior shouldn t crash source code materialalertdialogbuilder activity settitle r string logout title setmessage r string logout message setpositivebutton r string logout positive btn label null setnegativebutton r string logout negative btn label null create theme style themeoverlay app materialalertdialog android api version 29 material library version com google android material material 1 2 0 alpha06 device nokia 6 1 plus to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputlayout boxbackgroundcolor not change with state
Bug
description when set boxbackgroundcolor to use a selector the color do not change when state be change expect behavior boxbackgroundcolor should change with state change when use a selector source code drawable background edittext contain android api version 24 material library version 1 1 0 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
materialradiobutton support themeable attribute in buttontint on all version
Bug
description themable attribute in buttontint do not work on api 21 themable attribute work for buttontint in materialcheckbox already expect behavior it should work on all support version as in materialcheckbox source code with selector xml with style xml with theme xml we get red radio on api 21 screenshot 1587383292 insetead of correct blue screenshot 1587390061 android api version 21 material library version 1 1 0 device emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
shapeableimageview issue when extend from shapeableimageview
Bug
description I be currently use a custom imageview to make image have the same height base on its width to make they look tall than wide when I extend from shapeableimageview the corner be set from the drawable height instead of the view height or something like that basically set incorrectly this be how it look it s the imageview inside a cardview the cyan come from the cardbackgroundcolor screenshot 1587230501 this be my current implementation which work fine if I extend from imageview kotlin open class portraitimageview jvmoverloads constructor context context attributeset attributeset null style int 0 imageview context attributeset style private var heightmultiplier float 1 25f init init context attributeset private fun init context context attributeset attributeset val a context obtainstyledattribute attributeset r styleable portraitimageview 0 0 try heightmultiplier a getfloat r styleable portraitimageview heightmultiplier 1 25f finally a recycle override fun onmeasure widthmeasurespec int heightmeasurespec int super onmeasure widthmeasurespec heightmeasurespec setmeasureddimension measuredwidth measuredwidth heightmultiplier toint expect behavior the corner set properly after call setmeasureddimension screenshot 1587230435 source code the same as above just that instead of extend from imageview it d extend from shapeableimageview android api version 29 material library version 1 2 0 alpha06 device pixel 3a
materialcomponentsmaterialcomponentsandroid
bottom sheet not show under navigation bar in edge to edge ui mode
Bug
description I have the new mdc I set my ui to edge to edge as per chris bane go edge to edge guide I actually use his insetter library on github and set my navigation bar to transparent this make my app look cool but the bottom sheet look sooo bad maybe I m just set it up incorrectly would love some help since draw under the navigation bar accord to android dev summit 2019 be a recommend practice reproducible in another project here where I use a bottom sheet
materialcomponentsmaterialcomponentsandroid
bottom sheet can t drag out nav drawer on top of bottom sheet
Bug
description I can t drag out the nav drawer onto a bottom sheet expect behavior allow I to do so even if it take some kind of configuration on the navigation drawer or bottom sheet reproducible here
materialcomponentsmaterialcomponentsandroid
chip unexpected additional small border when use stroke color
Bug
description when use a white stroke color for a chip I see an additional dark outline of the chip s background color screenshot 1587140086 expect behavior screenshot and or description of expect behavior screenshot 1587152935 the desire effect contain no thin ring around the whitespace in order to make it appear as if there be a cutout in the square source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue xml android api version 29 material library version 1 2 0 alpha06 device emulator google pixel 3 xl to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
bottomsheetbehavior not obey peekheight set to hide sheet
Bug
description start in 1 2 0 alpha05 my bottomsheet be still show when initially set I the state to collapse and peekheight to 0 if I revert back to alpha04 and all previous version I have try I can successfully start the activity with the bottom sheet hide by set peek height to 0 after the activity be start I can set the peekheight to 0 and it work just not initially expect behavior I expect set peekheight to 0 to hide the bottom sheet android api version I m test with api version 29 material library version 1 2 0 alpha05 device emulator and pixel phone
materialcomponentsmaterialcomponentsandroid
floatingactionbutton statelistanimator can not be set via xml
Bug
description apple android statelistanimator to floatingactionbutton do not work inflate the animator and set it on the view manually work expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 29 material library version 1 2 0 alpha06 device device on which the bug be encounter here
materialcomponentsmaterialcomponentsandroid
materialbuttontogglegroup checkedbuttonid return incorrect value when work with selectionrequire true
Bug
when use a materialbuttontogglegroup with selectionrequired true checkedbuttonid behave incorrectly if you have only one button leave check and click on it since selectionrequire be use the button will not be unchecked but it will be remove from checkedbuttonid expect behavior click on the last check button will leave it check and leave it in checkedbuttonid source code weekdaysbutton addonbuttoncheckedlistener checkedid bind timeinterval day weekdaysbutton indexofchild activity findviewbyid checkedid weekdaysbutton checkedbuttonid contain checkedid toast maketext context weekdaysbutton checkedbuttonid toast length long show android api version minsdkversion 21 targetsdkversion 28 compilesdkversion 28 material library version 1 2 0 alpha05 device nexus 5x api 28 x86
materialcomponentsmaterialcomponentsandroid
materialbutton android elevation alway use default value
Bug
expect behavior android elevation work for materialbutton even not apply a style source code not work kotlin work kotlin android api version android 9 material library version 1 2 0 alpha06 device xiaomi a1 thank
materialcomponentsmaterialcomponentsandroid
materialautocompletetextview error can not find symbol
Bug
description can not build project after update to 1 2 0 alpha06 android api version 29 material library version 1 2 0 alpha06 revert to 1 2 0 alpha05 fix the problem
materialcomponentsmaterialcomponentsandroid
material button icon be go when circularprogressdrawable be set
Bug
description when use circularprogressdrawable as icon for materialbutton icon be go interestingly when set this drawable to extendedfloatingactionbutton which be child of materialbutton it work fine source code kotlin import androidx swiperefreshlayout widget circularprogressdrawable val drawable circularprogressdrawable this drawable setcolorschemecolor contextcompat getcolor this r color colorprimary drawable strokewidth 8f button icon drawable drawable start android api version 28 pie material library version 1 1 0 device google pixel 3a
materialcomponentsmaterialcomponentsandroid
materialcardview add edgetreatment hide materialcardview
Bug
description I use the materialcardview and set the shapeappearancemodel with an edgetreatment after that the view be not show expect behavior the materialcardview be show with the edgetreatment source code here be an example project material library version not work for verion high than 1 1 0 alpha10
materialcomponentsmaterialcomponentsandroid
textinputlayout material design be not work for hint background selector
Bug
I be use material design 1 1 0 for tab with viewpager2 I update it to 1 2 0 alpha05 material library version it be work fine for single module but be crash for another module where I ve develop my custom material design textinputlayout I change theme from theme appcompat light noactionbar to theme materialcomponent light noactionbar and crash fix after fix crash and upgrading theme it be show I white float label button indiator etc old file have conflict with material while use appcompact with parent widget materialcomponent textinputlayout outlinedbox dense after update to 1 2 0 alpha05 it be resolve but style background be not work now style xml de4c1
materialcomponentsmaterialcomponentsandroid
materialalertdialogbuilder create materialalertdialogbuilder crash with themeenforcement when use webview
Bug
description create instance of materialalertdialogbuilder cause the app crash with error message java lang illegalargumentexception the style on this component require your app theme to be theme appcompat or a descendant weirdly enough there be 2 condition for it 1 web view in activity view or fragment 2 use a wrapper for resource in activity getresource like kotlin override fun getresource resource return appresource super getresource class appresource re resource resource re asset re displaymetric re configuration android api version 8 1 it doesn t crash in 10 or r material library version 1 2 0 alpha05 device android emulator android 8 1 themeenforcementcrash zip
materialcomponentsmaterialcomponentsandroid
textinputlayout focus between textinputedittext and multiple fragment
Bug
description I have 2 fragment xml be the same contain 3 textinputlayout when I be on fragment2 I enter the text in fieldfour I press enter on the keyboard I expect the cursor to move to fieldfive but it do not work I think the cursor fall into the field of fragment1 how to fix this I try if to use edittext all cursor transition work correctly if one fragment with the textinputlayout set have be add cursor transition from one textinputlayout to another be perform correctly thank source code supportfragmentmanager begintransaction add r i d frame fragment1 addtobackstack fragment1 commit supportfragmentmanager begintransaction add r i d frame fragment2 addtobackstack fragment2 commit xml fragment1 xml fragment2 android api version api 29 material library version I use 1 1 0 but there be also 1 2 0 alpha05 device nokia 3 1
materialcomponentsmaterialcomponentsandroid
collapsingtoolbarlayout a title without space isn t display correctly
Bug
description screenshot 1586525028 small use a title without space in a collapsingtoolbarlayout result in the text be lay out below the last line expect behavior the title should break as it do in the screenshot but all the line should be display properly since the title gravity be bottom and the maxline 3 in this example two line should be display source code use the catalog source code update cat topappbar collapse multiline fragment xml to have big margin on the collapsingtoolbarlayout app expandedtitlemarginstart 72dp app expandedtitlemarginend 56dp update the cat topappbar collapse multiline demo toolbar title string value to thisisalongtitlewithoutspace result file catalog java io material catalog topappbar res layout cat topappbar collapse multiline fragment xml catalog java io material catalog topappbar re value string xml thisisalongtitlewithoutspace android api version api 29 material library version 1 2 0 alpha05 device android emulator pixel 3
materialcomponentsmaterialcomponentsandroid
materialdatepicker builder setselection do not index the calendar
Bug
description I can call builder setselection lmydateinmilli and it work great to highlight that date on the calendar but say I set that for 2 month from today the calendar still show the current day and month not what I have set to be the default date expect behavior I would have expect that the calendar open up to the month that I have select the default date in not the current month the user will see the text of the default date but no selection and in the wrong month source code date myfuturedate new date 2 month from now materialdatepicker builder builder materialdatepicker builder datepicker long ldateinmillis myfuturedate gettime builder setselection ldateinmillis android api version api minimum 23 for I material library version 1 1 0 device bluebird ef500 pixel 2 pixel 4
materialcomponentsmaterialcomponentsandroid
catalog demo the main screen be crop after return from feature screen
Bug
description the list be not scrollable to bottom after press item and get back step to reproduce 1 open app s main activity 2 scroll to bottom 3 click transition item 4 press back hardware or arrow 5 see result the bottom item be cut the list be not scrollable to bottom expect behavior the list shouldn t be crop after get back from the transition fragment the list position should remain the same video with the bug android api version android 6 0 material library version 1 2 0 alpha05 device prestigio psp3528duo screen size 480x854 density tvdpi
materialcomponentsmaterialcomponentsandroid
tablayout start offset in rtl direction
Bug
description the tablayout start with a bit of offset from the first item image android api version 29 material library version 1 1 0 device emulator
materialcomponentsmaterialcomponentsandroid
slider slider cause the app to suspend when back from the fragment with enter exit transition
Bug
description slider cause the app to suspend when press back on the fragment which be open with enter and exit transition usecase 1 open the new fragment with slider use this function kotlin fun fragment replacewithstartendtransition fragment fragment parentfragmentmanager commit addtobackstack null fragment entertransition slide gravity end fragment exittransition slide gravity start replace r i d container fragment 2 click the back button 3 app be suspend after change replacewithstardendtransition funtion to replace kotlin fun fragment replace fragment fragment parentfragmentmanager commit addtobackstack null replace r i d container fragment everything work fine expect behavior fragment will close normally with exit transition source code example code the sample app contain two button that show the difference the first one open sliderfragment use replace fragment fragment function after click back sliderfragment disappear normally the second button be use replacewithstartendtransition fragment fragment to open sliderfragment after click back whole application suspend android api version 29 material library version 1 2 0 alpha05 device samsung s9 plus android 10 emulator pixel 3xl api r emulator pixel 2 android 8 1
materialcomponentsmaterialcomponentsandroid
bottomnavigationview custom animation with navigation component
Bug
problem can t set the custom animation to navigation action when use bottomnavigationview with navigation component by normal way bottomnavigationview setupwithnavcontroller navcontroller expect behavior use animation from navigation graph of nav controller or give we the way to pass navoption with our default animation to navigationui setupwithnavcontroller bottomnavigationview navcontroller method source code navigationui java line 74 force set default animation to all navigation java public static boolean onnavdestinationselecte nonnull menuitem item nonnull navcontroller navcontroller navoption builder builder new navoption builder setlaunchsingletop true setenteranim r anim nav default enter anim setexitanim r anim nav default exit anim setpopenteranim r anim nav default pop enter anim setpopexitanim r anim nav default pop exit anim if item getorder menu category secondary 0 builder setpopupto findstartdestination navcontroller getgraph getid false navoption option builder build try todo provide proper api instead of use exception as control flow navcontroller navigate item getitemid null option return true catch illegalargumentexception e return false method navigationui setupwithnavcontroller bottomnavigationview navcontroller do many work for we just only one thing leave animation
materialcomponentsmaterialcomponentsandroid
textinputlayout null pointer exception on setboxcornerradii
Bug
description in version 1 1 0 call textinputlayout setboxcornerradii radius radius radius radius before textinputlayout addview edittext cause null pointer exception because of boxbackground be null in 1 0 0 version all work fine
materialcomponentsmaterialcomponentsandroid
textinputlayout property boxbackgroundcolor not change correctly
Bug
description change the component s property do not have the expect behavior source code container odd boxbackgroundcolor contextcompat getcolor requirecontext color android api version 29 material library version com google android material material 1 2 0 alpha05 device mi 8
materialcomponentsmaterialcomponentsandroid
materialbutton create a button with a style programmatically do not set all attribute
Bug
when create a materialbutton in code and pass a style from style xml not all attribute apply to the button specifically backgroundtint icontint and textcolor although there may be other when build the component from an xml layout all styling be apply correctly expect behavior style should be apply as if they be create in xml val button materialbutton newcontext null r style widget cladwell button filtercapsule android api version 29 material library version 1 2 0 aplpha05
materialcomponentsmaterialcomponentsandroid
snackbar can t change top and bottom padding of snackbar s text view
Bug
description set 0dp change the start and end padding but the top and bottom remain unchanged set android paddingtop and android paddingbottom have the same effect qemu system x86 64 qczzwldmet from the layout inspector studio64 w5ajhnfaxv expect behavior the top and bottom padding change similar to start and end source code xml android api version 29 material library version 1 2 0 alpha05 device android emulator pixel 2
materialcomponentsmaterialcomponentsandroid
chip group app singleselection doesn t work with add dynamically chip
Bug
I declare chipgroup on xml I add checkable chip dynamically from a fragment with code below and I initilize only one chip to be check datum foreach item val chip chip context chip text item datum name chip ischeckediconvisible true chip ischeckable true chip isclickable true chip ischecke item isselecte cg time addview chip when I run the application one chip get check as expect but when I click on other chip I get two chip check the previous chip be still check in conclusion I think there be a bug on app singleselection please clarify this problem thank in advance
materialcomponentsmaterialcomponentsandroid
drawable drawableleftcompat doesn t work
Bug
description when upgrade to the late version of material component the app do not start and say appt drawableleftcompat and drawablestartcompat not find source code mtrl alert select dialog multichoice xml android api version 21 device emulate device
materialcomponentsmaterialcomponentsandroid
textinputlayout hint visible when transition between activity
Bug
description the hint be visible when transition between activity for example if the second activity contain the textinputlayout and we be transition to the activity fade the view the hint element be not fade but just appear with 100 opacity here you can the issue record from my example project as you can see the label hint be not fade when transition hrvw0 20200402 141603 expect behavior the label should fade and behave the same way as the component source code mainactivity class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main button setonclicklistener val bundle activityoptionscompat makescenetransitionanimation this tobundle activitycompat startactivity this intent this main2activity class java bundle main2activity class main2activity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main2 android api version 29 material library version 1 2 0 alpha05 device pixel 3
materialcomponentsmaterialcomponentsandroid
materialbutton drawablestart doesn t work both in preview nor in device
Bug
description materialbutton android drawablestart doesn t work both in preview nor in device it end up the same whether you re use xml drawable or bitmap expect behavior drawable expect to be draw at the start of the materialbutton result behavior screenshot 1585826764 from top to bottom drawableend drawablestart drawabletop drawablebottom source code android api version api 22 and above might have also happen on early apis material library version 1 1 0 device android studio emulator
materialcomponentsmaterialcomponentsandroid
shapeableimageview wrong with shapeableimageview when set the stroke size too large
Bug
description if set the stroke size too large it will show like the follow pic source code mainactivity iv shapeappearancemodel shapeappearancemodel builder setallcornersize shapeappearancemodel pill build activity main android api version 29 material library version com google android material material 1 2 0 alpha05
materialcomponentsmaterialcomponentsandroid
materialdatepicker number be not align on the center
Bug
description number be not align on the center screenshot 1585816072 expect behavior number should be align on the center source code note the same behavior occur even before add any style android api version 29 material library version 1 1 0 device oneplus 6 t and all nexus emulator
materialcomponentsmaterialcomponentsandroid
textinputlayout show hide password icon be mix up
Bug
description I be use with true to create the ui for a password entry with a show hide password toggle the behavior match the spec from the material guideline show here outline text field however these feel entirely counter intuitive and google s own behavior for other app do not match this current behavior component show password component hide password expect behavior and google s own behavior hide password show password android api version all version material library version 1 2 0 alpha05 device all device
materialcomponentsmaterialcomponentsandroid
tablayout tab don t take badge into consideration when measure width
Bug
description when a tablayout be set to tabgravity center and it contain a tab with a badgedrawable the badge get cut off if the drawable extend beyond the right bind of its tab tab badge cutoff expect behavior a tablayout tab should take the size of its badge into consideration when determine its width relevant code tab getorcreatebadge apply number 100 maxcharactercount 3 isvisible true android api version android 29 material library version 1 1 0 1 2 0 alpha05 device pixel 3
materialcomponentsmaterialcomponentsandroid
materialdatepicker consider use a prefix that be unique to the module
Bug
description the materialdatepicker component embed drawable resource mark as private ic calendar black 24dp xml ic clear black 24dp xml ic edit black 24dp xml ic keyboard arrow leave black 24dp xml ic keyboard arrow right black 24dp xml ic menu arrow down black 24dp xml ic menu arrow up black 24dp xml however those common resource id be not prefix which prevent we from use the same name in our app and force we to pick a different name expect behavior those resource should be prefix to avoid resource conflict for common resource ids mtrl ic calendar black 24dp xml mtrl ic clear black 24dp xml mtrl ic edit black 24dp xml mtrl ic keyboard arrow leave black 24dp xml mtrl ic keyboard arrow right black 24dp xml mtrl ic menu arrow down black 24dp xml mtrl ic menu arrow up black 24dp xml for more information please refer to consideration material library version 1 1 0
materialcomponentsmaterialcomponentsandroid
tab item tab item do not work with view bind throw npe
Bug
description file this in response to comment on I have a view which contain some tabitem with an i d when I try to generate my binding with inflate the app throw an npe on those view this happen on both activity and fragment my work theory be material library be do something horrific like intercept tablayout addview and not actually put the view into the hierarchy synchronously indeed that be the problem 2019 12 09 15 57 32 859 6425 6425 I system out framelayout i d 16908290 2019 12 09 15 57 32 859 6425 6425 I system out linearlayout i d 2131230917 2019 12 09 15 57 32 859 6425 6425 I system out tablayout i d 1 2019 12 09 15 57 32 859 6425 6425 I system out slidingtabindicator i d 1 2019 12 09 15 57 32 859 6425 6425 I system out tabview i d 1 2019 12 09 15 57 32 859 6425 6425 I system out imageview i d 1 2019 12 09 15 57 32 859 6425 6425 I system out textview i d 1 2019 12 09 15 57 32 859 6425 6425 I system out tabview i d 1 2019 12 09 15 57 32 859 6425 6425 I system out imageview i d 1 2019 12 09 15 57 32 859 6425 6425 I system out textview i d 1 please file a bug on the google material library that it should consider retain the id if one be supply I ll repurpose this issue for honor our tool viewbindingignore attribute on arbitrary xml node to at least work around the issue expect behavior tab item work with view bind without throw npe source code require source file could be find at material library version android material dependency com google android material material 1 1 0 beta01
materialcomponentsmaterialcomponentsandroid
materialcontainertransform transition between fragment of same base class layout
Bug
description I m use the same base abstract class and layout xml for a series of on boarding page that application show at start so when transition from one fragment to another in practice the configuration be the same baseintrofragment baseintrofragment except for the concrete class that be independent hellointrofragment signupintrofragment for instance expect behavior expect to see an animation as any other use case but it isn t work it seem that the animation be do before the layout calculation source code baseintrofragment oncreate override fun oncreate savedinstancestate bundle super oncreate savedinstancestate val transition materialcontainertransform requirecontext apply isdrawdebugenable true duration 3000l sharedelemententertransition transition sharedelementreturntransition transition exittransition hold baseintrofragment navigation val extras fragmentnavigatorextra nextbutton to getstre r string transition intro button navcontroller navigate destination null null extra as there only one layout file fragment intro xml there be only one transitionname define in the next button for source destination from two different fragment instance result device 2020 03 27 151541 as the result image show when transition between the first intro screen blue and second intro screen orange the next button that should move between the screen show up in the top left corner until animation be do then be correctly calculate to get into the right position its not the same scenario of the last transition when the button correctly go into the center of the app main fragment the 3s delay be for debug purpose android api version android api version 29 min 19 material library version material android library version 1 2 0 alpha05 device android emulator x86 64 google play apis
materialcomponentsmaterialcomponentsandroid
appbarlayout shadow on navigation bar do not appeark
Bug
description full description of issue here try to get shadow on scrolling but it doesn t work expect behavior screenshot and or description of expect behavior shadow appear on scroll shadow appear if I put a breakpoint in appbarlayout shouldlift source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here android 7 0 material library version material android library version you be use here e g 1 1 0 alpha07 1 2 0 alpha05 device device on which the bug be encounter here huaweip9 lite 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
datepicker date may 31 not show up cause crash
Bug
description may 31 be not show in the calendar unless you open may and scroll down this cause crash no other month or date seem to have this problem test step 1 open calendar will open in march since it s march today 2 use arrow to go to may actual result may 31 be not show you have to scroll down to see it expect result may 31 be show here be the way I ve find to make may 31 show up without scroll down go to may go to march go to may go to july go to may select a start date open the edit date view by press the pen close it change year to 2021 change back to 2020 go to may step to make the calendar crash 1 open calendar 2 select range include may 31 3 apply 4 open calendar 5 go to may actual result crash expect behavior may 31 not show screenshot 2020 03 27 at 11 50 00 may 31 show after start date have be select screenshot 2020 03 27 at 11 50 09 crash open the calendar screenshot 2020 03 27 at 12 06 20 select a start date before may 31 screenshot 2020 03 27 at 12 06 27 may 31 be show because a date have be select screenshot 2020 03 27 at 12 06 39 select an and date after and include may 31 so that may 31 be part of the range screenshot 2020 03 27 at 12 06 50 apply the filter open the calendar again screenshot 2020 03 27 at 12 06 50 go to may use the arrow when in april and you press the right arrow to try to go to may the app crash screenshot red circle crash screenshot 2020 03 27 at 12 07 15 source code override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate setdatepickerbuilder setdatepickerbutton override fun onresume super onresume setdatepickerselection setdatepicker private fun setdatepickerbuilder builder materialdatepicker builder daterangepicker builder apply setinputmode materialdatepick input mode calendar settitletext getstre r string time frame ger val theme resolveorthrow requirecontext r attr materialcalendartheme settheme theme val constraintsbuilder calendarconstraint builder constraintsbuilder setvalidator datevalidatorpointforward now val calendar calendar getinstance timezone gettimezone utc constraintsbuilder setstart calendar timeinmillis calendar add calendar year 1 constraintsbuilder setend calendar timeinmillis setcalendarconstraint constraintsbuilder build setdatepickerselection setdatepicker private fun setdatepicker picker builder build picker apply addonpositivebuttonclicklistener val result it as pair val startdate date result first as long val enddate date result second as long experiencesviewmodel setfilterdatarange startdate enddate loadexperience true addonnegativebuttonclicklistener experiencesviewmodel resetfilterdatadaterange loadexperience true setdatepickerbuilder addondismisslistener datebutton isenable true private fun setdatepickerselection val filterdate experiencesviewmodel filterdata filterdate val filterenddate experiencesviewmodel filterdata filterenddate add an offset of 10 hour to prevent timezone daylight saving cause the calendar to show one day early than the select one val dayoffset 1000 60 60 10 if filterdate null if filterenddate null val selecteddate date filterdate time dayoffset builder setselection pair selecteddate time selecteddate time else builder setselection pair filterdate time filterenddate time private fun setdatepickerbutton datebutton setonclicklistener datebutton isenable false startdatepicker private fun startdatepicker picker show childfragmentmanager picker tostre android api version 27 in emulator material library version 1 2 0 alpha05 device pixel 3 emulator to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
mark as private drawable ic edit black 24dp
Bug
description follow error be show the resource drawable ic edit black 24dp be mark as private in com google android material material drawable ic edit black 24dp be very common because androidstudio create name by default expect behavior screenshot and or description of expect behavior drawable ic edit black 24dp be not mark private source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue I create sample project android api version android api version here this warning be not a run time warn material library version material android library version you be use here e g 1 1 0 alpha07 1 1 0 stable 1 2 0 alpha05 device device on which the bug be encounter here this warning be not a run time warn
materialcomponentsmaterialcomponentsandroid
cardview android attribute not wokre on create custom view
Bug
description I have make a customcardview with imageview and textview then I have add this customcardview two time in layout xml file and third one from code in activity but also in layout second one have style tag with customviewstyle but first one without style tag so when app launch only second one have apply margin and the first and third one just ignore android name attribute I don t know why also all of they just ignore padding also screenshot screenshot 1585266288 source code custom view xml activity main xml mainactivity kt class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main setsupportactionbar toolbar val param layoutparam layoutparam match parent 0 1f val cardview customcardview this cardview layoutparam param content addview cardview customview java public class customcardview extend materialcardview public customcardview context context this context null public customcardview context context attributeset attrs this context attrs r attr customcardviewstyle public customcardview context context attributeset attrs int defstyleattr super context attrs defstyleattr initview attrs defstyleattr private void initview attributeset attrs int defstyleattr typedarray a getcontext obtainstyledattributes attrs r styleable customcardview defstyleattr 0 float imagesize a getdimension r styleable customcardview imagesize 0 float textsize a getdimension r styleable customcardview textsize 0 a recycle inflate getcontext r layout custom view this imageview imageview findviewbyid r i d imageview imageview getlayoutparam height int imagesize imageview getlayoutparam width int imagesize textview textview findviewbyid r i d textview textview settextsize textsize style xml attrs xml android api version 29 material library version 1 2 0 alpha05 device all emulator and device
materialcomponentsmaterialcomponentsandroid
datepicker accessibility navigation mode default talkback swiping navigation can t get to ok or cancel button
Bug
description when do talkback swipe through item on materialdatepicker input mode calendar the accessibility focus never reach to ok and cancel button if current focus be on the last day of a calendar month let say 31 march 2020 and then one do a right swipe the focus directly go to the first day of the next I e 1st april 2020 and vice versa in the process it skip go accessible focus to ok and cancel button expect behavior when current focus be the last day of the month the next focus should go to next touchable focusable visible item I e cancel or ok button source code I believe the issue lie in not correctly handle accessibility in recyclerview for calendar month monthspageradapter maybe set nextfocusrightid and nextfocusrightid attribute on end date and start date cell of a calendar month will solve the issue android api version android api version 28 material library version material android library version material 1 2 0 alpha05 device oneplus 5
materialcomponentsmaterialcomponentsandroid
datepicker accessibility navigation mode default select date cell of materialcalendar be not announce as a select date
Bug
last test version material 1 2 0 alpha05 description when do talkback swiping on calendar date cell and if the current swipe focus be on current select date cell talkback doesn t announce the cell date as a select if one be visually blind he she wouldn t know what be currently select especially if one want to confirm his her selection before swipe to ok button and click on it expect behavior select date cell should announce as a select date android api version test on android api version 28 material library version material android library version you be use material 1 2 0 alpha05 device device on which the bug be encounter oneplus 5
materialcomponentsmaterialcomponentsandroid
textinputlayout outlinebox rtl
Bug
description when I set style to outlinebox the box render on the left side and hint go on the right side expect behavior outline space and hint should go to right source code android api version android api version here android 10 29 material library version 1 2 0 alpha05
materialcomponentsmaterialcomponentsandroid
materialdatepicker window background color apply with an unnecessary alpha
Bug
description I try to set background color to material date picker but an unnecessary alpha affect color that I want to set eg I try to set ff0000 but actual color be ff2626 seem like color affect with an alpha I use colorsurface attr for set color scrcpy mwltgottnw expect behavior color should be set without an unnecessary modification source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version min sdk 19 target sdk 29 material library version 1 2 0 alpha05 device xiaomi mia2 material picker test zip
materialcomponentsmaterialcomponentsandroid
collapsingtexthelper center gravity issue in get actual bound
Bug
there be a problem in getcollapsedtextactualbound that it doesn t care for the center gravity it be just respect rtl it cause problem in textinputlayout hint label when gravity be set to center expect behavior screenshot of the problem image android api version 28 material library version 1 1 0 device device on which the bug be encounter here
materialcomponentsmaterialcomponentsandroid
bottomnavigationview invalid background color in dark mode
Bug
description when I change the background color of botomnavigationview by android background or backgroundtint in the light theme it display correctly but not in the dark one in a dark theme some other color be superimpose which can be disable only through itembackground but then the ripple effect disappear wrong result image expect behavior the color be right image source code fragment xml xml theme xml xml color background primary color xml xml light theme fffffd dark theme 261d32 correct result in ligth theme image wrong result in dark theme image fix 1 I can fix this by itembackground but ripple isn t work xml result image fix 2 I can fix this by change colorsurface theme xml xml xml correct result image android api version I test it on 26 28 and 29 api material library version 1 1 0 device nexus 5x oneplus 6 t emulator pixel 3a
materialcomponentsmaterialcomponentsandroid
compile error due to resource not be prefix
Bug
when integrate a dependency that be use this material component we encounter a compile issue cause by an attribute not be prefix gradle cache transform 1 file 1 1 jetified play service base 16 0 1 aar e61bb1920da7a4a8820cc6b87660c38e re value value xml 47 1 65 21 aapt error duplicate value for resource attr cornersize with config gradle cache transform 1 file 1 1 jetified play service base 16 0 1 aar e61bb1920da7a4a8820cc6b87660c38e re value value xml 47 1 65 21 aapt error resource previously define here we have to exclude this material component from the dependency we add because of this can you prefix these attribute please so it win t cause duplicate value with resource from play service base
materialcomponentsmaterialcomponentsandroid
slider material theme need to be explicitly define to render slider in preview mode
Bug
description without explicitly specify a theme the slider class fail to instantiate in the layout preview mode the activity inherit from apptheme apptheme inherit from theme materialcomponent light noactionbar it build and run fine on the device just that in the preview mode it never get render 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 expect behavior render in preview mode doesn t require extra theme source code
materialcomponentsmaterialcomponentsandroid
slider thumb flicker when reach start or end of slider
Bug
description not always but very often the thumb and its surround holo circle flicker when move the thumb to the start or the end of the slider see this gif sldier flickering expect behavior no flickering should occur source code xml android api version 28 material library version 1 2 0 alpha05 device samsung a70 oneplus 5
materialcomponentsmaterialcomponentsandroid
exposeddropdownmenu change keyboard input type even if non editable
Bug
description I have a non editable exposeddropdownmenu country and a regular textinputlayout below it phone with inputtype phone when phone input layout be focus the keyboard be open and show big digit key I tap on the country dropdown and the keyboard remain open but suddenly change to regular text input type expect behavior the keyboard should hide or maybe stay in the same input type as before the click on dropdown menu source code android api version 29 material library version 1 1 0 1 2 0 alpha05 device nokia 6 1
materialcomponentsmaterialcomponentsandroid
textinputlayout change endicondrawable ignore endicontintlist
Bug
description set the endicondrawable in an initial xml file or in code work as expect change it afterwards do not apply to endicontintlist to the drawable expect behavior always apply the the endicontintlist to the endicondrawable when it change source code kt handler postdelaye inputlayout endicondrawable context getdrawable r drawable ic icon 3000 android api version api 29 material library version 1 2 0 alpha05 device emulator
materialcomponentsmaterialcomponentsandroid
exposeddropdownmenu can t find style widget materialcomponent textinputlayout exposeddropdownmenu
Bug
description unable to use find widget materialcomponent textinputlayout exposeddropdownmenu in style xml despite the fact when I search through the file it exist inside the material library xml expect behavior I should be able to set my style parent to widget materialcomponent textinputlayout exposeddropdownmenu source code android api version min 21 target 29 compile 29 material library version 1 2 0 alpha01 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
textinputlayout placeholder text not center vertical
Bug
description full description of issue here screen shoot 2020 03 24 at 19 36 59 screen shoot 2020 03 24 at 19 37 20 placeholder text not center vertical but align to the top or how can I make it center vertical like editable text source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue xml material library version material android library version you be use here e g 1 1 0 alpha07 1 2 0 alpha05
materialcomponentsmaterialcomponentsandroid
textinputlayout cursor not follow what user type when reach view end
Bug
description when I type long string into the textinputedittext the cursor will stop at the end of the view when I keep type it do not follow the last character the view be not move sideways this be happen only when I use android windowsoftinputmode statehidden adjustpan in the manifest strange thing as well be it doesn t matter if I remove this option on the activity that this be happen when it be use anywhere this bug occur expect behavior cursor follow what user type source code android api version 9 material library version 1 2 0 alpha05 device samsung galaxy a50
materialcomponentsmaterialcomponentsandroid
expose dropdown menu outline style display surface color background when set editable false
Bug
description full description of issue here colorsuface red colorsurface white screen shoot 2020 03 23 at 23 37 21 screen shoot 2020 03 23 at 23 38 48 I try to create an uneditable expose dropdown menu with widget materialcomponent textinputlayout outlinedbox exposeddropdownmenu style if I set attr android editable false for autocompletetextview text field get background of surface color when focus be this the document behavior expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 1 1 0 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
textinputedittext vertically cut off
Bug
description textinputedittext be get vertically cut off screenshot 2020 03 23 at 13 31 55 expect behavior not get cut off just downgrade to 1 1 0 and it work screenshot 2020 03 23 at 13 23 01 source code android api version api 29 material library version 1 2 0 alpha05 device pixel 3a
materialcomponentsmaterialcomponentsandroid
motion bug in container transform
Bug
description when use the container transform with a simple view lead to an unexpected layout behavior device 2020 03 20 115754 mp4 zip the button in the first fragment be position incorrectly when return expect behavior the button should be lay out correctly source code animationbug zip android api version api 29 material library version 1 2 0 alpha05 device google pixel 4 xl samsung galaxy note10
materialcomponentsmaterialcomponentsandroid
chip chip don t work with external keyboard for accessible user
Bug
description I need to use choice chip in a chipgroup everything be work as I want except the external keyboard be not support when I try to navigate through the chip use keyboard tab or arrow key the focus get stick either on first or last chip of my chipgroup expect behaviour when a bluetooth or wired keyboard be connect to device the user should be able to navigate all the chip in a chipgroup use tab and arrow key source code android api version api 23 and api 28 material library version version 1 1 0 device pixel 3 3xl
materialcomponentsmaterialcomponentsandroid
colorsurface bug colorsurface value get a different value in practice
Bug
description full description of issue here just use this color for example ff3c454c take a screenshot and check the real color you get expect behavior screenshot and or description of expect behavior to see the exact value ff3c454c see link at the bottom for video source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue see link at the bottom android api version android api version here 29 material library version material android library version you be use here e g 1 1 0 alpha07 implementation androidx appcompat appcompat 1 1 0 implementation androidx constraintlayout constraintlayout 1 1 3 implementation com google android material material 1 2 0 alpha05 implementation androidx cardview cardview 1 0 0 device device on which the bug be encounter here emulator also write about this here
materialcomponentsmaterialcomponentsandroid
extendedfloatingactionbutton glitchy hide animation for shrink efab
Bug
description if the extendedfloatingactionbutton be shrink by shrink and than you call hide on it the hide animation be glitchy expect behavior the shrinked efab souldn t move to the left at all ezgif com optimize android api version 29 material library version 1 1 0 device emulator android 9 note 9 android 10
materialcomponentsmaterialcomponentsandroid
appbarlayout not detect material theme enforcement in android 7 0
Bug
description appbarlayout crash on init with illegalargumentexception the style on this component require your app theme to be theme appcompat or a descendant only on android 7 when the appbarlayout have a materialcomponent theme and the only child be a tablayout a workaround be to remove the theme attr follow the exception it seem that only on android 7 the code be not detect the enforce material theme attr imagen expect behavior no problem expect other part of my app use appbarlayout with toolbar and other with toolbar and tabslayout without problem use the same materialcomponet theme source code 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 appbar viewutilslollipop setstatelistanimatorfromattrs viewutilslollipop java 46 at com google android material appbar appbarlayout appbarlayout java 215 at com google android material appbar appbarlayout appbarlayout java 199 android api version android 7 0 sdk 24 material library version 1 2 0 alpha05 device any device with android 7 0
materialcomponentsmaterialcomponentsandroid
shapetheming fix a typo
Bug
corner acrss corner across
materialcomponentsmaterialcomponentsandroid
materialcontainertransform elevation disappear during transition
Bug
description elevation on materialcardview disappear during transition 1 I set android transitionname on a materialcardview in fragment a and b 2 in fragment a fragmentnavigator extra extras new fragmentnavigator extra builder addsharedelement view findviewbyid r i d card card build navhostfragment findnavcontroller this navigate r i d action afragment to bfragment null null extras 3 in fragment b materialcontainertransform transition new materialcontainertransform getcontext transition setduration 1000 transition setscrimcolor contextcompat getcolor getactivity android r color transparent setsharedelemententertransition transition
materialcomponentsmaterialcomponentsandroid
slider halo of the slider will be trigger when tap on its superview if superview be clickable
Bug
description put a slider in a container set the container clickable and the halo ripple of the slider will be trigger when tap on the rest area of the container expect behavior the halo of the slider shouldn t be trigger when tap on the rest area of the container source code xml android api version test on api 29 material library version 1 2 0 alpha05 device 2020 03 20 004419
materialcomponentsmaterialcomponentsandroid
toolbar navigation icon color red on android 5 1 1
Bug
description I m use the style style widget materialcomponent toolbar surface I expect it to use my colorsurface and coloronsurface attribute from my theme for the background and the tinting of the hamburger navigation icon my colorsurface color be white my coloronsurface color be black in day light mode this issue be that on android 5 1 1 device the hamburer icon be tint red the background color of the toolbar be white and the title of the toolbar be also black as expect the only red color I m use be for error colorerror I do not understand where this red color come from my app theme parent be theme materialcomponent daynight noactionbar I do not see this bug when use widget materialcomponent toolbar primarysurface on android 5 1 1 but then it use my primary color primary on color which in this case I do not want to use expect behavior I would expect the navigation icon to be black too android api version api 21 material library version material android library version you be use here e g 1 1 0 alpha07 1 1 0 or any 1 2 alpha device lge nexus 4 run android 5 1 1
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
toolbar dark theme actionbar background color be 121212 whereas toolbar s be 282828 in v1 1 0
Bug
the background color of the actionbar be not the same as the toolbar s same go for the text color which be a bit different screenshot 1584379246 manif activity main xml style xml mainactivity kt package greenbit toolbarbug import androidx appcompat app appcompatactivity import android os bundle import androidx appcompat widget toolbar class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val toolbar findviewbyid r i d toolbar toolbar title toolbar
materialcomponentsmaterialcomponentsandroid
dialogwhenlarge dialogwhenlarge bridge style miss
Bug
please add the follow 2 style theme materialcomponent dialogwhenlarge bridge theme materialcomponent light dialogwhenlarge bridge
materialcomponentsmaterialcomponentsandroid
bottomsheetdialog bottomsheetdialog bridge style miss
Bug
please add the follow 2 style theme materialcomponent bottomsheetdialog bridge theme materialcomponent bottomsheetdialog light bridge
materialcomponentsmaterialcomponentsandroid
actionbar toolbar actionbar background color be different than toolbar background color v1 1 0
Bug
description in v1 0 0 when use the default actionbar not toolbar the color of the up button and title be white fff in v1 1 0 the color for the up button be a0a0a0 and for the title e0e0e0 for the toolbar however the color be white in both version this cause inconsistency between activity that show the default actionbar vs those that show the toolbar expect behavior the color be white for both the actionbar and the toolbar source code in the activity actionbar actionbar getsupportactionbar actionbar setdisplayhomeasupenable true material library version 1 1 0 device android emulator
materialcomponentsmaterialcomponentsandroid
tablayout ripple be dark than set color
Bug
hi all my ripple be of color attr colorcontrolhighlight which I override to 11000000 however if I override it on tablayout via its ripple be still way dark than some component next to it on which I manually set a ripple foreground selector for completeness here be the ripple selector I use on my other view first I think it be a mdc thing but then I also override ripplecolor of a materialbutton and that work fine here be a screenshot screenshot 20200313 040540 1 you can see both the button and unselecte tab press and observe tab be way dark
materialcomponentsmaterialcomponentsandroid
component name short description of issue
Bug
description full description of issue here expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
floatingactionbutton fab icon be always black
Bug
hello for some reason when I set an icon use android src on a fab it will force the icon to be black rather than whatever colour the vector icon actually be the issue pop up once I upgrade from 1 0 0 to 1 1 0 and can be see directly from the xml layout preview use android tint do not resolve the issue unfortunately I m also rely on a bug fix in 1 1 0 for another component so it s not like I can revert back to 1 0 and call it a day I try to see if the issue still occur if I open a new application from android studio interestingly the icon will stay black if app theme s parent be set to theme materialcomponent light but show correctly if change to theme appcompat light source code this can be reproduce by open a new project in android studio choose the empty activity option set the apptheme parent to theme materialcomponent light and change the generate activity main xml to this activity main xml ic arrow forward white 24dp xml this be generate as a vector asset within android studio switch com google android material material version between 1 0 0 and 1 1 0 will show the icon change colour material library version 1 0 0 work correctly 1 1 0 alpha01 do not work as expect 1 1 0 do not work as expect 1 2 0 alpha05 do not work as expect I hope that help any solution or workaround would be much appreciate I m happy to answer any question if need all the good medz
materialcomponentsmaterialcomponentsandroid
citrix xenmobile app package contain invalid file name or folder name
Bug
description we have a customer who want to use cloud mdx toolkit when he try to wrap the apk in it follow issue occur app package contain invalid file name or folder name this be an error when an app contain a blacklisted set of character this be a mdx service only security restriction the black list character be link to their know limitation citrix support page I ve check the apk and find out that the issue be cause by these file locate depend on the library version use in drawable 21 drawable 24 when build I use api 29 min 24 ic launcher foreground 0 xml avd hide password 0 xml avd show password 0 xml avd hide password 1 xml avd show password 1 xml avd hide password 2 xml avd show password 2 xml I try to exclude they e g use gradle packaging option but with no success also I m not even sure whether they can be safely exclude be there something I can do why these strange file even exist expect behavior app can be wrap successfully source code n a android api version doesn t depend on android api version material library version try with 1 1 0 beta01 1 1 0 and 1 2 0 alpha05 device n a
materialcomponentsmaterialcomponentsandroid
textinputlayout I don t change underline color for textinput with editext inside it help I
Bug
description I don t change underline color for textinput with editext inside it help I expect behavior screenshot and or description of expect behavior source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version android 4 2 and android 9 0 material library version implementation com google android material material 1 1 0 device android 4 2 and android 9 0 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request
materialcomponentsmaterialcomponentsandroid
com google android material textfield textinputlayout outline overlap hint
Bug
issue hint be cross by the outline of the outlinedbox textinoutlayout no matter the length of the hint expect behavior hint be display without overlap with the box library com google android material material 1 2 0 alpha05 device android 7 1 pax arie 8 orientation always landscape sample code screenshot of the issue screenshot 20200310 140349 screenshot 20200310 140533
materialcomponentsmaterialcomponentsandroid
setonnavigationitemselectedlistener of bottomnavigationview be not trigger
Bug
description onnavigationitemselectedlistener listener be not call when I select any tab in bottomnavigationview private void setupbottomnavigation navcontroller navcontroller bottomnavigationview bottomnavigationview findviewbyid r i d bottom navigation bottomnavigationview setonnavigationitemselectedlistener new bottomnavigationview onnavigationitemselectedlistener override public boolean onnavigationitemselecte nonnull menuitem item if item getitemid r i d search d log d tag onnavigationitemselecte search fragment else log d tag onnavigationitemselecte default fragment return true navigationui setupwithnavcontroller bottomnavigationview navcontroller currently I m use com google android material material 1 2 0 alpha05
materialcomponentsmaterialcomponentsandroid
tablayout tab customview bug after update to material 1 1 0
Bug
tablayout tab with customview width seem force to a specific pixel instead of wrap my content on api 16 leave be api 16 right be api 21 my code val newtab tablayoutid newtab val tv textview this tv text content12345 newtab customview tv tablayoutid addtab newtab android api 16 17 stable 1 1 0 pixel 3 xl avd
materialcomponentsmaterialcomponentsandroid
picker can t access to android picker page status 404
Bug
description 404 page not find on expect behavior website with the doc alternative
materialcomponentsmaterialcomponentsandroid
textinputlayout unable to set a content description to error message
Bug
description unable to set a content description into the error message without have the content description it be difficult to announce certain error message correctly expect behavior there should be a way to set a content description into the error message android api version android api version 28 material library version 1 1 0 device emulator pixel 3
materialcomponentsmaterialcomponentsandroid
expose dropdown menu if dropdown be disabled the arrow still spin on click
Bug
description when implement the menu on android as per if you set isenable false you can click the field and nothing happen but if you click the downward arrow it flip to be upward expect behavior arrow should be disable as well android api version only try on android 10 material library version 1 2 0 alpha05
materialcomponentsmaterialcomponentsandroid
bottomsheet theme materialcomponent bottomsheetdialog use wrong bottomsheet style
Bug
description in source lib java com google android material bottomsheet re value theme xml theme use style widget design bottomsheet modal instead of style widget materialcomponent bottomsheet modal style themeoverlay materialcomponent bottomsheetdialog use style widget materialcomponent bottomsheet modal
materialcomponentsmaterialcomponentsandroid
textinputlayout accessibility edit cursor doesn t appear when activate a textinputlayout
Bug
description edit cursor doesn t appear after activate a textinputlayout when talkback be on easy to test when there be more than two textinputlayout on the screen please follow these step to reproduce 1 turn on the talkback 2 select any view 3 select a textinputlayout 4 select some other view 5 select another textinputlayout it ll be notice the cursor will not be visible when activate the textinputlayout please observe the follow sequence expect behavior the cursor should be visible at the end of the input text when activate the textinputlayout android api version android api version 29 material library version 1 1 0 device samsung galaxy s10 pixel 3
materialcomponentsmaterialcomponentsandroid
textinputlayout accessibility incorrect error message be announce after activate the textinputlayout
Bug
description incorrect error message be announce after activate the textinputlayout when there be more than one textinputlayout available in their error state this happen in a screen when there be more than one textinputlayout available and their error state be active while the talkback be on please follow these step to reproduce 1 prepare a screen with at least two text input field 2 set all of they with error to activate their error state 3 enable talkback 4 select one text input field and double tap to activate it 5 then select another text input field and double tap to activate it ll be notice error message of the last select textinputlayout will be announce when double tap to activate another textinputlayout can keep select and double tap to activate each textinputlayout and observe the device will announce the error message of the last select textinputlayout please observe the follow sequence the announcement be show at the bottom of the screen expect behavior when double tap to activate a textinputlayout after select it the device should not announce anything other than the soft keyboard be be display android api version android api version 29 material library version 1 1 0 device samsung galaxy s10 pixel 3
materialcomponentsmaterialcomponentsandroid
textinputlayout accessibility focus be lose after activate the clear button
Bug
description the focus touch target be lose after activate the clear button when the talkback be on in a textinputlayout please follow the step below 1 enter some text to the text input field 2 enable talkback 3 select the clear button in the text input field 4 double tap to activate please observe the sequence bellow expect behavior the focus should be transfer to the text input field after activate the clear button when the talkback be on in a textinputlayout android api version android api version 29 material library version 1 1 0 device samsung galaxy s10 pixel 3
materialcomponentsmaterialcomponentsandroid
expose dropdown menu click sound twice when click
Bug
description when implement the menu on android as per if your device or emulator test and verify with both and you click on the field you hear two quick click as if the listener be call twice if you click the little drop down arrow instead of the text field you only hear a single sound expect behavior only a single sound or maybe single event should be fire on click android api version only try on android 10 material library version 1 2 0 alpha05
materialcomponentsmaterialcomponentsandroid
toolbar highlight color not update
Bug
description when you use a widget materialcomponent toolbar primary the coloronprimary be set to colorcontrolnormal in a themeoverlay however the colorcontrolhighlight be not set this mean that if your primary color be very dark you get a dark touch feedback on the dark primary color expect behavior colorcontrolhighlight be set to the on surface color or a variation of it source code you can see it in the catalogue app there be a dark touch feedback on toolbar element in the light theme and a light touch feedback in the dark theme android api version 29 material library version 1 1 0 and 1 2 0 alpha05 device emulator
materialcomponentsmaterialcomponentsandroid
bottomnavigationview weird background use material 1 1 0 and navigation component
Bug
I be use some bottomnavigationviews with transparent background in my app and it be work really well but I have to add budget to my bnv so I add com google android material material 1 1 0 stable version now my bnv have some weird shadow background behind and it look really bad and it s happen everywhere asd asd2 this be on emulator but on a real device be even bad it have trapeze form I be use minsdkversion 26 targetsdkversion 29 navigation version 2 2 0 material version 1 1 0 and my bnv be this be the style and this be the menu if I remove android material 1 1 0 and not exclude material 1 0 0 from navigation component it just look perfect asd3 thank for any help
materialcomponentsmaterialcomponentsandroid
snackbar set layoutparam for snackbarlayout doesn t work
Bug
description there be no effect when try to set layoutparam for the snackbarlayout I e add some margin I try to add margin to the snackbar because I want it not to stick to the bottom edge of the screen instead I want it to float just like show in the material design guideline this bug do not occur on library version 1 0 0 I ve reproduce this issue with version 1 1 0 and also with the late alpha 1 2 0 alpha05 expect behavior expect actual behavior actual source code snackbar snackbar snackbar make getview test snackbar length long snackbar snackbarlayout snackbarlayout snackbar snackbarlayout snackbar getview coordinatorlayout layoutparam layoutparam coordinatorlayout layoutparam snackbarlayout getlayoutparam layoutparam setmargin 32 0 32 32 snackbarlayout setlayoutparam layoutparams snackbar show android api version 29 material library version 1 1 0 and 1 2 0 alpha05 device samsung galaxy s10 and android emulator pixel 2 api 29
materialcomponentsmaterialcomponentsandroid
materialalertdialog style action button invalid positioning
Bug
description when use a custom styling for the dialog action it seem the button positioning ignore the button background and do all the calculation accord to the text expect behavior properly position action with a background source code materialalertdialogbuilder this settitle save setmessage do you wish to save the file setpositivebutton save null setnegativebutton don t save null setneutralbutton cancel null create show android api version android 10 material library version 1 1 0 device pixel 3 xl