repository stringclasses 156 values | issue title stringlengths 1 1.01k ⌀ | labels stringclasses 8 values | body stringlengths 1 270k ⌀ |
|---|---|---|---|
materialcomponentsmaterialcomponentsandroid | shapeableimageview can t cast shadow when set shapeappearancemodel edge from api 23 to 28 | Bug | description on a shapeableimageview on api 28 and below once a edge be set the shadow disapear try with triangle and circle custom shape they work correctly on cardview this work correctly on api 29 and 30 expect behavior screenshot and or description of expect behavior the last missing image should be like the second card a shapeableimageview with a triangle inset imagen source code val cutbottomright shapeappearancemodel builder setbottomrightcorner cornerfamily cut shapeappearancemodel pill build val insetbottomtri shapeappearancemodel builder setbottomedge triangleedgetreatment 100f true build card1 shapeappearancemodel cutbottomright card2 shapeappearancemodel insetbottomtri imageview1 shapeappearancemodel cutbottomright imageview2 shapeappearancemodel insetbottomtri this one doesn t cast shadow on shapeableimageview on api 23 to 28 but it do on cardview and on api 29 and 30 android api version 23 to 28 both include material library version 1 3 0 beta01 device pixel 2 emulator |
materialcomponentsmaterialcomponentsandroid | collapsingtoolbarlayout expandedtitle be ellipsize if button at end of materialtoolbar | Bug | description hello if I use expandedtitle and button or view I imagine at end of my materialtoolbar and set a navigationicon the expandedtitle be ellipsize like collapsedtitle image expect behavior if remove navigationicon image source code android api version api 30 material library version 1 3 0 alpha03 device pixel 4 avd android 11 pixel 5 real |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform onresume not call when use materialcontainertransform | Bug | description onresume not call when use materialcontainertransform expect behavior onresume should be call source code fragmentb fragmentb fragmentb newinstance share element container fragmentb setsharedelemententertransition new materialcontainertransform getparentfragmentmanager begintransaction setreorderingallowe true addsharedelement view share element container replace r i d content frame fragmentb fragmentb class getsimplename addtobackstack fragmentb class getsimplename commit getparentfragmentmanager executependingtransaction if I comment out fragmentb setsharedelemententertransition new materialcontainertransform onresume will get call normally android api version 30 material library version 1 3 0 alpha03 device cat s41 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform overshootinterpolator have no effect on container transform | Bug | description overshootinterpolator have no effect on container transform expect behavior when overshootinterpolator be set on the container transform I would expect the view to grow slightly large or small than the target and then shrink grow to the target dimension depend on the transition direction of course however set an overshootinterpolator seem to have no effect at all reproduce in the catalog app on master 191a48bd8ab54ef9ba94449d4b473a53d45c32e0 by apply this small change diff git a catalog java io material catalog transition transitioncontainertransformviewdemofragment java b catalog java io material catalog transition transitioncontainertransformviewdemofragment java index 1a2b3f0e 42ceb049 100644 a catalog java io material catalog transition transitioncontainertransformviewdemofragment java b catalog java io material catalog transition transitioncontainertransformviewdemofragment java 28 6 28 7 import android view menuinflater import android view menuitem import android view view import android view viewgroup import android view animation overshootinterpolator import android widget framelayout import androidx annotation idre import androidx annotation nonnull 151 6 152 7 public class transitioncontainertransformviewdemofragment extend demofragment transform setscrimcolor color transparent transform setdrawingviewid root getid configurationhelper configure transform enter transform setinterpolator new overshootinterpolator return transform android api version test on api 29 material library version 191a48bd8ab54ef9ba94449d4b473a53d45c32e0 device google pixel |
materialcomponentsmaterialcomponentsandroid | materialshapedrawable shadow visibility below view | Bug | description hello I be set a materialshapedrawable with shadow color and elevation to view in a linear layout force always to draw fake shadow but the shadow be not respect the other view background so they be appear above neighbor view be there any way to fix this expect behavior the shadow of materialshapedrawable appear below neighbor view if the have same elevation in other word the bottom shadow of test 1 and the top shadow of test 2 should not be visible just like a cardview would behave android api version 29 material library version 1 2 1 device any emulator |
materialcomponentsmaterialcomponentsandroid | navigationview item state not follow design | Bug | the state of the menu item in the navigationview do not match all the state in the guideline state currently the only state that work as expect be the active and inactive whereas the remaning seem to be use something similiar to a standard selectable item background state I ve submit this as a bug since the mix of concept might make it look a bit strange to the user the issue 815 also state something similar but be for some reason close but the reporter we ve try it in our own app but I just test with a new app from the activity gallery in android studio 4 1 which show the same it s that app that s reference below circumstance the app be target api 30 regard the material version it be both test for 1 2 1 late stable and 1 3 0 alpha03 late alpha it do not seem to be relate to the actual device but be both test on google pixel 4xl android 11 and samsung galaxy s6 android 7 0 relevant source code of newly create app activity main xml xml theme xml xml androidmanif xml xml mainactivity kt kotlin class mainactivity appcompatactivity private lateinit var appbarconfiguration appbarconfiguration override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val toolbar toolbar findviewbyid r i d toolbar setsupportactionbar toolbar val fab floatingactionbutton findviewbyid r i d fab fab setonclicklistener view snackbar make view replace with your own action snackbar length long setaction action null show val drawerlayout drawerlayout findviewbyid r i d drawer layout val navview navigationview findviewbyid r i d nav view val navcontroller findnavcontroller r i d nav host fragment pass each menu i d as a set of ids because each menu should be consider as top level destination appbarconfiguration appbarconfiguration setof r i d nav home r i d nav gallery r i d nav slideshow drawerlayout setupactionbarwithnavcontroller navcontroller appbarconfiguration navview setupwithnavcontroller navcontroller override fun oncreateoptionsmenu menu menu boolean inflate the menu this add item to the action bar if it be present menuinflater inflate r menu main menu return true override fun onsupportnavigateup boolean val navcontroller findnavcontroller r i d nav host fragment return navcontroller navigateup appbarconfiguration super onsupportnavigateup screenshot click an inactive after the ripple animation click an active element after the ripple animation focus an inactive by tab through the element focus an active by tab through the element I m not sure what to expect when focus click an active item as it s not mention in the guideline but the remain at least be |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior handling of nest scroll view do not take visibility in account | Bug | description when the bottom sheet have a nest scrolling view that be not visible dragging do not work correctly expect behavior when a nest scrollview be hide it should not be take in account to decide if drag be to be handle or not l1217 should add a check for scrollingchild isshown android api version all material library version 1 2 1 but still present in master device all |
materialcomponentsmaterialcomponentsandroid | catalog crash in transitionmusicalbumdemofragment | Bug | description open catalog demo transition transitionmusicalbumdemofragment press any album item actual result app crash expect behavior do not crash android api version api 17 material library version 1 3 0 alpha03 device prestigio pap5500 duo stacktrace 10 28 11 10 08 402 15162 15162 io material catalog w dalvikvm threadid 1 thread exiting with uncaught exception group 0x40d1e9c0 10 28 11 10 08 420 15162 15162 io material catalog e androidruntime fatal exception main android view inflateexception binary xml file line 47 error inflate class android support constraint constraintlayout at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater inflate layoutinflater java at android view layoutinflater inflate layoutinflater java at io material catalog transition hero transitionmusicalbumdemofragment oncreateview transitionmusicalbumdemofragment java 72 at androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 310 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1185 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1354 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1432 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1495 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2167 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1990 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1945 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1847 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java at android os handler dispatchmessage handler java at android os looper loop looper java at android app activitythread main activitythread java at java lang reflect method invokenative native method at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java at com android internal os zygoteinit main zygoteinit java at dalvik system nativestart main native method cause by java lang classnotfoundexception didn t find class android support constraint constraintlayout on path dexpathlist zip file datum app io material catalog 2 apk nativelibrarydirectorie data app lib io material catalog 2 system lib at dalvik system basedexclassloader findclass basedexclassloader java at java lang classloader loadclass classloader java at java lang classloader loadclass classloader java at android view layoutinflater createview layoutinflater java at android view layoutinflater createviewfromtag layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater rinflate layoutinflater java at android view layoutinflater inflate layoutinflater java at android view layoutinflater inflate layoutinflater java at io material catalog transition hero transitionmusicalbumdemofragment oncreateview transitionmusicalbumdemofragment java 72 at androidx fragment app fragment performcreateview fragment java 2698 at androidx fragment app fragmentstatemanager createview fragmentstatemanager java 310 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1185 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1354 at androidx fragment app fragmentmanager movefragmenttoexpectedstate fragmentmanager java 1432 at androidx fragment app fragmentmanager movetostate fragmentmanager java 1495 at androidx fragment app backstackrecord executeops backstackrecord java 447 at androidx fragment app fragmentmanager executeop fragmentmanager java 2167 at androidx fragment app fragmentmanager executeopstogether fragmentmanager java 1990 at androidx fragment app fragmentmanager removeredundantoperationsandexecute fragmentmanager java 1945 at androidx fragment app fragmentmanager execpendingaction fragmentmanager java 1847 at androidx fragment app fragmentmanager 4 run fragmentmanager java 413 at android os handler handlecallback handler java at android os handler dispatchmessage handler java at android os looper loop looper java at android app activitythread main activitythread java at java lang reflect method invokenative native method at java lang reflect method invoke method java at com android internal os zygoteinit methodandargscaller run zygoteinit java at com android internal os zygoteinit main zygoteinit java at dalvik system nativestart main native method |
materialcomponentsmaterialcomponentsandroid | coordinatorlayout recyclerview scrolling glitche after set light status bar | Bug | description set light status bar on another view use snippet from plaid l121 glitch recyclerview and coordinatorlayout scroll on previous view ezgif com gif maker 10 expect behavior scrolling should be normal source code android api version api 27 material library version test on 1 1 0 and 1 2 1 device pixel 3 api 27 emulator |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior hide from collapse with drag disabled | Bug | description it seem there s no way to have a bottomsheetbehavior that can be drag from expand to collapse and vice versa and hide by code without sethideable enabled comment for sethideable be a little misleading as it say set whether this bottom sheet can hide when it be swipe down but actually it s the whole hiding function that be manage by this not just the swiping expect behavior it should be possible to hide the bottomsheet with setstate even if hide by swipe be not allow solution seem to change peekheight between 0 and the want value but this have performance animation and accessibility side effect disable drag be not a solution as drag up to move from collapse to expand be still want source code setstate state hide throw illegalargumentexception illegal state argument state android api version all material library version 1 2 1 device all 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 when maxline 1 the toolbar s title be duplicate if it have lead space | Bug | description when use a toolbar inside a collapsingtoolbarlayout with maxline 1 and a title with lead space e g text the title be duplicate one title be show without lead space and the other one be show with the space screenshot expect behavior the title be display correctly without duplication source code android api version android 10 material library version 1 3 0 alpha03 but it s happen at least from 1 2 1 device emulator e g pixel and real device e g oneplus 7 pro |
materialcomponentsmaterialcomponentsandroid | progress indicator progress indicator invisible in recyclerview | Bug | description progress indicator will be invisible after recycle expect behavior porgress indicator always visible source code testprogressindicator android api version android 10 api 29 material library version material android library version 1 3 0 alpha03 device oneplus 7 pro |
materialcomponentsmaterialcomponentsandroid | chip close icon on chip doesn t tint properly | Bug | description the issue be really similar to 767 issue the difference be that this issue refer to the the closeicon expect behavior image current behavior this be how the drawable look like without specify closeicontint attribute image this be how the drawable look like with closeicontint attribute specify image source code ic icon close hashtag active xml removable chip xml android api version 29 material library version 1 2 1 and 1 3 0 alpha03 device pixel 2 |
materialcomponentsmaterialcomponentsandroid | swipe to refresh doc spinner no long fade in while rotate | Bug | description doc the circular spinner on a refresh indicator no long fade in while rotate and expect behavior it now fade in when it reach the point where when you let go it ll refresh source code um idk behavior placement android api version 30 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 dude look I come here from the material io website I click on the feedback button but I see the typical google feedback dialogue and realise that it just go to a virtual dump and that no one look at it be for all common documentation for material component project across the different platform oh and be there no compile build of the catalogue app I may very well be wrong I ve just see this behaviour in the android app I use day to day feel free to point I in the right direction for material io doc issue as I m lose |
materialcomponentsmaterialcomponentsandroid | textinputedittext not able to center hint and to keep input value move to bottom | Bug | description on there be an interactive demo for fill textfield expect behavior label hint be center inside input field and when you click on it and enter some text label move up and text that you input be slightly below center below where hint previously be problem be that I be not able to reproduce this behaviour on android as text that I input stay in the same position as a placeholder not center hint and icon but they should be enter image description here 1 1 this be correct as the label be move up and password be below center line enter image description here 2 2 1 2 source code android api version all test on api 27 material library version all version include 1 3 0 alpha03 device all device test on pixel 3a stackoverflow question |
materialcomponentsmaterialcomponentsandroid | headerscrollingviewbehavior incorrect heightmeasurespec pass to onmeasurechild | Bug | description incorrect measurespec can be create when l89 expect behavior clip to 0 if the calculate height value be negative before create a measurespec diff int height availableheight getscrollrange header ex height 0 int headerheight header getmeasuredheight ex headerheight 100 if shouldheaderoverlapscrollingchild child settranslationy headerheight else height headerheight ex height 0 100 100 final int heightmeasurespec view measurespec makemeasurespec note makemeasurespec doesn t take care about negative size height math max 0 height childlpheight viewgroup layoutparam match parent view measurespec exactly view measurespec at most now measure the scroll view with the correct height parent onmeasurechild child parentwidthmeasurespec widthuse heightmeasurespec heightuse android api version android api level 30 material library version 1 1 2 device emulator |
materialcomponentsmaterialcomponentsandroid | theme on sdk 23 drawerarrowdrawable incorrectly resolve color under themeoverlay materialcomponent toolbar surface | Bug | description I notice this issue by use jetpack navigation navigationui setupwithnavcontroller toolbar navcontroller call toolbar setnavigationicon new drawerarrowdrawable this drawerarrowdrawable set its color by style attribute color it work correctly in majority of case on all api level but I encounter this issue when use toolbar with style widget materialcomponent toolbar surface which set color to color material on surface emphasis medium for some reason when drawerarrowdrawable get this color on sdk 23 it resolve to red 0 6 alpha be respect but coloronsurface be not screenshot 1603540384 expect behavior drawerarrowdrawable resolve color correctly same as attr homeasupindicator on all api level source code relevant code snippet below java from androidx appcompat graphic drawable drawerarrowdrawable java final typedarray a context gettheme obtainstyledattribute null r styleable drawerarrowtoggle r attr drawerarrowstyle r style base widget appcompat drawerarrowtoggle setcolor a getcolor r styleable drawerarrowtoggle color 0 xml reproduce app apk include under app android api version 22 material library version 1 3 0 alpha03 device physical google nexus 4 late update be api 22 emulator with api 22 image |
materialcomponentsmaterialcomponentsandroid | any documentation for all the theme color definition | Bug | this may not be a bug just a question of mine I be just curious about how those theme be compose 1 be there any documentation or demo to showcase what color those theme be use theme materialcomponent theme materialcomponent noactionbar theme materialcomponent light theme materialcomponent light noactionbar theme materialcomponent light darkactionbar theme materialcomponent daynight theme materialcomponent daynight noactionbar theme materialcomponent daynight darkactionbar 2 I trace down the theme materialcomponent daynight noactionbar in your repo try to figure out what color it be use look like it inherit from base v14 theme materialcomponent in which the primary color be ba86fc but it turn out that the primary color in theme materialcomponent daynight noactionbar be ba86fc |
materialcomponentsmaterialcomponentsandroid | textinputlayout text still get squashed | Bug | description under some circumstance for example font size and display size set to large textinputlayout inside an alert dialog get squish expect behavior should not be squish a standard edittext won t be squish source code textinputlayout in an alert dialog final textinputlayout container textinputlayout getlayoutinflater inflate r layout rename dialog null container setsuffixtext extension final edittext edittext object requirenonnull container getedittext edittext sethint filename edittext settext filename container requestfocus edittext selectall final inputmethodmanager imm object requirenonnull inputmethodmanager context getsystemservice context input method service edittext postdelaye new runnable override public void run imm showsoftinput edittext inputmethodmanager show implicit 100 final materialalertdialogbuilder builder new materialalertdialogbuilder context setview container settitle r string rename setnegativebutton android r string cancel null setpositivebutton r string rename new dialoginterface onclicklistener override public void onclick dialoginterface dialog int which if getactivity null action return builder create android api version 30 material library version 1 2 1 device pixel 3 |
materialcomponentsmaterialcomponentsandroid | textinputlayout fill corner treatment doesn t cut box stroke | Bug | when change the shape of the bottom corner the line under the text doesn t get change as well photo 2020 10 23 10 42 18 I feel like the line shouldn t go outside the background api version be 30 library version be 1 2 1 but also on 1 3 0 alpha03 the bug be on galaxy s20 |
materialcomponentsmaterialcomponentsandroid | progressindicator invisible in bottomsheetdialog | Bug | description if you add a progressindicator to a bottomsheetdialog it will be hide the second time you show the bottomsheetdialog expect behavior keep it visible material library version 1 3 0 alpha02 this issue be not present in 1 3 0 alpha01 I believe this be relate to |
materialcomponentsmaterialcomponentsandroid | tabindicator gradient drawable not work | Bug | this be my code activity xml tabbar indicator gradient blue xml tabindicator be not show up the gradient colour |
materialcomponentsmaterialcomponentsandroid | snackbar inflateexception throw on obfuscate build | Bug | description with proguard enable minifyenable and shrinkresource both true the snackbar component crash with the follow exception android view inflateexception binary xml file line 1 in my package name layout mtrl layout snackbar include binary xml file line 1 in my package name layout mtrl layout snackbar include error inflate class x cause by android view inflateexception binary xml file line 1 in my package name layout mtrl layout snackbar include error inflate class x cause by java lang classnotfoundexception android view x at java lang class classforname native method at java lang class forname class java 454 at android view layoutinflater createview layoutinflater java 815 at android view layoutinflater createview layoutinflater java 776 at android view layoutinflater oncreateview layoutinflater java 913 at com android internal policy phonelayoutinflater oncreateview phonelayoutinflater java 68 at android view layoutinflater oncreateview layoutinflater java 930 at android view layoutinflater oncreateview layoutinflater java 950 at android view layoutinflater createviewfromtag layoutinflater java 1004 at android view layoutinflater createviewfromtag layoutinflater java 961 at android view layoutinflater inflate layoutinflater java 659 at android view layoutinflater inflate layoutinflater java 534 expect behavior show a snackbar should not crash source code snackbar make view text snackbar length short show android api version 28 29 material library version the issue be present both in 1 3 0 alpha03 and 1 2 1 device samsung galaxy note 10 google pixel 3 oneplus 5 |
materialcomponentsmaterialcomponentsandroid | tablayout accessibility issue | Bug | description I be use a material tablayout connect with a viewpager2 for an onboarding experience my tablayout setup look like this while run this screen through accessibility scanner and google play console pre launch report I be get below warning for the dot tabbackground this item may not have a label readable by screen reader this item s width be 24dp consider make the width of this touch target 48dp or large how can I fix these should the material ui library come with the support for this setup android api version android 9 material library version 1 3 0 alpha02 |
materialcomponentsmaterialcomponentsandroid | materialalertdialogbuilder if setmessage call then setsinglechoiceitem doesn t render any item | Bug | description I just test this out if setmessage be call on the builder then setsinglechoiceitem have no effect the item simply don t render very easy to reproduce expect behavior both message and the item should appear if this be the intend behaviour I be sorry to say but its quite weird source code with materialalertdialogbuilder requirecontext setmessage message if set the next line have no effect setsinglechoiceitem itemsre 0 android api version 29 material library version 1 3 0 alpha02 device oneplus7 t oneplus7 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 | snapshot snapshot build haven t be be build since june | Bug | description snapshot build haven t be build since june 19th 2020 as far as I can tell base on the all version link provide in the documentation expect behavior more recent frequent snapshot build available probably nightly source code n a android api version n a material library version snapshot device any browser or consumer of a maven repository to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | materialcardview stroke not render in preview | Bug | description when apply stroke for the card it doesn t show at all in the preview but in the emulator and physical device it show normally with no issue expect behavior preview preview physical device device source code android api version test on 29 and 30 material library version 1 3 0 alpha03 device no problem with the device |
materialcomponentsmaterialcomponentsandroid | navigationview app crash | Bug | hello I get this error use this component on my app why fatal exception main process gladoop javir3tics test pid 18778 java lang runtimeexception unable to start activity componentinfo gladoop javir3tics test gladoop javir3tics test mainactivity android view inflateexception binary xml file line 67 binary xml file line 67 error inflate class com google android material navigation navigationview at android app activitythread performlaunchactivity activitythread java 2946 at android app activitythread handlelaunchactivity activitythread java 3081 at android app servertransaction launchactivityitem execute launchactivityitem java 78 at android app servertransaction transactionexecutor executecallback transactionexecutor java 108 at android app servertransaction transactionexecutor execute transactionexecutor java 68 at android app activitythread h handlemessage activitythread java 1831 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 201 at android app activitythread main activitythread java 6810 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 547 at com android internal os zygoteinit main zygoteinit java 873 cause by android view inflateexception binary xml file line 67 binary xml file line 67 error inflate class com google android material navigation navigationview cause by android view inflateexception binary xml file line 67 error inflate class com google android material navigation navigationview 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 651 at android view layoutinflater createviewfromtag layoutinflater java 794 at android view layoutinflater createviewfromtag layoutinflater java 734 at android view layoutinflater rinflate layoutinflater java 867 at android view layoutinflater rinflatechildren layoutinflater java 828 at android view layoutinflater inflate layoutinflater java 519 at android view layoutinflater inflate layoutinflater java 427 at android view layoutinflater inflate layoutinflater java 374 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 696 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 170 at gladoop javir3tics test mainactivity oncreate mainactivity java 38 at android app activity performcreate activity java 7224 at android app activity performcreate activity java 7213 at android app instrumentation callactivityoncreate instrumentation java 1272 at android app activitythread performlaunchactivity activitythread java 2926 at android app activitythread handlelaunchactivity activitythread java 3081 at android app servertransaction launchactivityitem execute launchactivityitem java 78 at android app servertransaction transactionexecutor executecallback transactionexecutor java 108 at android app servertransaction transactionexecutor execute transactionexecutor java 68 at android app activitythread h handlemessage activitythread java 1831 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 201 at android app activitythread main activitythread java 6810 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 547 at com android internal os zygoteinit main zygoteinit java 873 cause by android view inflateexception couldn t resolve menu item onclick handler abririnicio in class gladoop javir3tic test mainactivity at androidx appcompat view supportmenuinflater inflatedonmenuitemclicklistener supportmenuinflater java 255 at androidx appcompat view supportmenuinflat menustate setitem supportmenuinflater java 484 2020 10 17 20 03 20 942 18778 18778 gladoop javir3tics test e androidruntime at androidx appcompat view supportmenuinflat menustate additem supportmenuinflater java 531 at androidx appcompat view supportmenuinflater parsemenu supportmenuinflater java 207 at androidx appcompat view supportmenuinflater inflate supportmenuinflater java 129 at com google android material navigation navigationview inflatemenu navigationview java 367 at com google android material navigation navigationview navigationview java 235 at com google android material navigation navigationview navigationview java 122 28 more cause by java lang nosuchmethodexception abririnicio interface android view menuitem at java lang class getmethod class java 2068 at java lang class getmethod class java 1690 at androidx appcompat view supportmenuinflater inflatedonmenuitemclicklistener supportmenuinflater java 251 35 more |
materialcomponentsmaterialcomponentsandroid | autocompletetextview setonitemselectedlistener listener never call | Bug | description when use as dropdown list when set listener with android widget autocompletetextview setonitemselectedlistener listener be new call it seem this be leftover or duplicate of android widget autocompletetextview setonitemclicklistener which work expect behavior listener call when dropdown list item click as in android widget autocompletetextview setonitemclicklistener android api version 29 material library version 1 2 1 1 3 0 alpha03 current master 0afcb48f14a7af3db3712be44d7984c8d89e25fb device emulator android 10 0 |
materialcomponentsmaterialcomponentsandroid | motion materialcontainertransform crash when use with compose | Bug | description materialcontainertransform draw the start view without it be attach which be not allow with compose view it feel dangerous to draw view that be not attach regardless of compose instead perhaps the view could be add to the view overlay expect behavior materialcontainertransform should not crash when use with compose source code to reproduce this simply create a view that contain a compose view and use materialcontainertransform with this view as the start view android api version all material library version 1 3 0 alpha03 compose version 1 0 0 alpha04 |
materialcomponentsmaterialcomponentsandroid | toolbar circularreveal background be black while animate | Bug | description I m have issue with reveal animation on dark theme expect behavior dark theme bug and light theme normal source code android api version android 10 material library version 1 2 1 device samsung s10 |
materialcomponentsmaterialcomponentsandroid | tablayout requestlayout improperly call | Bug | description warn in logcat view requestlayout improperly call by com google android material tab tablayout slidingtabindicator f604ae3 v ed 0 0 1100 258 during second layout pass post in next frame 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 | materialbutton ripple doesn t respect shape if app ripplecolor be set on api 21 | Bug | description ripple doesn t respect shape if app ripplecolor be set on api 21 if no attribute be set ripple shape be correct expect behavior ripple should be clip to match the button s shape source code sample project be attach android api version 21 material library version 1 2 1 device emulator api 21 video sample project |
materialcomponentsmaterialcomponentsandroid | materialshapedrawable do not override getalpha | Bug | description materialshapedrawable do not override getalpha so it will always report 255 regardless of its actual state this be especially a problem with animation where an objectanimator can not correctly determine the current alpha value expect behavior materialshapedrawable should override getalpha to return drawablestate alpha android api version 29 material library version 1 3 0 alpha03 device pixel 3a |
materialcomponentsmaterialcomponentsandroid | chip text not render in fragment | Bug | description chip text not render in fragment the same code work fine in dialog or activity it have no valid reason and it s totally random this get correct when I pause and resume the fragment or open the keyboard expect behavior expect bug source code android api version all material library version try 1 2 0 1 2 1 1 3 0 all alpha version device all |
materialcomponentsmaterialcomponentsandroid | tablayout tablayout s wrap content coerse to hardcode value | Bug | description when use tablayout tab with custom view I d like tablayout to respect my custom view s height not to limit it to hardcode 48dp expect behavior assume my custom view measure take 150dp the tablayout respect that and fully display it source code then tablayout addtab tablayout newtab mycustomviewthathas150dp if need I can provide separate repro project android api version all material library version 1 2 1 device android 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 | checkbox error on check display in specific condition | Bug | description when a checkbox be check inside a viewpager2 in some specific circumstance the checkbo be not display check screenshot of error device 2020 10 07 135609 expect behavior the first two checkbox should be display check source code material library version version 1 2 1 and 1 3 0 alpha3 fail |
materialcomponentsmaterialcomponentsandroid | rise from 1 3 0 alpha02 to 1 3 0 alpha03 cause you need to use a theme appcompat theme or descendant with this activity error | Bug | description do just rise material from com google android material material 1 3 0 alpha03 to com google android material material 1 3 0 alpha03 and get this run time error 2020 10 07 09 09 45 238 24547 24547 no norva24 norva24reportertest2 e androidruntime fatal exception main process no norva24 norva24reportertest2 pid 24547 java lang runtimeexception unable to start activity componentinfo no norva24 norva24reportertest2 no norva24 norva24reportertest2 ui activity mainactivity java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at android app activitythread performlaunchactivity activitythread java 3449 at android app activitythread handlelaunchactivity activitythread java 3601 at android app servertransaction launchactivityitem execute launchactivityitem java 85 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 2066 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 223 at android app activitythread main activitythread java 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947 cause by java lang illegalstateexception you need to use a theme appcompat theme or descendant with this activity at androidx appcompat app appcompatdelegateimpl createsubdecor appcompatdelegateimpl java 843 at androidx appcompat app appcompatdelegateimpl ensuresubdecor appcompatdelegateimpl java 806 at androidx appcompat app appcompatdelegateimpl setcontentview appcompatdelegateimpl java 693 at androidx appcompat app appcompatactivity setcontentview appcompatactivity java 195 at no norva24 norva24reportertest2 ui activity mainactivity oncreate mainactivity kt 102 at android app activity performcreate activity java 8000 at android app activity performcreate activity java 7984 at android app instrumentation callactivityoncreate instrumentation java 1309 at android app activitythread performlaunchactivity activitythread java 3422 at android app activitythread handlelaunchactivity activitythread java 3601 at android app servertransaction launchactivityitem execute launchactivityitem java 85 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 2066 at android os handler dispatchmessage handler java 106 at android os looper loop looper java 223 at android app activitythread main activitythread java 7656 at java lang reflect method invoke native method at com android internal os runtimeinit methodandargscaller run runtimeinit java 592 at com android internal os zygoteinit main zygoteinit java 947 alpha02 do not produce this error expect behavior compile and run as expect but do not source code instead of attach all my project I attach the dependency tree if you see any conflict top level build file where you can add configuration option common to all sub project module buildscript ext kotlin version 1 4 10 ext kotlin version 1 4 0 ext kotlin version 1 4 0 rc ext kotlin version 1 4 m2 repository google jcenter mavencentral maven url maven url dependency classpath com android tool build gradle 4 2 0 alpha12 classpath org jetbrain kotlin kotlin gradle plugin kotlin version classpath androidx navigation navigation safe args gradle plugin 2 3 0 classpath com google gms google service 4 3 4 classpath com google firebase firebase crashlytic gradle 2 3 0 classpath com google firebase perf plugin 1 3 2 note do not place your application dependency here they belong in the individual module build gradle file allproject repository google jcenter mavencentral maven url maven url task clean type delete delete rootproject builddir plugin i d com android application i d kotlin android i d kotlin kapt i d kotlin android extension i d androidx navigation safearg kotlin i d com google gms google services i d com google firebase crashlytic i d com google firebase firebase perf android signingconfig debug release if project hasproperty androidproject sign new file project property androidproject signing tostring exist def property prop new property def propfile new file project property androidproject signing tostre if propfile canread prop load new fileinputstream propfile if prop null if prop containskey release store file prop containskey release store password prop containskey release key alia prop containskey release key password prop containskey debug store file prop containskey debug store password prop containskey debug key alia prop containskey debug key password android signingconfig release storefile file prop release store file android signingconfig release storepassword prop release store password android signingconfig release keyalias prop release key alia android signingconfig release keypassword prop release key password android signingconfig debug storefile file prop debug store file android signingconfig debug storepassword prop debug store password android signingconfig debug keyalias prop debug key alias android signingconfig debug keypassword prop release key password else throw new exception miss property in propfile topath else throw new filenotfoundexception property file not find propfile topath def versionpropsfile file version property def versionmajor 0 def versionminor 2 def versionbuild def versionappdatabase 24 if versionpropsfile canread property versionprop new property versionprop load new fileinputstream versionpropsfile versionbuild versionprop version build tointeger else throw new filenotfoundexception could not read version property or its internal ext autoincrementbuildnumber if versionpropsfile canread property versionprop new property versionprop load new fileinputstream versionpropsfile versionbuild versionprop version build tointeger 1 versionprop version build versionbuild tostring versionprop store versionpropsfile newwriter null else throw new filenotfoundexception could not read version property or its content gradle taskgraph whenready taskgraph if taskgraph hastask assembledebug autoincrementbuildnumber else if taskgraph hastask assemblerelease autoincrementbuildnumber else if taskgraph hastask bundledebug autoincrementbuildnumber else if taskgraph hastask bundlerelease autoincrementbuildnumber compilesdkversion 30 buildtoolsversion 30 0 2 defaultconfig applicationid no norva24 norva24reportertest2 minsdkversion 21 targetsdkversion 30 versioncode 11 versionname versionmajor versionminor versioncode versionappdatabase versionbuild testinstrumentationrunner androidx test runner androidjunitrunner buildconfigfield long timestamp system currenttimemillis l buildconfigfield int appdatabaseversion versionappdatabase buildtype release minifyenable false proguardfile getdefaultproguardfile proguard android optimize txt proguard rule pro resvalue string google map key omit debug resvalue string google map key omit compileoption sourcecompatibility javaversion version 1 8 targetcompatibility javaversion version 1 8 kotlinoption jvmtarget 1 8 packagingoption exclude meta inf jersey module version buildfeature databinde true compose false viewbinde true dependency kotlin stdlib implementation org jetbrain kotlin kotlin stdlib kotlin version coroutine implementation org jetbrain kotlinx kotlinx coroutine core 1 3 9 implementation org jetbrain kotlinx kotlinx coroutine android 1 3 9 androidx core implementation androidx core core ktx 1 4 0 alpha01 implementation androidx core core ktx 1 5 0 alpha04 appcompat implementation androidx appcompat appcompat 1 3 0 alpha02 implementation androidx appcompat appcompat 1 2 0 camerax implementation androidx camera camera camera2 1 0 0 beta10 implementation androidx camera camera lifecycle 1 0 0 beta10 implementation androidx camera camera view 1 0 0 alpha17 constraintlayout implementation androidx constraintlayout constraintlayout 2 0 1 navigation implementation androidx navigation navigation fragment ktx 2 3 0 implementation androidx navigation navigation ui ktx 2 3 0 fragment implementation androidx fragment fragment ktx 1 3 0 beta01 lifecycle implementation androidx lifecycle lifecycle livedata ktx 2 3 0 beta01 implementation androidx lifecycle lifecycle viewmodel ktx 2 3 0 beta01 legacy implementation androidx legacy legacy support v4 1 0 0 room implementation androidx room room runtime 2 3 0 alpha02 kapt androidx room room compiler 2 3 0 alpha02 implementation androidx room room test 2 3 0 alpha02 implementation androidx room room ktx 2 3 0 alpha02 preference implementation androidx preference preference ktx 1 1 1 local broadcast manager implementation androidx localbroadcastmanager localbroadcastmanager 1 1 0 alpha01 recyclerviewstyle implementation androidx recyclerview recyclerview 1 2 0 alpha06 microsoft identity implementation com microsoft identity client msal 2 0 1 exclude group com microsoft device display graph implementation com microsoft graph microsoft graph 2 2 0 google material implementation com google android material material 1 3 0 alpha03 guava to avoid conflict on listenablefuture on jetified guava 20 0 com google guava guava 20 0 and jetifie listenablefuture 1 0 com google guava listenablefuture 1 0 implementation com google guava guava 28 2 android implementation com google guava guava 29 0 jre firebase analytic implementation com google firebase firebase analytic ktx 17 5 0 crashlytic implementation com google firebase firebase crashlytic ktx 17 2 2 performance analysis implementation com google firebase firebase perf 19 0 9 play service map implementation com google android gms play service map 17 0 0 map utility implementation com google maps android android map util 2 0 3 location implementation com google android gms play service location 17 1 0 square open source retrofit2 implementation com squareup retrofit2 retrofit 2 9 0 implementation com squareup retrofit2 converter gson 2 9 0 okhttp3 implementation com squareup okhttp3 log interceptor 4 9 0 implementation com squareup okhttp3 okhttp 4 9 0 test testimplementation junit junit 4 13 androidtestimplementation androidx test ext junit 1 1 2 androidtestimplementation androidx test espresso espresso core 3 3 0 android api version api30 material library version 1 3 0 alpha03 device emulator api30 pixel 4 api 30 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 rg |
materialcomponentsmaterialcomponentsandroid | theme 1 2 0 break extendedfloatingactionbutton style in bridge theme | Bug | description since the 1 2 0 alpha01 the extendedfloatingactionbutton style be break with the theme theme materialcomponent light noactionbar bridge the issue be still here with 1 3 0 alpha03 version maybe the issue be relate with this one which have already be solve issue 740 expect behavior with 1 1 0 extendedfloatingactionbutton 1 1 0 actual behavior since 1 2 0 alpha01 extend float button 1 2 0 android api version android api 29 material library version 1 2 0 alpha01 and |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview invisible badge become visible on configuration change | Bug | description when a badge be mark invisible use isvisible false and the user change configuration e g swap from light mode dark mode the badge will be visible after the configuration change expect behavior the badge be still invisible after the configuration change source code l322 l342 badgedrawable restorefromsavedstate android api version 30 but should not be api version specific material library version 1 2 1 device pixel 3 xl |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview incorrect display of itembackground in android 21 and 22 | Bug | description in the bottomnavigationview the drawable insert in app itembackground be not display well this bug be only on android 21 and 22 see image expect behavior second image source code in layout drawable line image android api version from android 21 to android 29 material library version androidx appcompat appcompat 1 3 0 alpha02 com google android material material 1 3 0 alpha03 device android emulator with android 5 0 sdk 21 and android 6 0 sdk 22 android 21 22 image android 23 screenshot 2020 10 05 16 28 26 823 eu spaggiari classevivastudente |
materialcomponentsmaterialcomponentsandroid | materialtimepicker it s impossible to select am hour when time format be set to clock 12 | Bug | description hey I have an issue with the new alpha03 release it be impossible to select am hour when time format be set to timeformat clock 12 because there be no toggle or anything that will allow I to do so please see the follow screenshot expect behavior I would expect to be allow to specify if a pick time be am or pm source code picker initialization val materialpicker materialtimepicker builder sethour 12 setminute 0 setinputmode materialtimepicker input mode clock settimeformat timeformat clock 12h build materialpicker addonpositivebuttonclicklistener ontimepicke materialpicker hour materialpicker minute materialpicker show parentfragmentmanager null style for the activity android api version android 10 sdk 29 also test on android emulator with android 5 1 1 sdk 22 material library version material android library version 1 3 0 alpha03 device samsung tab a 10 1 2019 android 10 sdk 29 |
materialcomponentsmaterialcomponentsandroid | materialtimepicker not visible part of a time picker | Bug | description hey I have an issue with the new alpha03 release when I open a time picker it look like on the attached image the select part of time either hour or minute be not visible enough for the user odd hour in a clock 24 format be not visible as well expect behavior I would expect more visible part of a time picker select state of hour and minute should be more prominent to the user I would also expect that 24 hour format of the clock will have either more prominent odd hour or have a separate circle inside of a clock with hour from 12 to 24 like on a default android time picker source code picker initialization val materialpicker materialtimepicker builder sethour 12 setminute 0 setinputmode materialtimepicker input mode clock settimeformat timeformat clock 24h build materialpicker addonpositivebuttonclicklistener ontimepicke materialpicker hour materialpicker minute materialpicker show parentfragmentmanager null style for the activity android api version android 10 sdk 29 also test on android emulator with android 5 1 1 sdk 22 material library version material android library version 1 3 0 alpha03 device samsung tab a 10 1 2019 android 10 sdk 29 |
materialcomponentsmaterialcomponentsandroid | snackbar lint show wrongconstant when use custom duration | Bug | description accord to the doc the duration parameter of snackbar make can be length short length long length indefinite or a custom duration in millisecond however when actually use a custom duration in millisecond lint fail with wrongconstant expect behavior no wrongconstant error should be show when a custom duration be use because it s use in compliance with documentation source code snackbar make view test 5000 android api version 30 material library version 1 2 1 |
materialcomponentsmaterialcomponentsandroid | materialbutton android view inflateexception | Bug | description I m try to design a button for my view holder but the application throw an exception e themeutil view class com google android material button materialbutton be an appcompat widget that can only be use with a theme appcompat theme or descendant android view inflateexception binary xml file line 149 in cause by java lang illegalargumentexception the style on this component require your app theme to be theme materialcomponent or a descendant source code xml android api version 30 material library version implementation com google android material material 1 2 1 device pixel 2 xl |
materialcomponentsmaterialcomponentsandroid | materialdatepicker selection header not translate | Bug | description the materialdatepicker selection header be not translate and when no date be select it be always in english select date expect behavior selection header should be translate and there should be an api provide to customise the header text similar to the api provide to set custom title source code public string getheadertext return dateselector getselectiondisplaystring getcontext material library version 1 1 0 |
materialcomponentsmaterialcomponentsandroid | snackbar wrong position when use with translucent navigation bar and collapsingtoolbarlayout | Bug | description when use translucent navigation bar and collapsingtoolbarlayout snackbar s marginbottom be not set correctly use coordinatorlayout as the parent view remove the collapsingtoolbarlayout will solve the problem device 2020 09 28 181922 expect behavior device 2020 09 28 182206 source code xml android api version all version material library version 1 2 1 1 3 0 alpha02 device device with navigation bar after some debugging I find the reason which be that collapsingtoolbarlayout be consume windowinset here l303 and this prevent the onapplywindowinsetslistener l402 of snackbar from be call which be need to set marginbottom correctly |
materialcomponentsmaterialcomponentsandroid | materialbuttontogglegroup dublicate selection on addonbuttoncheckedlistener | Bug | description I have 3 button in toggle group for example a b c when I add addonbuttoncheckedlistener to perform a specific action when a button be select addonbuttoncheckedlistener it perform code for preview select button and for new one for example first I check a when I check b it perofm code for and then code for b if then check c it perform code for b and then for c and so on behavior that happen logcat print 2020 09 26 13 17 52 907 30895 30895 com package d telecompaymentactivity setuplistener a 2020 09 26 13 17 52 907 30895 30895 com package d telecompaymentactivity setuplistener b 2020 09 26 13 17 54 976 30895 30895 com package d telecompaymentactivity setuplistener b 2020 09 26 13 17 54 976 30895 30895 com package d telecompaymentactivity setuplistener c 2020 09 26 13 17 57 134 30895 30895 com package d telecompaymentactivity setuplistener c 2020 09 26 13 17 57 135 30895 30895 com package d telecompaymentactivity setuplistener a 2020 09 26 13 17 58 544 30895 30895 com package d telecompaymentactivity setuplistener a 2020 09 26 13 17 58 544 30895 30895 com package d telecompaymentactivity setuplistener b 2020 09 26 13 18 00 163 30895 30895 com package d telecompaymentactivity setuplistener b 2020 09 26 13 18 00 163 30895 30895 com package d telecompaymentactivity setuplistener c source code xml code kotlin code telecombuttontogglegroup addonbuttoncheckedlistener group checkedid ischecke when checkedid r i d a log d tag setuplistener a r i d b log d tag setuplistener b r i d c log d tag setuplistener c android api version android 10 material library version com google android material material 1 3 0 alpha02 device xiamoi redmi k20 |
materialcomponentsmaterialcomponentsandroid | textinputedittext when use edittext in recycler view focus doesn t behave as expect | Bug | description an empty edit text be not focusable at all when a user click on it far when the user click the view the keyboard gain pseudo focus and will accept input into the edit text without any cursor show when the user click on the view with text inside it focus will be gain and cursor will show if the user delete all content focus be lose also when the keyboard show focus be lose even if text be in the view require 2 click by the user expect behavior focus should be gain and keep when a user click on an edit text until keyboard dismiss or focus clear further edit text should be focusable when content be empty source code android api version 29 30 test might be more all material library version 1 2 1 device pixel 4 simulator note 10 on android 10 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | collapsingtoolbarlayout title doesn t display correctly if it begin with a space | Bug | description when display a title that begin with a space and with maxline set to great than 1 there be an overlap title issue screenshot 1601051581 expect behavior the title should either be trim or not trim in both spot rather than what be likely in just one of the spot source code android api version test all the way down to api 24 likely on all version material library version material 1 2 1 device nexus 5 emulator |
materialcomponentsmaterialcomponentsandroid | textinputlayout unable to style a dropdown menu | Bug | description I m try to set a dropdown menu but the dropdown icon seem to be on top of the textinputlayout not to mention that I can not give a color to the dropdown arrow the hint when collapse keep what I think be the colorsurface attribute of my theme in the layout editor the textinputlayout seem ok but it do not look the same in my physical device as show in the screenshot my issue be the dropdown arrow cover the textinputlayout and the background of the hint when collapse for the hint when collapse try to set a style for it with a transparent background but still the same before select the dropdown arrow screenshot 20200924 204056 escn alcalda when the dropdown list be display screenshot 20200924 204104 escn alcalda after a selection have be make screenshot 20200924 204114 escn alcalda expect behavior this be how it look in the layout editor screenshot window source code the main theme of my application inherit from theme materialcomponent noactionbar this be the textinputlayout in my layout this be the correspond style android api version android 10 android 7 1 1 material library version implementation com google android material material 1 2 1 device samsung a71 xperia z5p |
materialcomponentsmaterialcomponentsandroid | textinputlayout can t apply customtypeface | Bug | class apptextinputlayout jvmoverloads constructor context context attrs attributeset defstyleattr int r attr textinputstyle textinputlayout context attrs defstyleattr init typeface resourcescompat getfont context r font name font I want to apple custom typeface I didn t see any result and can t apply bold text style why I don t understand how to apply custom font to label textinputlayout please provide actual example android api version android 10 material library version 1 2 1 device xiaomi a3 |
materialcomponentsmaterialcomponentsandroid | chip elevation overlay not apply for chip in the bottom sheet dialog for dark theme | Bug | description make simple test project with dark theme bottom sheet dialog and chip on the first screenshot chip at the main activity be light then parent layout but on the second one chip be dark it seem to be a bug or I ve miss something ylj8shohhz me6kwdwjzx expect behavior background of chip at the bottom sheet dialog should be light source code fff5f5f5 android color black ff80cbc4 main activity layout activity main item layout main activity code public class mainactivity extend appcompatactivity override protect void oncreate bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout activity main materialbutton dialogbutton findviewbyid r i d dialogbutton dialogbutton setonclicklistener new view onclicklistener override public void onclick view v bottomsheetdialog dialog new bottomsheetdialog mainactivity this dialog setcontentview r layout activity main dialog setcancelable true dialog show appcompatdelegate setdefaultnightmode appcompatdelegate mode night yes android api version 22 29 material library version 1 2 1 device emulator |
materialcomponentsmaterialcomponentsandroid | textinputlayout loading state solution use end icon custom and end icon clear text crash app | Bug | description set a custom loading state to textinputlayout use guide describe here cause unexpected crash of the application on most version of the library stacktrace e androidruntime fatal exception main process fi vpuonti textinputlayoutbug pid 26919 java lang indexoutofboundsexception index 2 size 2 at java util arraylist get arraylist java 437 at android widget textview sendontextchange textview java 10610 at android widget textview handletextchange textview java 10700 at android widget textview changewatcher ontextchange textview java 13454 at android text spannablestringbuilder sendtextchange spannablestringbuilder java 1282 at android text spannablestringbuilder replace spannablestringbuilder java 591 at android text spannablestringbuilder replace spannablestringbuilder java 522 at android text spannablestringbuilder replace spannablestringbuilder java 42 at android view inputmethod baseinputconnection replacetext baseinputconnection java 843 at android view inputmethod baseinputconnection setcomposingtext baseinputconnection java 616 at com android internal view iinputconnectionwrapper executemessage iinputconnectionwrapper java 393 at com android internal view iinputconnectionwrapper myhandler handlemessage iinputconnectionwrapper java 89 at android os handler dispatchmessage handler java 107 at android os looper loop looper java 214 at android app activitythread main activitythread java 7710 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 break expect behavior text be enter text be send to viewmodel viewmodel update search state to loading activity react to search state and call showloade progress drawable be show in endicondrawable viewmodel complete search processing and update search state to success activity react to search state and call hideloade default x drawable be show in endicondrawable work source code sample app relevant snippet kotlin private fun showloade mtextinputlayout endiconmode textinputlayout end icon custom mtextinputlayout endicondrawable mprogressdrawable mtextinputlayout endicondrawable as animatable start private fun hideloade mtextinputlayout endicondrawable as animatable stop mtextinputlayout endiconmode textinputlayout end icon clear text android api version android 10 api 29 material library version use version in repro app 1 2 1 also test on other version version work as expect 1 1 0 no loading icon sometimes disappear 1 2 0 alpha05 yes 1 2 0 alpha06 yes 1 2 0 beta01 no 1 2 0 rc01 no 1 2 0 no 1 2 1 no 1 3 0 alpha01 no 1 3 0 alpha02 no device oneplus 7 bug also reproducible on emulator |
materialcomponentsmaterialcomponentsandroid | bug in textinputlayout can not focus and change it text when seterrorenable true | Bug | description hi when I seterrorenable true for textinputlayout then can not focus on it to change text I test this for com google android material material 1 3 0 alpha01 com google android material material 1 3 0 alpha02 and com google android material material 1 2 1 these version of material component have the problem but material 1 2 0 alpha02 be ok another problem be when click on togglepassword icon that must click twice to show password this problem be in all of version of material component that I mention you can see these problem in video that I attach expect behavior text input layout zip android api version I test in 7 1 1 and 10 material library version 1 3 0 alpha01 1 3 0 alpha02 1 2 1 device samsung device and emulator |
materialcomponentsmaterialcomponentsandroid | textinputlayout have placeholdertext break component height | Bug | description when the textinputlayout have placeholdertext attribute have focus text be empty if their container go from visible to go then when the container go to visible state again textinputlayout will have 2x of it orginal height like at 2 line of height expect behavior textinputlayout should stay at the same height source code nothing special just app hintanimationenable false have app placeholdertext android api version test on api 23 material library version 1 2 0 device samsun s10 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 | float action button change color programmatically with backgroundtintlist be not work | Bug | description I try to change fab color programmatically with this code fabt backgroundtintlist colorstatelist valueof tocolor r color mycolor it be work well when I set it from xml with this code android backgroundtint color mycolor but I need to change the color programmatically I even try to change extend fab color programmatically with the exact same code as above and it be work well expect behavior set fab color programmatically 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 api 28 material library version 1 3 0 alpha02 I even try with the late stable version which be 1 2 1 and it be still not work device google pixel |
materialcomponentsmaterialcomponentsandroid | fail to resolve coordinatorlayout 1 1 0 | Bug | description I work on a project in a system and its ok but when I import it in another system I face with this error fail to resolve coordinatorlayout 1 1 0 expect behavior gradle sync successful source code classpath com android tool build gradle 4 0 1 implementation androidx coordinatorlayout coordinatorlayout 1 1 0 material library version com google android material material 1 2 1 |
materialcomponentsmaterialcomponentsandroid | snackbar bottom margin set even if navigation swipe gesture enable on samsung s10 | Bug | the cause code be final void showview this view setonattachstatechangelistener new basetransientbottombar onattachstatechangelistener override public void onviewattachedtowindow view v if version sdk int version code q windowinset inset view getrootwindowinset if inset null extrabottommargingestureinset inset getmandatorysystemgestureinset bottom updatemargin override public void onviewdetachedfromwindow view v if isshownorqueue if we haven t already be dismiss then this event be come from a non user initiate action hence we need to make sure that we callback and keep our state up to date we need to post the call since removeview will call through to ondetachedfromwindow and thus overflow handler post new runnable override public void run onviewhidden basecallback dismiss event manual |
materialcomponentsmaterialcomponentsandroid | materialtimepicker crash in material button okbutton | Bug | description I m try use materialtimepicker and follow from this stackoverflow my material version be 1 3 0 alpha02 but I get this crash java lang classcastexception androidx appcompat widget appcompatbutton can not be cast to com google android material button materialbutton at com google android material timepicker materialtimepicker oncreateview materialtimepicker java 194 android api version android api 29 material library version material android library version you be use here 1 3 0 alpha02 device device on which the bug be samsung a50s |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform view capture after the fragment be destroy in share element return transition | Bug | description the reason why this matter be that image loading library such as glide which I m use automatically clear image when the lifecycle of the container fragment here be over usually there be no problem with this but when you be use share element transition with materialcontainertransform the view with their image clear appear empty during return transition here be a video demonstrating this actually I don t know whether this be a bug or the expect behavior but I wonder how to solve this except hack glide s lifecycle management expect behavior the view be capture before destroy source code transition demo fragment zip android api version test on api 29 material library version 1 2 1 1 3 0 alpha02 device all device |
materialcomponentsmaterialcomponentsandroid | textinputlayout no focus in viewpager2 when width be set use constraintlayout constraint | Bug | description put a textinputlayout in a constraintlayout and put that into a viewpager2 via a fragment if the textinputlayout width be give as match parent it will receive focus as expect however if the width of the textinputlayout be give with 0dp and constraint focus win t work expect behavior focus have to be possible no matter which way the textinputlayout width be set source code sample at 1 touch the textinputlayout on the first tab the textinputlayout win t get a blue border image 2 touch the textinputlayout on the second tab the textinputlayout will get a blue border image only difference between the first and second tab be that for the textinputlayout in the fragment of the first tab the width be give with 0dp and constraint on the second tab the width for the textinputlayout in the fragment be give as match parent so fragment first xml focus not work fragment second xml focus work android api version 30 but same on api 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 1 device pixel 2 emulator api 30 |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior break hide collapse animation setpeekheight animation | Bug | description change bottomsheet state when one be lay out should lead to state change animation however change state from hidden to collapse break animation totally in certain case make it appear as expand collapse setpeekheight be affect as well due to the same reason lead to no visible animation peek height be change due to layout source code issue for hide collapse behavior ishideable true behavior state bottomsheetbehavior state hide await layout behavior ishideable false animate only if no onlayoutchild happen between sethideable and settletostate the same issue for setpeekheight behavior ishideable true behavior state bottomsheetbehavior state hide await layout setpeekheight 123 true animate only if no onlayoutchild happen between setpeekheight and settletostate possible workaround for both be ugly as hell if view parent islayoutrequeste view post animatecollapse return behavior ishideable false behavior state bottomsheetbehavior state collapse thought this seem to work correctly prior to 46366ad4356b57180eac048cec9994c796a5ca66 onlayoutchild change with hideable check there be several culprit to I hideable be set prior to layout whereas state once view be actually lay out peekheight be set prior to layout as well settletostatependinglayout await parent be lay out however onlayoutchild could pass several time affect child s mtop onlayoutchild affect child s mtop and startsettlinganimation either win t animate or animate incorrectly android api version any material library version 1 2 1 device any |
materialcomponentsmaterialcomponentsandroid | release make new snapshot of 1 3 0 alpha03 | Bug | 1 3 0 alpha02 be start to feel a bit old now with all the recent improvement what about make a new snapshot 1 3 0 alpha03 |
materialcomponentsmaterialcomponentsandroid | switchmaterial no animate in recyclerview | Bug | viewcompat islaidout it appear to be false after a view be re attach to a recyclerview so switchmaterial will not show animate |
materialcomponentsmaterialcomponentsandroid | shapeableimageview should be rename to shapableimageview | Bug | create a custom component shapeabalematerialtoolbar on my tem someone raise a comment about the word shapeable shapeableimageview should be rename to shapableimageview right adjective be shapable not shapeable check |
materialcomponentsmaterialcomponentsandroid | snackbar vertical spacing seem to be inconsistent with the spec when text have multiple line | Bug | description snackbar vertical spacing when the text have multiple line seem to be inconsistent with what we see on material io from what it s there it seem the space shouldn t change depend on the number of line of text but it do short long it seem this be a conscious decision in the implementation since it s cause by the design snackbar padding vertical 2lines diman which be 24dp large than the 14dp of design snackbar padding vertical source l34 l35 more source l91 l110 it s easy to fix this by just override the diman but if the lib be really inconsistent with the spec it d probably be well to fix thing here instead expect behavior basically what we see on material io first screenshot here source code just show a snackbar with long text would be enough to repro this kotlin snackbar make someview somelongmessage anyduration show android api version 29 material library version 1 2 1 device pixel 4 |
materialcomponentsmaterialcomponentsandroid | textinputlayout counter draw on the left if error mode disable programmatically | Bug | description counter draw on the left when iserrorenable set into false programmatically if errorenable have set into true in xml layout image expect behavior counter always draw in the end source code layout code private lateinit var bind activitymainbinding override fun oncreate savedinstancestate bundle super oncreate savedinstancestate bind activitymainbinding inflate layoutinflater setcontentview bind root bind til iserrorenable false android api version 28 a1 15 and 30 emulator material library version 1 2 0 1 2 1 device emulator xiaomi a1 xiaomi mi mix 2 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker date range direction be reverse for rtl locale | Bug | description when the user select a date range on different row use materialdatepicker builder daterangepicker the highlighted range be reverse if the app locale be rtl materialdatepicker rtl layout direction expect behavior date range direction should be reverse select the appropriate date when the app locale be rtl source code materialdatepicker builder daterangepicker build show childfragmentmanager tag date picker android api version 29 material library version 1 2 1 device samsung galaxy a70 |
materialcomponentsmaterialcomponentsandroid | button button style have inconsistent drawable padding | Bug | description full description of issue here as you can see on the image above the padding between text and drawable isn t always the same I ve try multiple thing such as play around with textalignment and gravity and drawablepadde but none seem to produce a desire effect change the left padding on the button with the google logo shift both text and drawable so that wasn t a solution either facebook and kakao style button be use widget materialcomponent button unelevatedbutton and google button be use widget materialcomponent button outlinedbutton expect behavior all button style should have consistent padding or at least allow for the drawable padding to be overwrite android api version android 10 material library version 2 0 1 device samsung s20 and emulator |
materialcomponentsmaterialcomponentsandroid | test resource be be include in the aar | Bug | description after integrate version 1 2 1 in a work project I find out that multiple test relate resource be be include in the aar and therefore in the final apk expect behavior test resource should not be include in the final aar source code as an example the follow layout be include in version 1 2 1 of the aar screenshot 2020 09 11 at 18 06 54 android api version n a material library version 1 2 1 device n a |
materialcomponentsmaterialcomponentsandroid | textinputedittext the left padding be 12dp instead of 16dp as per material io spec | Bug | description the implementation of textinputedittext have different android paddingleft value than the one provide in the specification of text field the recommend spec say that padding should be of 16dp while the current implementation have only 12dp expect behavior the padding should be like the follow image text field leave padding source code the style base widget materialcomponent textinputedittext have set wrong padding of 12dp link to full file android api version any api which support material component material library version the late version device nexus 4 avd |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform card bound jump during animation | Bug | dsn5 ft I m follow up on a bug I end the conversation with from here here the repo of the original issue here s the current code class firstfragment fragment override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view return inflater inflate r layout fragment first container false override fun oncreate savedinstancestate bundle super oncreate savedinstancestate val hold hold hold duration 300 exittransition hold override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate view findviewbyid r i d cardview setonclicklistener card val extras fragmentnavigatorextra card to share element container findnavcontroller navigate r i d action firstfragment to secondfragment null null extras class secondfragment fragment override fun oncreate savedinstancestate bundle super oncreate savedinstancestate val entertransform materialcontainertransform entertransform duration 300 entertransform drawingviewid r i d myactual sharedelemententertransition entertransform val returntransform materialcontainertransform returntransform duration 300 sharedelementreturntransition returntransform returntransform drawingviewid r i d cardview override fun oncreateview inflater layoutinflat container viewgroup savedinstancestate bundle view return inflater inflate r layout fragment second container false first fragment xml second fragment xml here be how it look like use implementation com google android material material 1 3 0 alpha02 blah2 you can see there be a really bad jump when go in the reverse direction hit the back button be there something wrong with my code or be it the mdc motion library |
materialcomponentsmaterialcomponentsandroid | materialtimepicker can t customize styling for newly release timepicker | Bug | description hi I m test out the newly release materialtimepicker and try couple way to customize styling without any success I try something like follow item name materialtimepickertheme style mytimepickerdialogstyle in app theme wonder if customize styling be support or not where can I find a doc for the attribute I can use to customize thank you expect behavior screenshot and or description of expect behavior android api version any material library version 1 3 0 alpha02 device any 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 | materialfadethrough transition do not take in account target view alpha value | Bug | description when use materialfadethrough as entertransition materialfadethrough for fragment transition the target view alpha status be not take in account expect behavior the transition should take in account the target view alpha status when have a view with alpha 0 define in xml that transition will animate the alpha to 1 0f take I a while to understand why the view be now visible the workaround be to excludetarget those view manually but 1 it s really hard to figure out what be happen 2 it should not be necessary as actual alpha could be compute and if the final alpha be 0 5 then the transition should do 0 to 0 5 and not 0 to 1 source code in fragment transition just use entertransition materialfadethrough and in final fragment have a view define as proper solution be probably that start end value from be properly get from the view if set but don t know the internal to know when the value should be compute android api version android api version 10 and 11 but probably all material library version material android library version you be use 1 2 1 device device on which the bug be encounter all include 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 | catalog app bottom app bar bottomsheet be too light | Bug | description the bottomsheet 3b3b3b be too light the elevation of bottomsheet be 32dp totally screenshot 20210908 145455 expect behavior the bottomsheet should be 2d2d2d the elevation of bottomsheet should be 16dp source code l49 original revise android api version 23 material library version 1 4 0 device nexus 7 2013 |
materialcomponentsmaterialcomponentsandroid | textinputlayout cause focus issue when error null | Bug | use 2 textinputlayout s with a single textinputedittext for a recyclerview item layout seem to provide very strange behavior see video provide for detail I have see similar behavior when they be in constrainlayout but this appear to be specific to an error android api version target 29 material library version 1 3 0 alpha02 device pixel api 29 emulator see video of behavior |
materialcomponentsmaterialcomponentsandroid | appbarlayout appbarlayout do not collapse expand when scroll vertically over horizontal recyclerview inside vertical recyclerview | Bug | description when vertical recyclerview have a horizontal recyclerview and if user start scroll vertically with finger on horizontal recyclerview then appbarlayout do not move at all if finger be on other list item then appbarlayout do change its state the problem be still there with collapsingtoolbarlayout inside appbarlayout ezgif com video to gif expect behavior appbarlayout should scroll source code I create a test project where you can see the problem code of collapsibletoolbar be take from this article android api version all version from api 21 material library version 1 2 1 device oneplus 5 t pixel 3 pixel 3 emulator samsung a10 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker wiht white theme | Bug | I try to use materialdatepicker with a white the button doesn t appear and I try to implement custom theme for it change button color also nothing change photo5963238997742433772 |
materialcomponentsmaterialcomponentsandroid | component name short description of issue | Bug | description I have problem into flote action button expect behavior it s drawable can t be appear and show to I that I have 1 render problem of of float action button path op not support 2 another render problem of java awt geom illegalpathexception miss initial move to in path definition source code com google android material floatingactionbutton floatingactionbutton android i d i d fab android layout width wrap content android layout height wrap content android layout alignparentbottom true android layout alignparentend true android layout margin 16dp android src drawable ic add pet android api version android api version here be 29 material library version material android library version you be use here e g 1 3 0 alpha02 device device on which the bug be encounter here android phone pixel to help we triage fast please check to make sure you be use the late version of the library well we also happily accept pull request well |
materialcomponentsmaterialcomponentsandroid | materialdatepicker callback lose on orientation change | Bug | hi due to android weird handling of rotation change the callback of the materialdatepicker be lose after orientation change because the materialdatepicker ist final there be no way to extend it and override it and handle the click in my own code a good way would be to change this confirmbutton setonclicklistener new view onclicklistener override public void onclick view v for materialpickeronpositivebuttonclicklistener super s listener onpositivebuttonclicklistener listener onpositivebuttonclick getselection dismiss to sth like confirmbutton setonclicklistener new view onclicklistener override public void onclick view v onokclick and add a function public void onokclick for materialpickeronpositivebuttonclicklistener super s listener onpositivebuttonclicklistener listener onpositivebuttonclick getselection dismiss and make materialdatepicker not final this way I could extend it and override public void onokclick save new date to my database super onokclick I m pretty sure that s a much more elegant solution than either disable orientation change while dialog be open check in my activity after orientation change if the dialog be open and reattach my callback |
materialcomponentsmaterialcomponentsandroid | motion container transform animation not work for bottomsheetdialogfragment | Bug | description consider two fragment fragmenta and fragmentb where fragmentb be a bottomsheetdialogfragment there be a fab in the fragmenta and click on it show the fragmentb xml code of fab in fragmenta xml code of the constraintlayout root view in fragmentb onclick of fab in fragmenta bind fabaddschedule setonclicklistener val fabtransitionname getstre r string meeting schedule container transform fab val extras fragmentnavigatorextra bind fabaddschedule to fabtransitionname findnavcontroller navigate r i d action meetingschedulefragment to meetingaddschedulefragment null null extra oncreate of fragmentb override fun oncreate savedinstancestate bundle super oncreate savedinstancestate sharedelemententertransition materialcontainertransform expect behavior on click the fab it should transform into the bottomsheet but the bottomsheet appear from the bottom of the screen without any transformation android api version 29 material library version 1 3 0 alpha02 device oneplus 5 t |
materialcomponentsmaterialcomponentsandroid | theme materialcomponent widget style miss from base v14 theme materialcomponent light darkactionbar bridge | Bug | both base v14 theme materialcomponent bridge and base v14 theme materialcomponent light bridge define the follow xml dimen mtrl min touch target size style widget materialcomponent badge style widget materialcomponent bottomappbar style widget materialcomponent chip action style widget materialcomponent chipgroup style widget materialcomponent chip entry style widget materialcomponent extendedfloatingactionbutton icon style widget materialcomponent button style widget materialcomponent button outlinedbutton style widget materialcomponent materialbuttontogglegroup style widget materialcomponent cardview style widget materialcomponent slider but all of these be miss in base v14 theme materialcomponent light darkactionbar bridge be this intentional I ve have to add many of these manually in my app s theme in order to get thing like outline button to be theme properly |
materialcomponentsmaterialcomponentsandroid | textinputlayout | Bug | please have a look at this I be sick and have fever so can t focus too much and my deadline be near so I can t either stop work this be my problem that I post yesterday |
materialcomponentsmaterialcomponentsandroid | progressindicator not update inside recyclerview on scroll | Bug | I be use progressindicator inside a recycler view with each row have its own progressindicator some row hide the indicator base on some business logic now if I scroll or pull to refresh on my recyler view sometimes the indicator be hide even for valid row I feel the visibility state for indicator be be share somehow between various row which be cause this bug it progress completedpercent 0f progress isgone true else progress setprogresscompat it progress completedpercent toint false progress isgone false material android library version 1 3 0 alpha02 device android emulator api 29 |
materialcomponentsmaterialcomponentsandroid | onclick throw exception on lollipop device when view use materialthemeoverlay | Bug | description when click on floatingactionbutton or com google android material textfield textinputedittext which have onclick register via xml this happen e androidruntime fatal exception main process com tonedownlabs automoney pid 9434 java lang illegalstateexception could not find a method onaddbuttonclicke view in the activity class androidx appcompat view contextthemewrapper for onclick handler on view class com google android material floatingactionbutton floatingactionbutton with i d myfab at android view view 1 onclick view java 3994 at android view view performclick view java 4756 at android view view performclick run view java 19749 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 135 at android app activitythread main activitythread java 5221 at java lang reflect method invoke native method at java lang reflect method invoke method java 372 at com android internal os zygoteinit methodandargscaller run zygoteinit java 899 at com android internal os zygoteinit main zygoteinit java 694 cause by java lang nosuchmethodexception onaddbuttonclicke class android view view at java lang class getmethod class java 664 at java lang class getmethod class java 643 at android view view 1 onclick view java 3987 at android view view performclick view java 4756 at android view view performclick run view java 19749 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 135 at android app activitythread main activitythread java 5221 at java lang reflect method invoke native method at java lang reflect method invoke method java 372 at com android internal os zygoteinit methodandargscaller run zygoteinit java 899 at com android internal os zygoteinit main zygoteinit java 694 the same code work perfectly fine on new apis the issue stop reproduce when I remove materialthemeoverlay from fab s style source code style xml style fab full layout activity java public void onaddbuttonclicked view view android api version reproduce on 21 api on new version of api try 26 it do not reproduce material library version 1 2 0 device galaxy nexus |
materialcomponentsmaterialcomponentsandroid | navigationview padding be break when place inside a bottomsheetdialogfragment | Bug | when place a navigationview inside a bottomsheetdialogfragment the background will have weird padding downgrade library to 1 1 0 alpha01 fix this |
materialcomponentsmaterialcomponentsandroid | datepicker some day in a month be not show | Bug | description datapicker doesn t show all day in month expect behavior show all day source code sample code from catalog app picker android api version 29 material library version 1 3 0 alpha02 device samsung galaxy a3 step to reproduce include mp4 video in zip file launch material date picker click previous month from september calendar display only 30 day instead 31 change input mode to text a return calendar mode click previous month from september now calendar display 31 day image 20200901 110522 360x640 zip |
materialcomponentsmaterialcomponentsandroid | com google android material textfield materialautocompletetextview hint still overlapps text | Bug | description use com google android material textfield materialautocompletetextview inside of com google android material textfield textinputlayout lead to a wrong sized textfield where there be no space for the float label so the hint overlap the text this be only happen if I use a materialcomponent theme device 2020 09 01 124548 myapplication zip expect behavior hint should not overlap the text android api version 29 material library version 1 2 0 device all device |
materialcomponentsmaterialcomponentsandroid | textinputedittext textinputlayout requestlayout improperly call when prefixtext be set on api 21 | Bug | description my espresso test be get idle on an api 21 device with the follow log w view requestlayout improperly call by androidx appcompat widget appcompattextview 3a870d59 v ed i d 0 0 57 164 7f0901df app i d textinput prefix text during layout run second layout pass w view requestlayout improperly call by androidx appcompat widget appcompattextview 3a870d59 v ed 0 0 57 164 7f0901df app i d textinput prefix text during second layout pass post in next frame expect behavior it should improperly call requestlayout source code just this in the xml file android api version 21 material library version 1 3 0 alpha02 device emulator use api 21 |
materialcomponentsmaterialcomponentsandroid | shapeableimageview unable to create layer for shapeableimageview | Bug | stacktrace fatal exception java lang illegalstateexception unable to create layer for shapeableimageview at android os messagequeue nativepollonce messagequeue java at android os messagequeue next messagequeue java 143 at android os looper loop looper java 130 at android app activitythread main activitythread java 6917 at java lang reflect method invoke method java at java lang reflect method invoke method java 372 at com android internal os zygoteinit methodandargscaller run zygoteinit java 1404 at com android internal os zygoteinit main zygoteinit java 1199 source xml android api version only android 5 1 1 material library version 1 3 0 alpha02 device exclusively samsung device in descend order galaxy j3 2016 j1 2016 j4 j6 tab a 7 0 j3 |
materialcomponentsmaterialcomponentsandroid | alert dialog padding add on bottom when the positive button s text be a little long | Bug | description when create a materialalertdialog with the positive button s text a little long padding get add to the bottom of the dialog make it look out of place screenshot 20200831 130148 expect behavior there should be no padding add screenshot 20200831 133918 source code kotlin materialalertdialogbuilder requirecontext apply settitle dialog title setmessage dialog body setpositivebutton agree and continue setneutralbutton no show device oneplus 6 xiaomi mi a2 motorola g5 plus android api version oneplu 6 29 xiaomi mi a2 28 motorola g5 plus 27 material library version 1 2 0 |
materialcomponentsmaterialcomponentsandroid | progressindicator java lang stackoverflowerror | Bug | description app crash randomly and I get this exception trace this do not happen when use normal progressbar com eliutimana medicamentos e androidruntime fatal exception main process com eliutimana medicamento pid 20661 java lang stackoverflowerror stack size 8 mb at com google android material progressindicator drawablewithanimatedvisibilitychange hidenow drawablewithanimatedvisibilitychange java 191 at com google android material progressindicator indeterminatedrawable hidenow indeterminatedrawable java 30 at com google android material progressindicator progressindicator setindeterminate progressindicator java 627 at com google android material progressindicator progressindicator 2 onanimationend progressindicator java 990 at com google android material progressindicator circularindeterminateanimatordelegate 2 onanimationend circularindeterminateanimatordelegate java 109 at android animation animatorset cancel animatorset java 340 at com google android material progressindicator circularindeterminateanimatordelegate cancelanimatorimmediately circularindeterminateanimatordelegate java 149 at com google android material progressindicator indeterminatedrawable setvisible indeterminatedrawable java 68 at com google android material progressindicator drawablewithanimatedvisibilitychange hidenow drawablewithanimatedvisibilitychange java 191 at com google android material progressindicator indeterminatedrawable hidenow indeterminatedrawable java 30 at com google android material progressindicator progressindicator setindeterminate progressindicator java 627 at com google android material progressindicator progressindicator 2 onanimationend progressindicator java 990 at com google android material progressindicator circularindeterminateanimatordelegate 2 onanimationend circularindeterminateanimatordelegate java 109 at android animation animatorset cancel animatorset java 340 at com google android material progressindicator circularindeterminateanimatordelegate cancelanimatorimmediately circularindeterminateanimatordelegate java 149 at com google android material progressindicator indeterminatedrawable setvisible indeterminatedrawable java 68 at com google android material progressindicator drawablewithanimatedvisibilitychange hidenow drawablewithanimatedvisibilitychange java 191 at com google android material progressindicator indeterminatedrawable hidenow indeterminatedrawable java 30 at com google android material progressindicator progressindicator setindeterminate progressindicator java 627 at com google android material progressindicator progressindicator 2 onanimationend progressindicator java 990 at com google android material progressindicator circularindeterminateanimatordelegate 2 onanimationend circularindeterminateanimatordelegate java 109 at android animation animatorset cancel animatorset java 340 at com google android material progressindicator circularindeterminateanimatordelegate cancelanimatorimmediately circularindeterminateanimatordelegate java 149 at com google android material progressindicator indeterminatedrawable setvisible indeterminatedrawable java 68 at com google android material progressindicator drawablewithanimatedvisibilitychange hidenow drawablewithanimatedvisibilitychange java 191 at com google android material progressindicator indeterminatedrawable hidenow indeterminatedrawable java 30 at com google android material progressindicator progressindicator setindeterminate progressindicator java 627 at com google android material progressindicator progressindicator 2 onanimationend progressindicator java 990 at com google android material progressindicator circularindeterminateanimatordelegate 2 onanimationend circularindeterminateanimatordelegate java 109 at android animation animatorset cancel animatorset java 340 at com google android material progressindicator circularindeterminateanimatordelegate cancelanimatorimmediately circularindeterminateanimatordelegate java 149 at com google android material progressindicator indeterminatedrawable setvisible indeterminatedrawable java 68 at com google android material progressindicator drawablew com eliutimana medicamentos e javabinder fail binder transaction com eliutimana medicamentos e androidruntime error reporting crash android os transactiontoolargeexception at android os binderproxy transactnative native method at android os binderproxy transact binder java 504 at android app activitymanagerproxy handleapplicationcrash activitymanagernative java 4294 at com android internal os runtimeinit uncaughthandler uncaughtexception runtimeinit java 89 at org chromium base javaexceptionreporter uncaughtexception chromium systemwebviewgoogle aab stable 1 6 at java lang threadgroup uncaughtexception threadgroup java 693 at java lang threadgroup uncaughtexception threadgroup java 690 expect behavior progress indicator should work without error source code fragment kt viewmodel status observe viewlifecycleowner bind progressbar apply if it mainviewmodel mainviewstatus loading show else hide bind textviewloading isvisible it mainviewmodel mainviewstatus load android api version 21 material library version 1 3 0 alpha02 device blu studio one plus android 5 1 I be not able to reproduce in an emulator |
materialcomponentsmaterialcomponentsandroid | datepicker select date initial text not translate | Bug | description in the datepicker the text field above the calendar say select date but it be not translate into the device language everything else get translate blue circle only this be miss red circle android api version 26 material library version 1 2 0 device samsung sm g930f |
materialcomponentsmaterialcomponentsandroid | textinputlayout how to simulate click to drawable | Bug | description how to simulate a click onto textinputlayout end drawable right now I use callonclick to test button press and I don t see a corresponding method to simulate click to the end drawable I be use robolectric as well if that help somehow material library version 1 1 0 |
materialcomponentsmaterialcomponentsandroid | progressindicator be invisible in recyclerview | Bug | description if I have a progressindicator in a recyclerview and the viewholder s view get detach from the window when it get reattache the progressindicator be invisible expect behavior it remain visible android api version 29 material library version 1 3 0 alpha02 device pixel 2 |
materialcomponentsmaterialcomponentsandroid | tablayout tab text color not change | Bug | description hello I try to change the text color on the tab but it do not work I try to set up it in style via tabtextcolor tabselectedtextcolor attribute and inside activity via settabtextcolor method but the result be the same color stay the same expect behavior text color should be change material library version 1 1 0 |
materialcomponentsmaterialcomponentsandroid | rangedslider setminseperation not work when stepsize 0 | Bug | description setminseperation for range slider be not work when stepsize 0 expect behavior setminseperation should work even when stepsize 0 source code private float getclampedvalue int idx float value float minseparation stepsize 0 getminseparation 0 android api version 29 but should happen in all version material library version 1 3 0 alpha02 device pixel 3a emulator |
materialcomponentsmaterialcomponentsandroid | extend fab with icon have wrong padding | Bug | use the late md comonent 1 2 0 the implementation of the extended fab be wrong the spec spec say that the icon should have 12dp padding grafik however the implement padding be 16dp l34 to demonstrate this I create a dummy layout that have the padding like show in the spec xml bildschirmfoto vom 2020 08 26 09 31 10 |
materialcomponentsmaterialcomponentsandroid | set background to button have no effect | Bug | after I fix my issue here 1649 and change themr my can not change his background screenshot from 2020 08 24 17 50 50 when I change theme of design tool to appcompat I can see my new backgound after search I find that I should change into why we need this |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.