repository stringclasses 156 values | issue title stringlengths 1 1.01k ⌀ | labels stringclasses 8 values | body stringlengths 1 270k ⌀ |
|---|---|---|---|
materialcomponentsmaterialcomponentsandroid | toolbar primarysurface toolbar style match primary toolbar style | Bug | description xml expect behavior xml re color material on primary surface emphasis medium xml doesn t exist yet themeoverlay materialcomponent toolbar primarysurface doesn t exist yet android api version n a material library version 1 2 0 alpha03 device n a to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | popup menu icon be squashed in api 21 | Bug | I try either 1 2 0 alpha03 or 1 1 0 rc01 both have the same issue img |
materialcomponentsmaterialcomponentsandroid | materialradiobutton be not work not be inflate as expect | Bug | description materialradiobutton be not show radio button with theme materialcomponent light noactionbar it only show the label without the radio button expect behavior radiobutton component should be show source code materialradiobutton radiobutton new materialradiobutton getcontext radiobutton settext foo radio group addview radiobutton attribute define under theme materialcomponent light noactionbar theme style material radiobutton play around with different attribute of radiobutton and radiogroup too with no success android api version 29 work on other apis material library version com google android material material 1 2 0 alpha03 device different multiple emulator |
materialcomponentsmaterialcomponentsandroid | chip layout preview window do not render chip element | Bug | description after upgrade to version 1 2 0 alpha03 the layout preview window do not render chip element they be draw completely blank without any background stroke text or icon this be solely a visual issue with the preview window as chip be properly render when run on a device the preview window message show the follow render problem path op not support java awt geom illegalpathstateexception miss initial moveto in path definition these element be properly render when use version 1 2 0 alpha02 expect behavior chip should be render properly in the preview window this be use 1 2 0 alpha03 this be use 1 2 0 alpha02 source code android api version 23 material library version 1 2 0 alpha03 device android studio 3 5 3 build ai 191 8026 42 35 6010548 build on november 15 2019 |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment apptheme still do not get apply | Bug | description I see this other issue close fix but I still can not achieve to have the apptheme apply in my bottomsheetdialogfragment expect behavior apptheme be apply correctly to my bottomsheetdialogfragment I still have to do the workaround of val contextthemewrapper contextthemewrapper activity r style apptheme return inflater cloneincontext contextthemewrapper inflate r layout view my bottom sheet dialog fragment container false to make it work 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 alpha03 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker materialdatepicker builder customdatepicker be package private | Bug | description the function materialdatepicker builder customdatepicker be package private this prevent the usage of custom dateselector beyond the provide singledateselector and rangedateselector example of a custom dateselector a rangedateselector that prevent select a date range with the same start and end date expect behavior change the visibility modifier to public for the function materialdatepicker builder customdatepicker to allow for custom dateselector source code set the builder s selection manager to the provide link dateselector nonnull static builder customdatepicker dateselector dateselector return new builder dateselector android api version 24 material library version 1 2 0 alpha03 device all device |
materialcomponentsmaterialcomponentsandroid | shapeableimageview issue loading gif with glide no issue with image | Bug | issue with glide with itemview asgif load item gifpath into thumbnailimageview no issue with glide with itemview load item thumbnailpath into thumbnailimageview test on 3 android device simulator love this new component will be perfect with gif work thank you |
materialcomponentsmaterialcomponentsandroid | button android background not work | Bug | description after I change my app they to theme materialcomponent noactionbar in my xml file button label s android background drawable login btn bg not work and I can t set other color shape or selector they be not work expect behavior button label s android background can normal work when I set my app they to theme materialcomponent noactionbar or other material them source code android api version android 8 1 material library version 1 0 0 device le pro 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 | collapsingtoolbarlayout show pad bottom in imageview | Bug | description when use android fitssystemwindow true and android adjustviewbound true together for imageview in collapsingtoolbarlayout its give padding to imageview at bottom expect behavior screenshot 1578649721 current behavior screenshot 1578483416 source code android api version 29 material library version 1 2 0 alpha03 device all emulator and real device sample app |
materialcomponentsmaterialcomponentsandroid | datepicker incorrect timezone | Bug | description there seem to be some strange behavior with time zone with the new date picker I be in new zealand so our time zone be currently utc 13 and be test around 9 am as show below it be display yesterday as today I increase the valid date range to include yesterday as it be hide if not in the range image also when set the initially select date via materialdatepicker builder datepicker setselection if the millis for a specific utc date time be give it be not account for the time zone offset and be select the day prior currently our workaround be to manually add the millisecond difference from utc to local time android api version min 27 target compile 29 material library version 1 1 0 rc01 device zebra tc51 |
materialcomponentsmaterialcomponentsandroid | textinputlayout textinputlayout not get focus | Bug | description seem like textinputlayout be not get focus when type text the textinputedittext do get focus just textinputlayout doesn t this problem be prevent from colorstatelist for icon tint for example to be ignore color under state focus be not get call because textinputlayout never gain focus expect behavior textinputlayout should be focus or maybe set some other state to be true like activate etc when type to edit text source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue android api version 28 material library version 1 1 0 bet01 |
materialcomponentsmaterialcomponentsandroid | maven release 1 1 0 rc1 miss from maven repository | Bug | description release 1 1 0 rc1 be miss from the official jcenter maven repository it would be great if it can be add previous release candidate e g from 1 0 0 be add as well expect behavior be able to use the release via jcenter maven material library version 1 1 0 rc1 thank in advance |
materialcomponentsmaterialcomponentsandroid | shrine apache library not find | Bug | description when the shrine demo app launch it immediately crash with a stacktrace of such java 2020 01 06 09 09 19 109 10436 10487 io material demo shrine e androidruntime fatal exception thread 10 process io material demo shrine pid 10436 java lang noclassdeffounderror fail resolution of lorg apache http protocolversion at com android volley toolbox hurlstack performrequ hurlstack java 109 at com android volley toolbox basicnetwork performrequ basicnetwork java 96 at com android volley networkdispatcher run networkdispatcher java 112 cause by java lang classnotfoundexception didn t find class org apache http protocolversion on path dexpathlist zip file datum app io material demo shrine xb1jxpl7paazbgpbh7dwga base apk nativelibrarydirectorie datum app io material demo shrine xb1jxpl7paazbgpbh7dwga lib arm64 system lib64 product lib64 at dalvik system basedexclassloader findclass basedexclassloader java 196 at java lang classloader loadclass classloader java 379 at java lang classloader loadclass classloader java 312 at com android volley toolbox hurlstack performrequ hurlstack java 109 at com android volley toolbox basicnetwork performrequ basicnetwork java 96 at com android volley networkdispatcher run networkdispatcher java 112 expect behavior the app should run source code api com android volley volley 1 0 0 android api version 29 material library version late open source update as of january 6th 2019 device pixel 3 |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialog view overlap when setcontentview call multiple time | Bug | description when setcontentview view view method be call a second time or every subsequent time on the same instance of bottomsheetdialog in order to set a new view small height the new view to set overlaps the previous view set on the bottomsheetdialog instead of the previous view be remove first also the height of the bottomsheetdialog be not re calculate when update with the new view with a small height and instead remain the same as the previous view set on that instance of bottomsheetdialog the height seem to be re calculate only when update with the new view with a great height bottomsheetdialog overlap bug expect behavior call setcontentview view view method on an instance of bottomsheetdialog should remove any exist view set and update it with the new view and also re calculate the height of the bottomsheetdialog base on the new view source code bottomsheetdialog dialog new bottomsheetdialog this view view1 layoutinflater from this inflate r layout view1 null dialog setcontentview view1 dialog show view view2 layoutinflater from this inflate r layout view2 null dialog setcontentview view2 android api version android api 29 material library version 1 2 0 alpha03 device google pixel 3a to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | materialdatepicker label be not internationalize | Bug | description each label occur only in english e g start date end date cancel ok etc what s more the only way to change these text be to override private string value e g mtrl picker range header unselecte expect behavior either some customization or auto internationalization of label material library version 1 1 0 r01 |
materialcomponentsmaterialcomponentsandroid | materialcardview cardview will not shrink after first measure | Bug | description this be the same issue that be report in issue 537 but it have still not be add to rc01 the issue and bug fix can be find in the original issue at |
materialcomponentsmaterialcomponentsandroid | tab override preferencetheme affect tab appearance | Bug | description I m use a custom preferencetheme in my apptheme in order to inflate a different layout in a preferencefragment style prefstheme however after open that fragment my tabitem s have also inflate that layout and I need to set android layout null in the tabitem to fix the issue expect behavior preferencetheme usage have no effect on tab source code android api version 29 material library version 1 2 0 alpha 03 device device on which the bug be encounter here 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 | extendedfloatingactionbutton extendedfab size do not adjust when change text | Bug | description extendedfab size do not adjust when shrink extend extendedfab text be change happen in extendedfab once shrink extend happen when with or without collapsingtoolbar expect behavior source code please look change text issue branch android api version 29 material library version 1 1 0 rc01 device pixel 3 xl |
materialcomponentsmaterialcomponentsandroid | extendedfloatingactionbutton make unexpected movement in cooperation with collapsingtoolbar | Bug | description when scroll upward by link collapsingtoolbar and extendedfab extendedfab move down for a moment happen when device be in landscape orientation happen when the content view be recyclerview do not happen when use nestedscrollview happen only for extendedfab do not happen in fab expect behavior movie source code android api version android api 29 material library version 1 1 0 rc01 device pixel 3 xl |
materialcomponentsmaterialcomponentsandroid | slider when select a value not drag the slider the onchange method doesn t notify | Bug | description when I update the libray from com google android material material 1 2 0 alpha02 to com google android material material 1 2 0 alpha03 but when I select a new value the tooltip didn t show and the method of onchange didn t work the same problem occur in the catalog expect behavior it should work like 1 20 alpha02 source code slide valuefrom 0f slide valueto 20f slide stepsize 1f slide setonchangelistener slider value do something android api version android q material library version com google android material material 1 2 0 alpha03 device oneplus 6 |
materialcomponentsmaterialcomponentsandroid | textinputlayout error view display wrong in dialog | Bug | description when use textinputlayout with suffix style in a alertdialog and have a placeholdertext if you invoke seterror the textinputlayout height be change and errorimage be in middle but suffix and placeholder be alight textinputlayout s top when you don t use placeholdertext there be no problem screenshot 2019 12 30 17 08 52 585 io material catalog expect behavior textinputlayout s height should not be change and placeholdertext and suffix should in the middle of the textinputlayout source code this be dialog java layoutinflater inflater activity getlayoutinflater final view layout inflater inflate r layout fabric dialog content select sample mode null alertdialog dialog new materialalertdialogbuilder activity setview layout settitle activity getresource getstre r string inspection plan sample mode selector dialog title setpositivebutton activity getresource getstre r string sure null setneutralbutton activity getresource getstre r string cancel null create this be dialog xml xml and this be what cause the error java tilsamplepercent seterror activity getresource getstre r string fabric sample mode spot coefficient placeholder android api version 26 material library version 1 2 0 alpha03 device xiaomi 5s |
materialcomponentsmaterialcomponentsandroid | snackbar fab shortly jump up before the snackbar slide in from the bottom | Bug | description as it can be see in the 2 second of this video which show 3x slow down snackbar s slide in animation right before the fab button get push up it shortly jump up which be wrong and only then get push as expect it look there be just few draw frame where the fab be misplace but the effect be visually unpleasant expect behavior fab button follow the slide in movement of the snackbar and doesn t jump source code complete app can be clone and import from github com beworker edge to edge once launch the misbehave example be toolbar recyclerview fab in coordinatorlayout one layout fragment note the issue can also be reproduce without edgetoedge block which can be remove completely android api version reproduce with android 10 on the emulator material library version 1 2 0 alpha03 late device the android emulator |
materialcomponentsmaterialcomponentsandroid | materialbutton outlinedbutton not show | Bug | description materialbutton in widget materialcomponent button outlinedbutton style doesn t show anything image expect behavior image source code xml android api version api code 25 material library version 1 2 0 alpha03 device android emulator 7 1 it work with 1 1 0 rc01 |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior bottomsheetbehavior scroll down after expand | Bug | description I have a recyclerview inside bottomsheet firstly it have a few item but after user action the app show additional item when item height be more than the height of the screen it scroll down to the end of the list and a few upper element be not visible until I half close this bottom sheet view expect behavior how can I expand the bottom sheet to full screen without any scroll android api version android 10 material library version 1 0 0 and 1 1 0 rc01 device google pixel 2 |
materialcomponentsmaterialcomponentsandroid | bug sample app doesn t show bottom item text | Bug | description full description of issue here scroll to the bottom expect behavior screenshot and or description of expect behavior bottom item be cut not show text image source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue the sample itself material component android zip android api version android api version here android q material library version material android library version you be use here e g 1 1 0 alpha07 what s on the sample device device on which the bug be encounter here pixel 4 |
materialcomponentsmaterialcomponentsandroid | slider bugging layout editor | Bug | after update to 1 2 0 alpha03 layout editor can not instantiate slider class java lang nosuchfielderror slider trackcolorinactive at com google android material slider slider processattribute slider java 348 in result if reopen layout xml file editor always wait for build finish how it s can be fix |
materialcomponentsmaterialcomponentsandroid | margin gutter recommendation lead to column size not be on grid | Bug | description on breakpoint the table state image or in word for a width of 360dp use margin gutter of 16dp and 4 column 4 column mean 3 gutter the remain width for the 4 column be therefore give as 360 2 x margin 3 x gutter 360 2 x 16 3 x 16 360 5 x 16 280 so the width of one column be 280 4 70 but 70 be not a multiple of the 8 grid visualize in sketch one end up with this image for obvious reason only the first column start at 16 be align to the 8 grid while the end of the first column be not align to the 8 grid as it end on 16 70 86 which be not dividable by 8 same for e g the start of the second column and so on expect behavior describe good practice for this on the documentation e g shall one increase the width of the column to 72 and decrease the gutter accordingly I be myself a beginner and I be highly confused by the fact that there be on the hand clear space guideline and a define grid on the other hand on my first attempt I have to realize it s not possible to do it like this please advice what s good practice thank for any guidance on that also I didn t know where this fit well it s not directly about the component but I also couldn t find a repository just for the guideline |
materialcomponentsmaterialcomponentsandroid | materialbutton long button text get cut off when use maxline 2 and ellipsize end | Bug | description when use a materialbutton with fix width and fix number of text line I try to find a way to deal with dynamic button text that could be too long for the button size when the text be too long for the button the word that don t fit will simply not be display by default thus not indicate that there be word miss when set ellipsize to end the three dot get display but the beginning of the text will be cut off in some situation step to reproduce check out and run this sample project alternatively 1 create a new android project with a single activity 2 add material lib and set material theme 3 use the follow activity layout actual behavior the first letter of the second text line get cut off image expect behavior all word of the text be display fully android api version 28 material library version 1 1 0 beta02 1 2 0 alpha02 device pixel 3a xl |
materialcomponentsmaterialcomponentsandroid | widget materialcomponent button textbutton ripplecolor be not work when set from style for materialalertdialog | Bug | ripplecolor be not work for materialalertdialog I have setup a theme as for the materialalertdialog style material dialog alert and a textbutton style as parent theme theme materialcomponent light noactionbar bridge android api version 21 25 28 29 material library version com google android material material 1 1 0 alpha04 do not see any fix on the new release documentation though |
materialcomponentsmaterialcomponentsandroid | materialcalendar color surface not be apply properly | Bug | description full description of the issue here when a custom theme for the datepicker be use colorsurface be ignore despite the fact of colorprimary coloronprimary and coloronsurface work properly expect behaviour screenshot and or description of expect behaviour attribute colorsurface from overwritten datepicker theme should be use instead of the main theme colorsurface source code image android api version 29 material library version 1 2 0 alpha02 device pixel 3 xl |
materialcomponentsmaterialcomponentsandroid | dialog dialog aren t dark when use materialalertdialogbuilder | Bug | description alertdialog create use materialalertdialogbuilder don t seem to inherit the dark theme from their parent context dialog stay light even if the application have inherit a dark theme both dark and daynight variant affect expect behavior dialog should be dark if the application be use a dark theme source code the activity be use theme materialcomponent daynight noactionbar and the default night mode be set to mode night yes materialalertdialogbuilder this settitle I be light setmessage but I should be dark setpositivebutton close null show android api version 27 8 1 0 material library version 1 2 0 alpha02 |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior crash when diman be provide | Bug | description at bottomsheetbehavior if you set a diman as a value for the behavior expandedoffset attribute it will crash at runtime as it s try to parse it as an int expect behavior we should be able to set diman value in this attribute source code xml app layout behavior com google android material bottomsheet bottomsheetbehavior app behavior expandedoffset actionbarsize java setexpandedoffset a getint r styleable bottomsheetbehavior layout behavior expandedoffset 0 android api version any material library version 1 2 0 alpha02 device any |
materialcomponentsmaterialcomponentsandroid | slider touch event be handle incorrectly when use inside a scrolling container | Bug | description unlike seekbar slider doesn t check if it s inside a scroll container before start the drag process inside ontouchevent this cause scroll event to be wrongly intercept by slider current behavior expect behavior scroll bug scroll fix I m currently work on a pr for this |
materialcomponentsmaterialcomponentsandroid | appbarlayout statusbarforeground not work glitch | Bug | description when use the statusbarforeground feature of the appbarlayout and scroll down you can stil see the toolbar content behind the statusbar this look really weird and do not look like how it be intend at all you can see this in the catalog example app I have include a video in my own app the scrim sometimes appear but do not scroll with the user and be just very glitchy in general video expect behavior when scroll the statusbar should be the set color not transparent source code android api version test on 27 and 29 material library version 1 1 0 beta02 and 1 2 0 alpha02 device pixel emulator |
materialcomponentsmaterialcomponentsandroid | textinputlayout set gravity to center horizontal show outline box cutout at wrong position | Bug | description set gravity on the inner edittext of a textinputlayout to center horizontally do not correctly cut out the outline it only account for the case where gravity be set to center but not to center horizontal setting to center horizontal still show the follow issue image a similar issue have be bring up here expect behavior the outline cutout should behave as if gravity would be set to center source code android api version api 28 material library version 1 2 0 alpha02 device emulator |
materialcomponentsmaterialcomponentsandroid | com google android material bottomnavigation bottomnavigationview ischecked not work | Bug | bottomnavigation ischecke be not work second time step to reproduce 1 set ischecked false from any fragment 2 set ischecke true again will not work |
materialcomponentsmaterialcomponentsandroid | materialcomponentviewinflater should not be mark keep | Bug | l45 l46 this keep annotation will cause materialcomponentviewinflater and thus appcompatviewinflater to be keep even if they be not use this in turn cause every custom subtype of the platform view inside appcompat and their resource to be keep even if unused the annotation should be remove and replace with a conditional keep rule in the aar s consumer proguard rule that only keep materialcomponentviewinflater if appcompatviewinflater be also keep if class androidx appcompat app appcompatviewinflater keep class com google android material theme materialcomponentsviewinflater this allow app which be not use the view inflater to have the majority of these subtype remove by shrink and thus a bunch of their resource to be remove dramatically affect the final apk size |
materialcomponentsmaterialcomponentsandroid | navigationview click effect enhancement | Bug | description I have implement navigationview as below screenshot when the item be click effect like below take place but I can t set that effect when an item be be press I try to use colorstatelist state press but get no luck when click on menu item it s occupy full ripple on menu item as below see below I click home menu it s occupy full ripple on that item expect behaviour this be gmail app below as there star menu be click shape ripple be form when on press that menu I want the exact effect in my navigationview source code I have refer source code of google i 0 2019 app android api version 24 material library version 1 0 0 device xiaomi redmi note 4 |
materialcomponentsmaterialcomponentsandroid | textinputedittext do not detect click event | Bug | description the com google android material textfield textinputedittext do not detect the click event when it be use to write a debug message in logcat or any other use of setonclicklistener expect behavior when click in a textinputedittext show debug message in logcat source code the layout the activity val value findviewbyid r i d value value setonclicklistener log d log click android api version api 28 material library version 1 2 0 alpha02 device xiaomi mi a2 |
materialcomponentsmaterialcomponentsandroid | statusbar status bar not respect primary color in light theme | Bug | description I be override theme materialcomponent daynight and I set colorprimary like this xml color colorprimary every material component respect this include the top action bar but the status bar be still in the default purple accent color like this I try to manually override android statusbarcolor like xml color colorprimaryvariant it solve the problem however when I switch to dark theme the color remain I have search through the entire project to see if there be any color string that correspond to the default purple accent color but I didn t find any be this an expected behavior or should this be handle automatically by the parent theme I e daynight theme expect behavior the status bar should behave like this in light theme and like this in dark theme source code style xml xml color xml xml ff5722 c41c00 03a9f4 67daff android api version 29 material library version 1 2 0 alpha02 device android emulator nexus 5x api 29 x86 |
materialcomponentsmaterialcomponentsandroid | popupmenu radiobutton overflow menu radio button be offset due to radiobutton minwidth in materialcomponent theme | Bug | description due to materialcomponent theme set a minwidth for radiobutton there s an offset with menu radio button material library version happen on 1 1 0 beta02 and 1 2 0 alpha02 screenshot menu radio button menu radio button with 0px minwidth set myself |
materialcomponentsmaterialcomponentsandroid | textview text color isn t adapt | Bug | description android 6 1 always show white text while android10 show always black I m switch between xml |
materialcomponentsmaterialcomponentsandroid | floatingactionbutton not hide after collapse | Bug | description float action button do not hide when call directly after a collapse expect behavior float action button menu collapse and the button be hide source code floatingactionbutton isexpande false floatingactionbutton hide android api version min 27 compile 29 material library version 1 1 0 beta01 device zebra tc51 |
materialcomponentsmaterialcomponentsandroid | tablayout tablayoutmediator detach method cause npe | Bug | description npe be cause due to a call to this adapter unregisteradapterdataobserver with a null this pageradapterobserver this likely mean that I m call it twice or call it before call attach but there s no indication that call this method can result in a npe expect behavior it should catch the npe within the detach method material library version 1 2 0 alpha01 no change regard tablayout that should affect this from 1 2 0 alpha01 1 2 0 alpha02 |
materialcomponentsmaterialcomponentsandroid | appbarlayout the app elevation doesn t set the elevation | Bug | description when the app elevation be use with the appbarlayout the elevation be not set the following be not work the elevation appear though when the android namespace be use expect behavior I would expect the app elevation to work the same as android elevation source code android api version test on android 9 api 28 material library version 1 1 0 beta02 device samsung a20 |
materialcomponentsmaterialcomponentsandroid | chip text alignement be wrong when the text be only one letter and there be no icon | Bug | description when the text of a chip be a single letter and there be no icon or close icon the text alignment be wrong image expect behavior the text on the chip be center source code the bug can be reproduce by modify the catalog app set one of the element of cat chip group text array to a single letter comment the chip setcloseiconvisible true line in catalog java io material catalog chip chipgroupdemofragment java in the app open the chip group demo android api version 28 material library version material 1 2 0 alpha02 and current master device android emulator |
materialcomponentsmaterialcomponentsandroid | theme materialcomponent dialog alert width be not work on dialogfragment | Bug | description dialogfragment do not become the minimum dialog width when use it with theme materialcomponent light dialog alert screenshot 1574923492 when use a dialogfragment with themeoverlay materialcomponent dialog alert or any of appcompat version e g theme appcompat light dialog alert the dialog width be ok the only one different that I find be style declare without android tag expect behavior screenshot 1574923494 source code I m implement a simple app with 4 button each of which launch a dialogfragment with one of the follow theme theme appcompat light dialog alert themeoverlay appcompat dialog alert theme materialcomponent light dialog alert themeoverlay materialcomponent dialog alert demo app android api version 29 material library version 1 1 0 beta02 device any |
materialcomponentsmaterialcomponentsandroid | materialcardview check icon be be squeeze in cardview | Bug | I be use version 1 2 0 alpha02 of the material component I have a list of object each card show information of an object inside a recyclerview each object have status attribute which be a boolean I set ischecked status of each card by the status of the object as you see in the screenshot below the check icon have squeeze selection 005 this be the structure of my layout android api version android api version here const val compilesdkversion 29 const val buildtoolsversion 29 0 2 const val minsdkversion 24 const val targetsdkversion 29 material library version material android library version you be use here e g 1 1 0 alpha07 com google android material material 1 2 0 alpha02 device device on which the bug be encounter here I be test on an android emulator pixel 3 api 29 |
materialcomponentsmaterialcomponentsandroid | slider crash when initialize the view | Bug | description crash when re initialize the view java lang runtimeexception at android app activitythread performlaunchactivity activitythread java 2713 at android app activitythread handlelaunchactivity activitythread java 2774 at android app activitythread wrap12 activitythread java at android app activitythread h handlemessage activitythread java 1511 at android os handler dispatchmessage handler java 102 at android os looper loop looper java 154 at android app activitythread main activitythread java 6300 at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java 887 at com android internal os zygoteinit main zygoteinit java 777 at de robv android xpose xposedbridge main xposedbridge java 107 cause by java lang nullpointerexception at android os parcel readfloatarray parcel java 1048 at com google android material slider slider sliderstate slider java at com google android material slider slider sliderstate slider java at com google android material slider slider sliderstate 1 createfromparcel slider java at com google android material slider slider sliderstate 1 createfromparcel slider java at android os parcel readparcelable parcel java 2471 at android os parcel readvalue parcel java 2365 at android os parcel readsparsearrayinternal parcel java 2813 at android os parcel readsparsearray parcel java 2068 at android os parcel readvalue parcel java 2422 at android os parcel readarraymapinternal parcel java 2732 at android os basebundle unparcel basebundle java 269 at android os bundle getsparseparcelablearray bundle java 934 at androidx fragment app fragmentmanagerimpl movetostate fragmentmanagerimpl java 64 at androidx fragment app fragmentmanagerimpl dispatchcreate fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl addaddedfragment fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl allocbackstackindex fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl begintransaction fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl completeexecute fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchcreateoptionsmenu fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchmultiwindowmodechange fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchstatechange fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl enqueueaction fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl findfragmentbytag fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl getfragment fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl makeopencloseanimation fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl popbackstack fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl putfragment fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl savefragmentinstancestate fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl setbackstackindex fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl addaddedfragment fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl allocbackstackindex fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl begintransaction fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl completeexecute fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchcreateoptionsmenu fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchmultiwindowmodechange fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchstatechange fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl enqueueaction fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl findfragmentbytag fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl getfragment fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl makeopencloseanimation fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl popbackstack fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl putfragment fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl savefragmentinstancestate fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl setbackstackindex fragmentmanagerimpl java at androidx fragment app fragmentmanagerimpl dispatchcreate fragmentmanagerimpl java at androidx fragment app fragmentcontroller dispatchcreate fragmentcontroller java 9 at androidx fragment app fragmentactivity oncreate fragmentactivity java 9 at androidx appcompat app appcompatactivity oncreate appcompatactivity java at com packagename activity mainactivity oncreate mainactivity java at android app activity performcreate activity java 6708 at android app instrumentation callactivityoncreate instrumentation java 1118 at android app activitythread performlaunchactivity activitythread java 2666 at android app activitythread handlelaunchactivity activitythread java 2774 at android app activitythread wrap12 activitythread java at android app activitythread h handlemessage activitythread java 1511 at android os handler dispatchmessage handler java 102 at android os looper loop looper java 154 at android app activitythread main activitythread java 6300 at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java 887 at com android internal os zygoteinit main zygoteinit java 777 android api version 23 29 material library version 1 2 0 alpha01 1 2 0 alpha02 device vince athene osprey udstv harpia nicklaus fn etc mostly motorola |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview strictmode policy violation nonsdkapiusedviolation | Bug | description when enable strict mode with detectnonsdkapiusage the follow issue be report d strictmode strictmode policy violation android os strictmode nonsdkapiusedviolation landroid view view maccessibilitydelegate landroid view view accessibilitydelegate at android os strictmode lambda static 1 strictmode java 407 at android os lambda strictmode lu9ekkhj2hmz0jd3f8k8mnhenxq accept unknown source 2 at java lang class getdeclaredfield native method at androidx core view viewcompat getaccessibilitydelegateinternal viewcompat java 913 at androidx core view viewcompat setaccessibilitydelegate viewcompat java 687 at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 127 at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 84 at com google android material bottomnavigation bottomnavigationitemview bottomnavigationitemview java 80 at com google android material bottomnavigation bottomnavigationmenuview getnewitem bottomnavigationmenuview java 589 at com google android material bottomnavigation bottomnavigationmenuview buildmenuview bottomnavigationmenuview java 521 at com google android material bottomnavigation bottomnavigationpresenter updatemenuview bottomnavigationpresenter java 67 at com google android material bottomnavigation bottomnavigationview inflatemenu bottomnavigationview java 344 at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 226 at com google android material bottomnavigation bottomnavigationview bottomnavigationview java 133 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 com nicolasmilliard socialcat base databinde activitymainbinding inflate activitymainbinding java 44 at com nicolasmilliard socialcat base databinde activitymainbinding inflate activitymainbinding java 38 at com nicolasmilliard socialcat ui mainactivity oncreate mainactivity kt 44 at android app activity performcreate activity java 7802 at android app activity performcreate activity java 7791 at android app instrumentation callactivityoncreate instrumentation java 1306 at android app activitythread performlaunchactivity activitythread java 3245 at android app activitythread handlelaunchactivity activitythread java 3409 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 2016 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 214 at android app activitythread main activitythread java 7356 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 492 at com android internal os zygoteinit main zygoteinit java 930 2019 11 26 12 11 06 670 16627 16627 w system err strictmode vmpolicy violation with policy death shut down expect behavior no android strict mode violation source code add the material bottomnavigationview to a project and enable strictmode val builder vmpolicy builder detectall penaltylog penaltydeath strictmode setvmpolicy builder build android api version 29 material library version com google android material material 1 1 0 beta02 device pixel 2 xl |
materialcomponentsmaterialcomponentsandroid | textinputlayout allow set different value boxstrokecolor and hint text color in disabled state | Bug | I d like to set a box stroke color in disabled state to one color and at the same time set label text color to another color currently it s not possible as both color value be take from disabledcolor stroke color code from textinputlayout v1 2 0 alpha02 if isenable boxstrokecolor disabledcolor hint color if isenable collapsingtexthelper setcollapsedtextcolor colorstatelist valueof disabledcolor collapsingtexthelper setexpandedtextcolor colorstatelist valueof disabledcolor I d like to be able to style they separately via custom attribute |
materialcomponentsmaterialcomponentsandroid | textinputlayout seterror do not respect drawable set by setcompounddrawableswithintrinsicbound | Bug | description set start drawable for edittext input edittext setcompounddrawableswithintrinsicbound r drawable ic user stroker gray 30dp then set non null error to textinputlayout input error if value isnullorempty null else getstre errorid inside textlayoutinput it call updatedummydrawable which try to get relativedrawable final drawable compound textviewcompat getcompounddrawablesrelative edittext and it do not find any start drawable and draw an empty drawable ps I use english language on device icon on leave error on right expect behavior if I call setcompounddrawablesrelativewithintrinsicbound instead of setcompounddrawableswithintrinsicbound everything work fine source code input edittext setcompounddrawableswithintrinsicbound r drawable ic user stroker gray 30dp 0 0 0 input error error android api version targetsdkversion 28 material library version implementation com google android material material 1 2 0 alpha02 device oneplus 7 pro |
materialcomponentsmaterialcomponentsandroid | switchmaterial showtext true bug | Bug | description I m only try set texton textoff stringresource with showtext true for switchmaterial nothing special result be below switch check true image switch check false image source code also programmatically privateswitch apply texton getstre r string private switch on textoff getstre r string private switch off showtext true android api version 29 material library version 1 2 0 alpha02 device pixel 1 oneplus 6 |
materialcomponentsmaterialcomponentsandroid | coordinatorlayout ignore cardbackgroundcolor at materialcardview with bottomsheetbehavior shapeappearance | Bug | description if materialcardview have cardbackgroundcolor and behavior bottomsheetbehavior then when specify shapeappearance cardbackgroundcolor will be ignore expect behavior image actual behavior image source code xml android api version api 28 android 9 0 material library version 1 1 0 beta02 1 2 0 alpha02 device xiaomi mi a1 |
materialcomponentsmaterialcomponentsandroid | tablayout icon not tint on old android version when vectordrawable usesupportlibrary isn t set | Bug | description icon tint fail on old android version when vectordrawable usesupportlibrary isn t set in gradle source code sample tabt zip android api version android 4 4 android 4 1 2 material library version happen on both 1 2 0 alpha02 and 1 1 0 beta02 l2506 in the source of tabview update it look like the icon be retrieve from the tab wrap and tint but never set onto the view wrap return a new object when api level be below 23 and the drawable be not a tintawaredrawable additionally updatetextandicon be call later it call wrap again and do set the new object onto the view but doesn t set the tint |
materialcomponentsmaterialcomponentsandroid | textview emoji large than the textview | Bug | description when I set a textview to be full screen with the text fit as much as possible in it and set one and only one emoji glyph as text the side of the emoji glyph get render outside of the textview this happen only in portrait mode device 2019 11 20 215843 small expect behavior the emoji glyph to be render inside the textview device 2019 11 20 220105 small my workaround be to add one space character before and one after the emoji glyph the result be as see in the image above source code android api version target sdk 29 min sdk 21 material library version material 1 1 0 beta02 and material 1 2 0 alpha02 device emulator 29 2 1 5889189 on android 10 pixel 3xl on android 10 |
materialcomponentsmaterialcomponentsandroid | snackbar long action text hide message text with maxactioninlinewidth | Bug | description when show an snackbar with a long action text and with a message text that do not initially have more than 2 line layout be not set with vertical orientation so action text end up hide almost the message this also happen with maxactioninlinewidth set this do not happen when message text take in any case more than 1 line independently of the length of action text screen shoot 2019 11 20 at 16 14 51 screen shoot 2019 11 20 at 16 17 05 expect behavior component change to vertical orientation when action button be wide than 128dps and the message text need more than 1 line to be paint after action button be draw like in second screenshot android api version test on 28 and 21 both with the issue material library version 1 0 0 late stable device oneplus 5 t |
materialcomponentsmaterialcomponentsandroid | theme action bar text size be too small in landscape mode and with night theme | Bug | description the action bar text size be too small when use landscape mode and night theme at the same time how to reproduce create a new project in android studio with an empty activity add material component version 1 1 0 beta02 to the project in style xml change the parent of the apptheme to theme materialcomponent daynight darkactionbar update the oncreate method in the mainactivity so the app follow the system night mode set run the app and switch to landscape mode with night mode enable expect behavior the action bar title s text size should remain the same regardless of orientation and day night mode actual behavior when use night mode and portrait mode combine the text size be much small than in all other combination dark mode landscape source code source code for the sample app that the above screenshot come from be attach here nightmodelandscape zip android api version 29 material library version 1 1 0 beta02 device pixel 2 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker todayinutcmillisecond strip day information | Bug | description the static method materialdatepicker todayinutcmillisecond return today in millisecond whereby the day be always set to the first of the month expect behaviour the return timestamp correctly reflect the current day as infer by the method name source code inside the com google android material datepicker month constructor private month nonnull calendar rawcalendar rawcalendar set calendar day of month 1 android api version 29 and 24 material library version 1 2 0 alpha01 device pixel 2 xl on api 29 and official emulator with play store on api 24 |
materialcomponentsmaterialcomponentsandroid | bottomsheet shapeappearance darken backgroundtint | Bug | description when I set shapeappearance attribute to the style the backgroundtint color be darken should be white this should be white expect behavior the sheet keep the define backgroundtint color source code xml android api version 29 material library version 1 2 0 alpha01 device pixel 3a |
materialcomponentsmaterialcomponentsandroid | textinputlayout outlinedbox not show | Bug | expect behavior need outlinedbox as in materialcomponent 1 0 0 android api version android api version here material library version com google android material material 1 1 0 beta02 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 | dialog materialalertdialogtheme be not public | Bug | description materialalertdialogtheme be not explicitly mark as public though similar theme attribute be in this file l48 l50 and the attribute be mean for public use this mean that lint will flag its usage in code image expect behavior I d expect the attribute to be mark as public too since it s use in a similar way to the other attribute so that lint doesn t flag it material library version 1 1 0 beta02 |
materialcomponentsmaterialcomponentsandroid | textinputedittext programatically set hint remove float behaviour for hint | Bug | description call sethint on textinputedittext cause it to lose the float hint behaviour when the hint be set via xml it have the float behavriour expect behavior the hint should have the float behaviour irrespective of whether you set it via xml or programatically source code textinputedittext hint foo set the hint but no float behaviour android api version 28 material library version 1 2 0 alpha01 device all |
materialcomponentsmaterialcomponentsandroid | chip chip icon drawable be not tint correctly | Bug | description there be something wrong with the way the chip component handle drawable as illustrate by my example below expect behavior grafik here you can see the same drawable include with a regular imageview on the left and as the chipicon of a chip component on the right clearly the chip fail to apply the correct tinting for the icon that be include in the drawable source code ic list 24dp xml chip icon list xml layout xml excerpt android api version 29 material library version 1 2 0 alpha01 device pixel 4 |
materialcomponentsmaterialcomponentsandroid | materialcheckbox crash with bridge theme and checkboxstyle | Bug | description app crash when these 3 condition be meet layout feature a materialcheckbox bridge theme be use checkboxstyle be set and inherit from widget materialcomponent compoundbutton checkbox expect behavior app doesn t crash android api version 29 material library version 1 1 0 beta01 device emulator x86 stack trace 2019 11 15 16 29 12 941 18783 18783 com test app e androidruntime fatal exception main process com test app pid 18783 android view inflateexception binary xml file line 51 in com test app layout registration page 1 binary xml file line 51 in com test app layout registration page 1 error inflate class com google android material checkbox materialcheckbox cause by android view inflateexception binary xml file line 51 in com test app layout registration page 1 error inflate class com google android material checkbox materialcheckbox 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 androidx fragment app fragment oncreateview fragment java 1737 at androidx fragment app fragment performcreateview fragment java 2695 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 286 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1232 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1398 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1476 at androidx fragment app backstackrecord executeops backstackrecord java 442 at androidx fragment app fragmentmanager executeop fragmentmanager java 2333 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 2120 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 2075 at androidx fragment app fragmentmanager execsingleaction fragmentmanager java 1946 at androidx fragment app backstackrecord commitnow backstackrecord java 297 at androidx viewpager2 adapter fragmentstateadapter placefragmentinviewholder fragmentstateadapter java 341 at androidx viewpager2 adapter fragmentstateadapter onviewattachedtowindow fragmentstateadapter java 276 at androidx viewpager2 adapter fragmentstateadapter onviewattachedtowindow fragmentstateadapter java 67 at androidx recyclerview widget recyclerview dispatchchildattache recyclerview java 7547 at androidx recyclerview widget recyclerview 5 addview recyclerview java 860 at androidx recyclerview widget childhelper addview childhelper java 107 at androidx recyclerview widget recyclerview layoutmanager addviewint recyclerview java 8592 at androidx recyclerview widget recyclerview layoutmanager addview recyclerview java 8550 at androidx recyclerview widget recyclerview layoutmanager addview recyclerview java 8538 at androidx recyclerview widget linearlayoutmanag layoutchunk linearlayoutmanager java 1641 at androidx recyclerview widget linearlayoutmanager fill linearlayoutmanager java 1587 at androidx recyclerview widget linearlayoutmanag onlayoutchildren linearlayoutmanag java 665 at androidx recyclerview widget recyclerview dispatchlayoutstep2 recyclerview java 4132 at androidx recyclerview widget recyclerview dispatchlayout recyclerview java 3849 at androidx recyclerview widget recyclerview onlayout recyclerview java 4402 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at androidx viewpager2 widget viewpager2 onlayout viewpager2 java 514 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1656 at android view view layout view java 21912 2019 11 15 16 29 12 943 18783 18783 com test app e androidruntime at android view viewgroup layout viewgroup java 6260 at android widget linearlayout setchildframe linearlayout java 1829 at android widget linearlayout layoutvertical linearlayout java 1673 at android widget linearlayout onlayout linearlayout java 1582 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at androidx constraintlayout widget constraintlayout onlayout constraintlayout java 1656 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at androidx drawerlayout widget drawerlayout onlayout drawerlayout java 1231 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget linearlayout setchildframe linearlayout java 1829 at android widget linearlayout layoutvertical linearlayout java 1673 at android widget linearlayout onlayout linearlayout java 1582 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget linearlayout setchildframe linearlayout java 1829 at android widget linearlayout layoutvertical linearlayout java 1673 at android widget linearlayout onlayout linearlayout java 1582 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android widget framelayout layoutchildren framelayout java 332 at android widget framelayout onlayout framelayout java 270 at com android internal policy decorview onlayout decorview java 779 at android view view layout view java 21912 at android view viewgroup layout viewgroup java 6260 at android view viewrootimpl performlayout viewrootimpl java 3080 at android view viewrootimpl performtraversal viewrootimpl java 2590 at android view viewrootimpl dotraversal viewrootimpl java 1721 at android view viewrootimpl traversalrunnable run viewrootimpl java 7598 at android view choreographer callbackrecord run choreographer java 966 at android view choreographer docallback choreographer java 790 at android view choreographer doframe choreographer java 725 at android view choreographer framedisplayeventreceiver run choreographer java 951 at android os handler handlecallback handler java 883 at android os handler dispatchmessage handler java 100 at android os looper loop looper java 214 at android app activitythread main activitythread java 7356 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 492 at com android internal os zygoteinit main zygoteinit java 930 cause by java lang unsupportedoperationexception fail to resolve attribute at index 36 typedvalue t 0x2 d 0x7f030263 a 6 at android content re typedarray getdimensionpixelsize typedarray java 781 at android view view view java 5519 at android widget textview textview java 974 at android widget button button java 166 at android widget compoundbutton compoundbutton java 100 2019 11 15 16 29 12 943 18783 18783 com test app e androidruntime at android widget checkbox checkbox java 69 at android widget checkbox checkbox java 65 at androidx appcompat widget appcompatcheckbox appcompatcheckbox java 69 at com google android material checkbox materialcheckbox materialcheckbox java 65 at com google android material checkbox materialcheckbox materialcheckbox java 61 101 more same happen when I use checkbox directly instead of com google android material checkbox materialcheckbox |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview two long click on first button in bottomnavigationview cause mobile restart api24 and api25 | Bug | the library com google android material material 1 1 0 beta02 and com google android material material 1 2 0 alpha01 contain error which cause mobile restart or freeze on api 24 and api 25 it be very easy to simulate it just create the activity with bottomnavigationview and create the menu with two item the first button will do it |
materialcomponentsmaterialcomponentsandroid | materialdatepicker fullscreen set paddedpickerwidth when doc describe 12dp | Bug | description when use the materialdatepicker within my application with fullscreen mode enable I be get an annoying padding behavior which along the side of the calendar which I can only assume should not be there expect behavior as detail in the material design picker doc the margin on the right and leave side of the calendar should only be 12dp but I be see a calculate value this appear to be because the width of mtrl calendar frame be adjust use the method find here l398 l406 this logic make sense for dialog host calendar but when it be in fullscreen the width of the calendar should match parent image actual behavior source code my hunch be that this if statement for fullscreen adjust the layout param for the container shouldn t be there l183 l187 android api version android api 28 material library version 1 1 0 beta2 device pixel 2 android studio emulator |
materialcomponentsmaterialcomponentsandroid | materialdatepicker partial localization | Bug | description there be no method for modify hint input error and header selection text by default if any language other than english be select on the device the text on the dialog be only partially translate in my case part of the text in english and part in russian I be help by redefinition of resource but this be a temporary solution and I do not think that it should be so expect behavior it be expect that there will be a translation into the local language of the device source code example app android api version 28 material library version 1 2 0 alpha01 device emulator pixel 2 xl |
materialcomponentsmaterialcomponentsandroid | chipgroup copy last value instead indexoutofboundsexception | Bug | description when iterate over collection with index in case collection size be big than 1 if we add 1 index there ll be copy chip of last value instead indexoutofboundsexception source code kotlin for I in tag indice 1 val chip chip tagschipgroup context apply text tag I setchipbackgroundcolorresource r color colorcardbackground isclickable true textsize resource getdimension r diman tag text size tagschipgroup addview chip android api version 29 material library version 1 1 0 beta02 device pixel 2 xl |
materialcomponentsmaterialcomponentsandroid | materialcardview card corner leave a blank space | Bug | description materialcardview stroke color do not follow exactly the card corner leave a blank space source code android api version 29 material library version 1 0 0 alpha1 this be the output when card elivation be set as 0 this problem be get fix but I need shadow elivation so please fix this or guide the solution |
materialcomponentsmaterialcomponentsandroid | textinputlayout prefix text animate to from wrong position | Bug | description prerequisite textinputlayout with hint and prefixtext when focus the hint animate from the end of the prefix when un focus the hint animate from the left edge of the view expect behavior the hint should animate to from its position at the start of the view compare the material component behavior to the behavior of this library prefix visual artifact be from save the gif source code android api version the gif above be capture on a pixel 3a emulator run android 10 0 material library version 1 2 0 alpha01 device the gif above be capture on a pixel 3a emulator run android 10 0 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker select year cause display month to jump around | Bug | description with november 2019 show when I click the down arrow next to the year then select a different year like 2020 the display month go to august 2020 august 2021 december 2021 february 2021 august 2020 then april 2020 expect behavior it show a month in 2020 source code java textinputedittext fromdatelayout view findviewbyid r i d from date fromdatelayout setonfocuschangelistener new view onfocuschangelistener override public void onfocuschange view v boolean hasfocus if hasfocus materialdatepicker builder builder materialdatepicker builder datepicker builder settitletext date materialdatepicker picker builder build picker show getfragmentmanager picker tostre android api version 29 material library version 1 2 0 alpha01 device android emulator |
materialcomponentsmaterialcomponentsandroid | ui bug in scrolling demo | Bug | good day your ui setup in android demo doesn t adhere to the device measurement guideline please see attach video the scroll demo get jumble up with the system bar screenshot see video recording device 2019 11 09 180344 mp4 zip |
materialcomponentsmaterialcomponentsandroid | popup menu option | Bug | description I get an issue in the alpha version especially when we use the dark theme in an android application please let I know and see the bug in the screenshot everywhere be black but only the popup menu show some extra width around the menu material library version material android library version currently be use here implementation com google android material material 1 2 0 alpha01 device samsung galaxy j6 infinity screenshot screenshot 20191110 183124 ai 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 | typography be document textappearanceheadline6 font regular correct | Bug | description in document usage image in xml l21 image expect behavior probably we should use regular source code usage l21 android api version all version material library version 1 1 0 beta01 |
materialcomponentsmaterialcomponentsandroid | textinputlayout errorenable param in xml be currently useless and cause trouble | Bug | the current param errorenable can t be use for something useful in its current state 1 there be no errortext property to set in the xml so only have errorenable true define have no mean at all if we can only set the error from code with seterror which automatically enable the error if need we should think about if this make sense at all start with a textinputlayout already show a red error probably be not very useful 2 if we don t want to give the above mention possibility we should deprecate errorenable styleable property and make it no op as it be now in practice because it only add the error view to the captionarea without use it otherwise we need to add an errortext property and handle it like we do for helpertext moreover in the current state I m encounter a bug with this xml if I write a method like this private void seterrortoinput textinput sethelpertextenable false textinput seterror I m an error the first time I call seterrortoinput I get a textinput in error state without the error text visible call it again show the error text too the problem be that we be call seterrorenable true during the textinputlayout construction force the creation of an empty errorview which be hide this break the code in removeindicator helpertextview helper index which remove the helpertext and leave the textinput believe there be an error currently show but that s not the case simply comment seterrorenable from textinputlayout constructor solve the problem wait for member advice on how to proceed if you can take a decision I can proceed with a pr |
materialcomponentsmaterialcomponentsandroid | bug release build failure start from material library 1 1 0 alpha07 | Bug | description when use version 1 1 0 alpha07 or more recent version of material design library release build fail due to proguard warning warn com google android material snackbar basetransientbottombar 6 can t find reference method android graphic inset getmandatorysystemgestureinset in library class android view windowinset warn com google android material snackbar basetransientbottombar 6 can t find reference class android graphic inset warn com google android material snackbar basetransientbottombar 6 can t find reference class android graphic inset warn com google android material snackbar snackbar can t find reference method int getrecommendedtimeoutmillis int int in library class android view accessibility accessibilitymanager expect behavior build should be able to pass fine without have to edit proguard rule material library version 1 1 0 alpha07 and above |
materialcomponentsmaterialcomponentsandroid | materialalertdialog extra space below button if they fill the whole width | Bug | description whenever negative and positive button of a dialog be close to be stack vertically the materialalertdialog add some extra space below they this happen with the follow patch apply to the codebase diff index material theme builder src main java io material materialthemebuilder ui component componentviewholder kt idea additional info subsystem com intellij openapi diff impl patch charsetep utf 8 material theme builder src main java io material materialthemebuilder ui component componentviewholder kt revision b58d3481c3619ca1e944f8c69e53418383489d2e material theme builder src main java io material materialthemebuilder ui component componentviewholder kt date 1573147313000 159 8 159 8 materialalertdialogbuilder view context settitle r string text headline 6 setmessage r string lorem ipsum setpositivebutton r string text button null setnegativebutton r string text button null setpositivebutton long button here null setnegativebutton button null show expect behavior there should be no extra space below the button android api version 28 material library version 1 1 0 beta01 device nexus 4 emulator image all os setting be default include the font size |
materialcomponentsmaterialcomponentsandroid | snackbar appear position change when show after dismiss | Bug | description after dismiss and show again same instance of snackbar it change appear height position expect behavior snackbar should always appear at bottom actual behavior screenshot source code sample project android api version api 29 material library version 1 1 0 beta01 1 2 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | theme 1 2 0 alpha01 break design widget style in bridge theme | Bug | description b1a6256 move some component style from full theme to bridge theme however it move not only the material only component but also component that have a design style which break they in bridge theme expect behavior design widget should retain design style in bridge theme 1 1 0 beta 01 expect actual behavior design widget get material style in bridge theme 1 2 0 alpha01 actual analysis take tablayout as an example it obtain its style attribute here l474 with defstyleattr which be r attr tabstyle and then r style widget design tablayout after b1a6256 defstyleattr suddenly get the material style widget materialcomponent tablayout from tabstyle in the new bridge theme and the design style be no long use which be change wdiget appearance after migrate from an appcompat theme and clearly unexpected for bridge theme so any widget that have a design style should not have its material style move into bridge theme and only material only widget should be move the same as the commit message claim propose fix move design widget style back to full theme from bridge theme these widget be via a search for widget design in the codebase appbarlayout bottomnavigationview collapsingtoolbarlayout floatingactionbutton navigationview scriminsetsframelayout tablayout textinputlayout android api version n a material library version 1 2 0 alpha01 device n a |
materialcomponentsmaterialcomponentsandroid | component name short description of request | Invalid | be your feature request relate to a problem please describe a clear and concise description of what the problem be describe the solution you d like a clear and concise description of what you want to happen describe alternative you ve consider a clear and concise description of any alternative solution or feature you ve consider additional context add any other context or screenshot about the feature request here we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | materialshapedrawable shapepath issue | Bug | it seem that quadtopoint doesn t work properly but addarc and lineto work maybe I do something in wrong way provide please an example of usage quadtopoint screenshot problem view view1 shapeappearancemodel shapeappearancemodel builder setalledge quadedgetreatment 40 dp build everything be ok view2 shapeappearancemodel shapeappearancemodel builder setalledge argedgetreatment 24 dp true build class quadedgetreatment val size float edgetreatment todo override fun getedgepath length float center float f float shapepath shapepath shapepath quadtopoint center size f length 0f view code library version com google android material material 1 2 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | textinputlayout wrong value for focusedstrokecolor | Bug | I m use a normal textinputlayout like this take from the sample with this style and this colorstatelist I would expect that the boxstrokecolor should be equal to ffc107 pick the default colorstatelist value but currently it pick the state enable false one |
materialcomponentsmaterialcomponentsandroid | materialalertdialog dismiss programmatically | Bug | how can I dismiss materialalertdialog programmatically the follow code do not work like alertdialog builder java materialalertdialogbuilder materialalertdialogbuilder new materialalertdialogbuilder this settitle example setpositivebutton ok null show materialalertdialog dismiss |
materialcomponentsmaterialcomponentsandroid | textinputlayout error never go after user press some word in keyboard | Bug | description when I set error and write something the error still show untitled expect behavior when the text change the error must be hide android api version api 29 material library version 1 2 0 alpha01 device nexus 5 |
materialcomponentsmaterialcomponentsandroid | floatingactionbutton setvisibility be restrict | Bug | description call setvisibility raise an inspection error due to it be overridden inside a restrictto annotate class visibilityawareimagebutton expect behavior setvisibility should not raise an inspection error as it s a publicly use method on android view view source code floatingactionbutton setvisibility view visible android api version any material library version 1 0 0 device android studio 3 5 mac |
materialcomponentsmaterialcomponentsandroid | textinputlayout hint text margin incorrect when initially focus | Bug | description within the late 1 2 0 alpha when initially focusse the hint text for a textinputlayout be not in the correct position and encroache on the textinputedittext android 1 2 alpha01 example expect behavior this behavior be work on the late 1 1 0 beta android 1 1 beta01 example source code will update issue when available android api version android 10 api 29 material library version 1 2 0 alpha01 device pixel 3a xl |
materialcomponentsmaterialcomponentsandroid | textinputlayout error icon be always show when boxbackgroundmode none | Bug | description when the boxbackground mode be set to none the textinputlayout always show the error icon at the end a workaround that I find be to set the erroricondrawable to null expect behavior source code android api version 28 material library version 1 1 0 beta01 but I track the issue back to 1 1 0 alpha09 device doesn t matter |
materialcomponentsmaterialcomponentsandroid | textinputlayout hiding end icon clear text | Bug | description when I very very very quickly input two symbol end icon become hidden but still clickable issue expect behavior end icon don t hide android api version 29 material android library version you be use 1 2 0 alpha01 device on which the bug be encounter pixel 3a |
materialcomponentsmaterialcomponentsandroid | slider slider doesn t invalidate on set value | Bug | description slider doesn t invalidate on set value ondraw to be call when the state change expect behavior slider to invalidate whenever the state change source code kotlin fontsizeslider value 0 5f android api version 28 material library version 1 2 0 alpha01 device pixel 3 emulator |
materialcomponentsmaterialcomponentsandroid | appbarlayout appbarlayout return wrong elevation value | Bug | appbarlayout return zero elevation value but the actual elevation value of appbarlayout be r dimen design appbar elevation but it never return that value I think the reason behind this problem be the elevation of appbarlayout be set by evationoverlayanimator |
materialcomponentsmaterialcomponentsandroid | textinputlayout sethint at run time doesn t set isprovidinghint true | Bug | description set android hint on textinputlayout in an xml layout correctly cause it to provide the hint I e isprovidinghint true see l1099 but call textinputlayout sethint at run time do not see l1194 this cause inconsistent behavior when call textinputedittext gethint depend on whether the hint be set in xml or at run time see l71 expect behavior consistent behavior when call textinputedittext gethint irregardless of it be set in xml or at run time I e textinputlayout sethint should also set isprovidinghint true source code this findviewbyid android r i d text1 sethint foobar android api version all material library version 1 1 0 beta01 device all |
materialcomponentsmaterialcomponentsandroid | slider loop on setvalue | Bug | when setvalue slider value 2 be call the listener be invoke even if the new value be equal to the current value of the slider expect behavior listener be not call when the new value be equal to the current value this be expect for two reason consistency with similar apis such as progressbar s setprogress if progress mprogress no change from current return false avoid to push extra boilerplate logic to the user if slider value nextvalue slider value nextvalue source code public void setvalue float value if isvaluevalid value thumbposition value valuefrom valueto valuefrom if hasonchangelistener listener onvaluechange this getvalue material library version 1 2 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | color xml color be not consistently name | Bug | description when watch the develop theme with style android dev summit 19 chris bane and nick butcher mention more than once that we should name our resource consistently it even use color as an example instead of name they primary color it s prefer to use a meaningful name like blue 500 this be not the case with this app orient at showcase the good practice of work with theme style expect behavior color be consistently and correctly name source code |
materialcomponentsmaterialcomponentsandroid | materialdatepicker setselection | Bug | description the select date on the picker be always 1 day less than the give select date expect behavior the select date on the picker must be exactly the same as the give select date source code materialdatepicker builder datepicker setselection selecteddate timeinmillis android api version minsdkversion 23 targetsdkversion 29 material library version 1 1 0 beta01 device android pixel c emulator |
materialcomponentsmaterialcomponentsandroid | materialbutton can t set background color for it | Bug | description normally we initialize a button background by android background color dark orange however in my case it can not change the color into orange it always be white color expect behavior the button color should be orange but it always be white also I print it value of color like this log e timeory global tag the color be gotravelbtn background and the log result be 2019 10 25 11 32 04 946 11308 11308 com xxx timeory e timeory global log the color be android graphic drawable rippledrawable bdad964 source code xml android api version 29 material library version 1 2 0 alpha 01 device pixel 2 api 29 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 textinputlayout setendicononclicklistener not fire | Bug | description textinputlayout setendicononclicklistener not fire android api version android 9 compilesdkversion 28 buildtoolsversion 28 0 3 material library version implementation com google android material material 1 2 0 alpha01 device oppo a52020 textinputlayout textinputcustomendicon view findviewbyid r i d custom end icon if the icon should work as button set an onclicklistener to it textinputcustomendicon setendicononclicklistener custom onclicklistener setendicononclicklistener not fire |
materialcomponentsmaterialcomponentsandroid | materialalertdialog text lineheight isn t apply | Bug | description when try to set the text line height to a materialalertdialog it appear to be ignore this appear to be because it be just extend the alertdialog and not use the the new materialtextview that correctly apply the lineheight expect behavior the specify line height from the text appearance style should be apply source code when the above be assign to textappearancebody2 attribute the lineheight should be apply currently it be not on apis low than 28 android api version android api version here api 26 material library version material android library version you be use here e g 1 1 0 alpha07 1 1 0 beta01 device device on which the bug be encounter here google pixel run oreo 8 1 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker strange behaviour of choose year on weak device | Bug | description I have implement materialdatepicker in my application but when I m try to change the year on my redmi 4x it start lag and sometimes it stop on the wrong year on the gif below I have select 2015 material date picker expect behavior it select proper year without lag source code val constraintsbuilder calendarconstraint builder val builder materialdatepicker builder daterangepicker builder setcalendarconstraint constraintsbuilder build builder settheme resolveorthrow context r attr materialcalendartheme val picker builder build picker addonpositivebuttonclicklistener dateselecte field createdaterange it first 0 it second 0 value picker show fragmentmanager picker tostre android api version android 7 1 2 api 25 material library version 1 2 0 alpha01 1 1 0 beta01 haven t test on the 1 1 0 alpha version device xiaomi redmi 4x 3 32 |
materialcomponentsmaterialcomponentsandroid | snackbar snackbar have wrong background if coloronsurface be a attribute reference | Bug | description snackbar have wrong background if coloronsurface be a attribute reference expect behavior snackbar resolve reference correctly source code xml ffffff android textcolorprimary android api version 29 material library version 1 1 0 beta01 device pixel sample application |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.