repository stringclasses 156 values | issue title stringlengths 1 1.01k ⌀ | labels stringclasses 8 values | body stringlengths 1 270k ⌀ |
|---|---|---|---|
materialcomponentsmaterialcomponentsandroid | navigationview horizontal system inset handle | Bug | how be the component suppose to handle horizontal system inset the current behavior be definitely wrong but there be no information in the documentation about how it s suppose to be |
materialcomponentsmaterialcomponentsandroid | appbarlayout liftonscroll true do not work with webview | Bug | description consider the follow code xml appbarlayout do not change elevation on scroll expect behavior appbar should change elevation on scroll android api version test in api 30 material library version 1 6 1 |
materialcomponentsmaterialcomponentsandroid | textinputedittext setoneditoractionlistener not work use custom view | Bug | description textinputedittext setoneditoractionlistener don t have any response while keyboard search action click the custom view layout migrate to fragment xml layout be work xml code android api version 32 material library version 1 6 0 device pixel 3 |
materialcomponentsmaterialcomponentsandroid | catalog issue with edge when transform view | Bug | here s the video pay attention to the view s top corner and the view s bottom edge during the transition material library version 1 7 0 alpha01 device pixel 4a 5 g |
materialcomponentsmaterialcomponentsandroid | bottomsheet bottomsheet appear at top of screen when transition on 1 6 | Bug | description when upgrade to 1 6 from 1 5 our bottom sheet start to appear at the top of the screen when transition to a different fragment inside expect behavior bottom sheet should stay at the bottom when transition source code our logic be fairly complicated so I ll try to link the relevant file maybe you can give we suggestion on fix if it s our issue xml l9 controller class main bottom sheet activity minimal sample app repro our repository have a sample app call paymentsheet example I m also happy to try and spend some more time create a minimal sample repo but I m not quite sure what would cause this behavior so any guidance would help you ll need to change the value to 1 6 here l81 once run you can click 1 playground 2 check return customer 3 reload paymentsheet 4 click the visa logo next to checkout custom 5 click add observe the sheet be at the top of the screen occasionally I see weird state where it s partially show like so android api version min api 21 repro on all version I try 28 30 31 material library version 1 6 device pixel 3a several 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 | appbarlayout the layout will be break after set the status bar to the light appearance | Bug | just create a project by the template scrolling activity in android studio and add a menu item to set the status bar to the light appearance after the menu item be click the whole layout will be break the bug exist in android version 6 0 to 9 0 but it s go since android 10 sample source code zip |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior viewpager2 compatibility issue | Bug | description 1 since findscrollingchild be not public it be not readily possible to override it 2 viewpager2 use a recyclerview as part of it s implementation the algorithm in findscrollingchild doesn t take this into consideration and the viewpager2 s embed recyclerview get set as the scroll child to attempt to address this in my app I copy in the bottomsheetbehavior class from the code with same tag as the version of material component in my app 1 5 0 1 6 0 add suppresslint restrictedapi and make findscrollingchild public I then sub class it kotlin suppress unused class mybottomsheetbehavior jvmoverload constructor context context attrs attributeset null materialbottomsheetbehavior context attrs override fun findscrollingchild view view view view let if viewcompat isnestedscrollingenable it return it if view be viewgroup view as viewpager2 let pager pager getchildat 0 as recyclerview let pagerchild pagerchild layoutmanager findviewbyposition pager currentitem let findscrollingchild it run var I 0 val count view childcount while I count val scrollingchild findscrollingchild view getchildat I if scrollingchild null return scrollingchild I return null this cause the findscrollingchild to skip the recyclerview embed in the viewpager2 and use the nest scroll view from the currently select tab to keep this in sync I attach a page change listener to the viewpager2 that get the host coordinatorlayout and call requestlayout on it after the page change expect behavior scroll down will open the bottom sheet and then once open will scroll the content in the tab scroll up will scroll the content in the tab when the top be reach move the bottom sheet to the half expand state actual behavior scroll down will open the bottom sheet and then once open will scroll the content in the tab scroll up will immediately collapse the bottom sheet to the half expand state unless scroll down be perform first on the same touch e g if you scroll down and then up without lift your finger it work as expect this only occur when the viewpager2 be present a lone recyclerview for example work as expect I also try disable swiping on the viewpager2 instance think it might be interfere with the scroll up gesture s touch be take by the recyclerview in the viewpager2 tab but it didn t seem to help the ask s 1 please make findscrollingchild public so that it can be overridden to more easily accommodate this and similar use case this would prevent have to add a dependency on viewpager2 or other library 2 help fix the scroll behavior when the viewpager2 be present I m not sure where the issue come from be it viewpager2 be it recyclerview be it bottomsheetbehavior other component version viewpager2 1 1 0 beta01 recyclerview 1 2 1 android api version 31 material library version 1 6 0 device x86 emulator arm64 emulator pixel 3a samsung galaxy s22 ultra |
materialcomponentsmaterialcomponentsandroid | collapsingtoolbarlayout collapsingtoolbarlayout perform unwanted toolbar stretching | Bug | material library version 1 7 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | transition transition with overshootinterpolator flicker | Bug | material library version 1 7 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | topappbar elevation on scroll of top app bar | Bug | description the elevation on scroll of top app bar be 3dp element design attribute role token 1 container color surface md sys color surface surface tint color surface tint md sys color surface tint elevation level 0 md sys elevation level0 elevation on scroll level 2 md sys elevation level2 the elevation of appbarlayout be 0dp to 4dp the default value of elevation of materialtoolbar be not 4dp but 0dp element attribute relate method s default value materialtoolbar elevation android elevation setelevation getelevation 4dp appbarlayout elevation android statelistanimator setstatelistanimator getstatelistanimator 0dp to 4dp see all state catalog app the elevation on scroll of top app bar be 4dp be it a document bug a catalog bug or an appbarlayout bug source code l25 l38 l24 l46 l305 l306 l19 topappbar on scroll screenshot 20220422 212333 topappbar screenshot 20220422 212308 android api version 32 material library version 1 5 0 1 6 0 rc01 1 7 0 alpha01 device emulator 31 2 10 p s design appbar elevation appear l793 l34 l61 l113 |
materialcomponentsmaterialcomponentsandroid | textinputlayout label animation be not smooth when there be a prefix after the recent update | Bug | after the recent update when the prefix be visable not matter outline or fill the move up animation of the label will blink on click the component |
materialcomponentsmaterialcomponentsandroid | menuitem icon not animate | Bug | component use navigation version use sdk31 device android version reproduce on pixel 4 I have create an ic animation xml as describe at that I set on a menuitem s icon in activity main drawer xml indeed when I inspect the menuitem in the debugger the icon be of type animationdrawable I add a drawerlistener in mainactivity and in the ondraweropened I tell the animation to start the isrunne value change from false to true but the animation doesn t actually run please see the attach example project build from the navigation drawer activity for an example myapplication zip |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform when I return from b activity to a activity there will be a slide effect why | Bug | when I return from b activity to a activity there will be a slide effect why |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview android minheight be not work | Bug | description put bottomnavigationview with height set to wrap content view be not display at all to overcome this you need to explicitly set any height to this view expect behavior bottomnavigationview with height set to wrap content should use its android min height attribute from the style source code xml minimal sample app repro n a android api version 22 material library version 1 5 0 device pax a920 |
materialcomponentsmaterialcomponentsandroid | container transform navigate up animation problem of recyclerview in fragment inside viewpager2 | Bug | device os android 12 problem dependency implementation com google android material material 1 5 0 implementation androidx core core ktx 1 7 0 implementation androidx navigation navigation fragment ktx 2 4 1 implementation androidx navigation navigation ui ktx 2 4 1 implementation androidx viewpager viewpager 1 1 0 alpha01 fragmentc be the launch fragment of fragmentd which be the 2nd element of viewpager2 in fragmenta the launch animation work well but the navigateup click back button have no animation all of these fragment be in one activity by follow the instruction of material io container transform follow be the simplify code activity layout of activity mobile navigation class of activity private lateinit var bind activitymainbinding override fun oncreate savedinstancestate bundle super oncreate savedinstancestate bind databindingutil setcontentview this r layout activity main fragmenta override fun oncreate savedinstancestate bundle exittransition hold override fun onviewcreate view view savedinstancestate bundle val fragment listof fragmentb fragmentc viewpager2 adapter object fragmentstateadapter this fragmenta override fun getitemcount fragment size override fun createfragment position int fragment position fragmentc recyclerviewadapter private inner class recyclerviewadapter private val item list private val onclick view item unit recyclerview adapter override fun onbindviewholder holder recyclerviewholder position int holder root transitionname item position i d holder root setonclicklistener view onclick view item position private lateinit recyclerviewadapter override fun oncreate savedinstancestate bundle super oncreate savedinstancestate exittransition hold override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle view recyclerview adapter recyclerviewadapter item rootview item navcontroller navigate fragmentadirection actionnavatonavc item fragmentnavigatorextra rootview to rootview transitionname fragmentd private lateinit item item override fun oncreate savedinstancestate bundle super oncreate savedinstancestate sharedelemententertransition materialcontainertransform item requireargument getserializable item as item private var bind fragmentdbinding null private val bind get bind override fun oncreateview inflater layoutinflater container viewgroup savedinstancestate bundle view bind inflate layout bind root transitionname item i d return bind root |
materialcomponentsmaterialcomponentsandroid | collapsingtoolbarlayout a fling of the header then tap on the child scroll content cause jank | Bug | description full description of issue here a fling of the header then tap on the child scroll content cause jank this could be appbarlayout s fault not collapsingtoolbarlayout here be 3 example the problem be more obvious with a large appbarlayout material component catalog instagram my current project expect behavior screenshot and or description of expect behavior should act like a regular scroll source code the code snippet which be cause this issue minimal sample app repro please consider attach a minimal sample app that reproduce the issue this will help narrow down the condition require for reproduce the issue and it will speed up the bug fix process you may attach a zip file of the sample app or link to a github repo that contain the sample app android api version android api version here material library version material android library version you be use here e g 1 1 0 alpha07 1 5 0 device device on which the bug be encounter here to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform card shadow blink when return with share element transition between activity | Bug | description I have already raise a stack overflow question for the same expect behavior the card shouldn t blink while return from another activity source code transition between activity section of container transform demonstration video minimal sample app repro app s link android api version 30 but test with other version too and still the same issue material library version 1 6 0 alpha03 device galaxy a50 but the problem be noticeable in other device too |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialog layout margin sheet move to set margin value when anything in it be interact with 1 5 0 and 1 6 0 alpha03 | Bug | the bottomsheet have a top margin of 25dp when an item be add to the recyclerview within the bottomsheet jump down 25dp once so if the bottom sheet start go an item be add it s set to 120dp peekheight that work fine but when any more item be add the sheet jump back to 95dp 120 25 height if you drag the sheet up and back down it rest at 120 as it should but it will jump back to 95 if another item be add this happen if any of the margin option that include the top layout margin layout margin vertical it work fine with no margin set device emulator and real phone fold 2 api 30 try on 1 5 0 and 1 6 0 alpha3 xml |
materialcomponentsmaterialcomponentsandroid | dialog title be align to end in rtl | Bug | description material alert dialog title be align to the end leave in the rtl mode while the body of the alert be correctly align expect behavior the title should be align to the start right in the rtl issue material desgin source code materialalertdialogbuilder requirecontext settitle setmessage item title setcancelable false setpositivebutton r string ok label dialog todo do some work dialog dismiss setnegativebutton r string cancel dialog dialog dismiss show android api version minsdk 19 targetsdk 31 material library version 1 6 0 alpha02 device android emulator pixel 3a api 30 with google play x86 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker unable to select date with espresso or and reflection | Bug | description I can t select a date with espresso or and reflection 1 espresso I m try to do something similar l172 but month be final and package private I can select the day but not the year or month 2 reflection doesn t work I get error npe null receiver onview viewmatcher isroot perform customviewaction rootview val context rootview context val activity if context be contextthemewrapper context basecontext as appcompatactivity else context as appcompatactivity val fragment activity supportfragmentmanager findfragmentbytag mytag val field materialdatepicker class java getdeclaredfield dateselector field isaccessible true val value field get fragment expect behavior add the ability to select a date in ui test or add example of how to do this if it be possible right now with version 1 4 0 android api version any material library version 1 4 0 device any |
materialcomponentsmaterialcomponentsandroid | widget material3 badge badge in tablayout overlap text | Bug | description material 3 appear to have regress this issue a badge contain number overlap the text so much that it obscure the last letter of the label expect behavior the label should not be obscure source code activity main xml mainactivity kt oncreate tablayoutmediator tab viewpager tab position val badge tab getorcreatebadge badge number 1 tab text resource getstre tab title position attach android api version test on api 29 material library version com google android material material 1 5 0 device avd nexus 4 |
materialcomponentsmaterialcomponentsandroid | coordinatorlayout headerscrollingviewbehavior measure child spec overflow | Bug | description when coordinatorlayout s height be very small for example 86dp and headerheight in link l85 be large than coordinatorlayout s height like 90dp it will make height in link l89 a negative value 90dp 86dp 4dp heightmeasurespec in link l91 will be overflow and make second child in coordinatorlayout measure incorrectly if seond child view be a recyclerview or listview with many item in it it will make recyclerview onmeasure spend lot of time because measurespec overflow will provide a huge height measure size and make recylerview layout all item in it s adapter expect behavior height should not be negative or heightmeasurespec s size should not be overflow source code l89 android api version android 11 material library version 1 5 0 device xiaomi civi to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | shapeableimageview can t display fb shimmer with glide inside shapeableimageview | Bug | description hi I need to display shimmer loader to the shapeableimageview use placeholder error method from glide but if I compare it to imageview or appcompatimageview the shimmer appear properly expect behavior screenshot 1644052615 expect behavior like imageview or appcompatimageview show as the below the black circle source code here the code kotlin xml android api version 31 material library version 1 5 0 device android emulator pixel 4 api 29 |
materialcomponentsmaterialcomponentsandroid | baseprogressindicator get invisible on sharedelementreturntransition | Bug | description because of some of the internal baseprogressindicator onwindowvisibilitychange ondetachedfromwindow operation the progress bar get hide before it s render to transition like sharedelementreturntransition that result in a bad visual experience as show in the attach video expect behavior baseprogressindicator linearprogressindicator be properly render into a transition scene source code sharedelementreturntransition materialcontainertransform also it drawingviewid r i d mainfragmentcontainerview it duration 2000 it startshapeappearancemodel shapeappearancemodel withcornersize resource getdimensionpixeloffset r diman default card corner radius tofloat it endshapeappearancemodel shapeappearancemodel withcornersize resource getdimensionpixeloffset r diman default card corner radius tofloat it startcontainercolor requirecontext themecolor android r attr colorbackground it endcontainercolor requirecontext themecolor r attr colorsurface it setpathmotion materialarcmotion android api version 30 material library version 1 5 0 alpha05 device samsung galaxy s20 ultra pixel 4 api 30 emulator video |
materialcomponentsmaterialcomponentsandroid | component name how to use activityoption makescenetransitionanimation after I use it the animation effect be abnormal and the black screen flash | Bug | description this two actiivty I want from this actiivty launch another activity show anim effect like musicplayerdemoactivity but my app not fragment I try use material demo be work but my app flash blackscreen however an activity in the material component demo also flash a black screen item be transition launch container transform activity source code public static void startnewactivityanim activity activity class activitytarget view v if build version sdk int build version code lollipop activity setentersharedelementcallback new materialcontainertransformsharedelementcallback activity setexitsharedelementcallback new materialcontainertransformsharedelementcallback activity getwindow setsharedelementsuseoverlay false string sharename activitytarget getsimplename activityoption option activityoption makescenetransitionanimation activity v sharename intent intent new intent activity activitytarget intent putextra share element sharename activity startactivity intent option tobundle else activity startactivity new intent activity activitytarget if build version sdk int build version code lollipop view contentview findviewbyid android r i d content contentview settransitionname share element setentersharedelementcallback new materialcontainertransformsharedelementcallback getwindow setsharedelemententertransition buildcontainertransform enter true getthis contentview getwindow setsharedelementreturntransition buildcontainertransform enter false getthis contentview requiresapi build version code lollipop public static materialcontainertransform buildcontainertransform boolean enter context context view view materialcontainertransform transform new materialcontainertransform context enter transform addtarget android r i d content transform setcontainercolor materialcolor getcolor view r attr colorsurface transform setfademode materialcontainertransform fade mode through return transform use material componet add testactivity it work package io material catalog main import android app activityoption import android content intent import android os build import android os bundle import android view view import androidx annotation nullable import androidx appcompat app appcompatactivity import androidx fragment app fragmentactivity import com google android material transition platform materialcontainertransformsharedelementcallback import io material catalog r import io material catalog feature demoactivity import io material catalog musicplayer musicplayerdemoactivity author lozn email 2021 10 25 9 36 public class testactivity extend appcompatactivity private view rootview override protect void oncreate nullable bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout new music if build version sdk int build version code lollipop rootview this getwindow getdecorview findviewbyid android r i d content rootview settransitionname test findviewbyid r i d tv main setonclicklistener new view onclicklistener override public void onclick view view intent intent new intent testactivity this mainactivity class startactivity intent findviewbyid r i d tv test setonclicklistener new view onclicklistener override public void onclick view view intent intent new intent testactivity this musicplayerdemoactivity class if build version sdk int build version code lollipop set up share element transition and disable overlay so view don t show above system bar fragmentactivity activity testactivity this activity setexitsharedelementcallback new materialcontainertransformsharedelementcallback activity getwindow setsharedelementsuseoverlay false activityoption option activityoption makescenetransitionanimation activity view test intent putextra demoactivity extra transition name test startactivity intent option tobundle else startactivity intent android api version android 11 api 30 material library version implementation com google android material material 1 5 0 alpha02 |
materialcomponentsmaterialcomponentsandroid | textinputlayout prevent from scroll over the error via seterror | Bug | description I have a textinputlayout with an textinoutedittext on top of my fragment view follow by more view so I have to scroll and put that scrollable content within a scrollview if I show an error use seterror on a textinputlayout I be no long able to scroll over the edittext and let it scroll out of the scrollview I can t access all view below that edittext while there be an error display that block the rest of my fragment to be reach expect behavior if there be a textinputlayout with an error it should always be possible to scroll over it source code textinputlayoutreadingvalue view findviewbyid r i d til read value private void showinputerror string err textinputlayout textinputlayoutreadingvalue gettextinputlayoutreadingvalue textinputlayoutreadingvalue seterror err android api version test on api 28 29 and 30 material library version com google android material material 1 4 0 device samsung galaxy tab 2 android 7 1 1 the error do not occur on a samsung a9 android 10 for example |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment weird transparent mask slide entrance when open bottomsheetdf | Bug | version 1 4 0 also happen on 1 5 0 alpha02 android api 29 this be something I can t overcome and be pretty annoying when on api 29 and opening bs the transparent mask slide up along with the sheet this do not happen on api 21 23 mask fade in properly while bottom sheet slide up please see attach video for an example kind regard |
materialcomponentsmaterialcomponentsandroid | progress bar indeterminate progressbar get frozen | Bug | today I notice a bug in this the indeterminate progress bar get stick when use transition animation effect with custom effect there be different behavior in both appcompat progressbar and material component progressbar and also when I again start a new activity without transition animation effect the indeterminate progress animation resume again step to reproduce the problem 1 implement the progress bar in mainactivity 2 start a new activity with transition with custom effect 3 now come back to main activity 4 you will see the progress bar freeze test on android 10 samsung one ui 2 0 in pixel device only material component s indeterminate progresbar be freeze I have test on pixel 5 api 29 android 10 pixel 5 api 30 android 11 pixel 5 api 31 android 12 source code upload here |
materialcomponentsmaterialcomponentsandroid | slider contentdescription cause the talkback to not read correctly | Bug | description when we add a content description to the view talkback announce the slider without the ability to interact with the slider so you need to swipe to the right to go inside of the slider to interact with talkback without content description it announce like this 0 slider use volume key to adjust with content description it seem to put that on a root view which do not have access to adjust example content desc text slider double tap to activate if I double tap nothing happen if I swipe right it will go inside and announce the slider properly 0 content desc text slider it be recommend to set content description here continuous slider expect behavior it should not add the wrapping slider in talkback that be not interactable it should just announce as 0 content desc text slider source code android api version 30 android 11 material library version 1 4 0 device pixel 5 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 | motion the start view will perform offset anim after back from an activity when use recyclerview | Bug | I use motion animation between two activity I find an issue below by use the demo the card will offset after back to homefragment see below the start view be an item of recyclerview and the end view be a fragment of an activity expect behavior no offset animation source code use the same demo and relate same issue here material library version 1 3 0 1 4 0 device lg g with android 5 0 2 also find on other device 6 7 8 9 10 especially trigger more on some low end device I try to work around by call apis from materialcontainertransformsharedelementcallback but get less help please help to check and let I know if anything that I need to do thank you |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior bottom sheet state always set to state expand when swipe up | Bug | description when bottom sheet s flag fittocontent be set to default value true the bottom sheet will always set its state to state expand whenever a swipe up gesture be perform on the bottom sheet even tho the content be not long enough to be expand to full screen I e swipe up result in no visual change to the ui a side effect of the above be that in a non expandable bottom sheet when we do swipe up gesture it will think itself be set to state expand and then invalidate the bottom sheet drawable which will make the top corner of the bottom sheet flat from rounded top corner take the blow recording as a example state collapse state expand by swipe up state expand state collapse by swipe down state expand state collapse by swipe down on bottomsheetdialog release it and let itself auto settle expect behavior this might be controversial but there be two direction we would expect never have state collapse for a short bottom sheet that fittocontent true this will involve fix for other use case to prevent the state become state collapse or prevent the bottom sheet s state to become state expand when we try to swipe up source code override public void onviewrelease nonnull view releasedchild float xvel float yvel int top state int targetstate if yvel 0 move up if fittocontent top fittocontentsoffset targetstate state expand this be where we need to ad extra logic else int currenttop releasedchild gettop if currenttop halfexpandedoffset top halfexpandedoffset targetstate state half expand else top getexpandedoffset targetstate state expand else if hideable shouldhide releasedchild yvel else if yvel 0 f math abs xvel math abs yvel if the y velocity be 0 or the swipe be mostly horizontal indicate by the x velocity be great than the y velocity settle to the near correct height else move down startsettlinganimation releasedchild targetstate top true propose solution for the 2nd approach above as it will not impact other use case if yvel 0 move up if fittocontent keep it at collapse state when the collapse height and expand height be the same I e content be not long enough to visually expand the bottom sheet if fittocontentsoffset collapsedoffset top collapsedoffset targetstate state collapse else top fittocontentsoffset targetstate state expand else if android api version api 29 material library version 1 5 0 alpha02 device one plus 8 pro to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | appbarlayout scroll animation be break if the first swipe on header and the second be on the content | Bug | description if in the view structure with appbarlayout collapsingtoolbarlayout and a recyclerview you swipe to the top on the appbarlayout and then immediately down on the recycler or just press and hold the recycler the animation be break as you can see in the sample repo this can be reproduce across almost every app on googleplay for example youtube music spotify and every app that use collapsingtoolbarlayout suffer from this bug I find this issue because I need a big collapse toolbar more than half of the screen so the first swipe often happen on the toolbar itself video be available in my sample repo animation be not the good way to show how bad this be the good way be to try it on the phone in for example spotify artist album screen expect behavior third animation in my sample repo iow animation should stop when finger be place on recycler or should immediatelly scroll down after a swipe on recycler source code android api version any api for example android 11 10 and probably any other material library version dependency block implementation com google android material material 1 4 0 implementation androidx core core ktx 1 6 0 implementation androidx appcompat appcompat 1 3 1 implementation androidx recyclerview recyclerview 1 2 1 implementation androidx coordinatorlayout coordinatorlayout 1 1 0 device any device or emulator for exaple samsung galaxy note 20 or android 11 emulator |
materialcomponentsmaterialcomponentsandroid | exposeddropdownmenu select an empty unfocused dropdown menu move the view to the bottom when inside a nestedscrollview | Bug | description select an empty unfocused dropdown menu move the view to the bottom when inside a nestedscrollview the expose dropdown menu be in a viewholder inside a recyclerview which be inside a nestedscrollview expect behavior the view s position stay as be source code android api version 30 material library version 1 4 0 device samsung galaxy s20 samsung galaxy tab s7 |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview return incorrect view height after measure | Bug | description bottomnavigationview will return incorrect view height after measure expect behavior bottomnavigationview return the correct view height afater measure source code bottomnavigationview measure view measurespec unspecified view measurespec unspecified view updatepadde bottom bottomnavigationview measuredheight android api version android api 30 material library version 1 5 0 alpha01 device oneplus 7 pro |
materialcomponentsmaterialcomponentsandroid | textinputlayout end clear icon visibility not backward compatible | Bug | description I have textinputlayout textinputedittext combo textinputlayout style to style widget materialcomponent textinputlayout outlinedbox and app endiconmode clear text while textinputedittext have xml android background null android cursorvisible false android inputtype textnosuggestion android clickable true android focusable false android focusableintouchmode false the control be setup so that user can t directly entry text the edittext have a click listener that open a drop down or date picker that populate the edittext once user have select something the end clear button should be visible to allow for clear the datum this work in material 1 3 0 the clear button be show up even if the field be not focusable but not long show up in material 1 4 0 x there s a certain weirdness in 1 4 0 x as well in that if the focusable false then the clear button doesn t exist but if focusable true then it s clickable but alpha 0f so not really visible to the human eye even if it participate in the measure pass expect behavior would like the clear button to be visible and useable when the textinputedittext be customise to work like a dropdown button would prefer not to use an actual button for this because the ux be weird especially if user want to clear the data clear button be the obvious ux android api version 29 material library version reproducible on material 1 4 0 rc01 and material 1 4 0 beta01 work as normal in material 1 3 0 device test and show up on api 25 onwards |
materialcomponentsmaterialcomponentsandroid | textinputedittext set textisselectable true disable soft keyboard on samsung device | Bug | description when apply a style to a textinputedittext if the property textisselectable be set to true the soft keyboard do not appear specifically on samsung device when the component be tap on focus when this attribute be remove from its style the soft keyboard appear to work just fine as expect expect behavior when the textinputedittext be tap on focus the soft keyboard should appear source code style xml where the component style be declare theme xml where the style be apply android api version 7 0 api 24 material library version 1 4 0 rc01 device samsung s6 samsung galaxy s6 edge |
materialcomponentsmaterialcomponentsandroid | textinputedittext textinputlayout talkback issue when error be display | Bug | description I have a talkback issue with textinputlayout textinputedittext combo I have a form type of screen that present a number of editable field some mandatory some optional to the user I m perform a form validation when the user select save action if the form be not properly fill e g mandatory info miss field input be too short or otherwise do not fill the requirement I set the error message on the textinputlayout and make requestfocus call on the first text field that have an error the talkback will then correctly read the error message but the accessibility focus green box stay in the element toolbar action that fire the form validation to tackle this issue I start experiment if I could move the accessibility focus on the text field by make this call inputedit sendaccessibilityevent accessibilityevent type view focus if I make the call on the textinputedittext the behavior will change now the accessibility focus will move to the view that have focus and error set but the talkback read the hint text set on the textinputlayout if I make the call on the textinputlayout instead it doesn t do anything I e talkback will read the error message but the accessibility focus be not move expect behavior there should an easy way preferably default behavior to move the accessibility focus and make the talkback to read an error message set on the textinputlayout when the view get the focus source code android api version android api 28 material library version 1 3 0 device sony xperia g8441 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | appbarlayout overflow a screen | Bug | a layout such as constraintlayout toolbar layout height wrap content coordinatorlayout layout height 0dp toptobottom toolbar bottomtobottom parent appbarlayout collapsingtoolbarlayout one child view this child view over a screen recyclerview if appbarlayout over a screen height scroll to recyclerview and scroll back to appbarlayout again and repeat this operation you can see the layout shake and rollback chinese appbarlayout recyclerview appbarlayout |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment weird behavior when tap on webview inside nestedscrollview inside bottomsheetdialogfragment | Bug | description we have a webview in a bottomsheetdialogfragment and my understanding be that it s a good idea to have it inside a nestedscrollview so when the bottom sheet be expand and you scroll up in the webview you actually scroll the webview content instead of drag the bottom sheet down everything work great except for this very specific thing our webview have some top margin so the rounded corner look good and when you tap on the webview the content immediately go up as if there s no top margin it s easy to visualize the issue in a video so when we tap on the webview any part of its content for the first time we basically go from here to here a b and it s like the content just scroll for some reason because you can scroll a bit and reach this weird state here c the amount it scroll always match exactly the margin top I have in the webview and it s always the same result regardless of how I define this space top margin on webview padding top on webview parent space widget etc if instead of a webview I have other kind of scrollable content the issue doesn t seem to happen so the issue really seem to be relate to the webview somehow expect behavior nothing happen when I simply tap on the webview source code bottomsheet issue branch android api version 29 material library version 1 3 0 and 1 4 0 beta01 device pixel 3 seem to happen consistently on any device |
materialcomponentsmaterialcomponentsandroid | transition materialsharedaxis materialfadethrough ignore the transitiongroup attribute | Bug | description materialsharedaxis and materialfadethrough do not respect the transitiongroup attribute this lead to break textinputlayout transitiongroup be absolutely need because of these close bug 1420 1135 1175 1589 expect behavior the transitiongroup attribute should prevent the transition from animate child view android api version android api 30 and android api s beta 1 material library version 1 4 0 beta01 device pixel 4a 5 g pixel 3 xl |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform element transition not be retain when open a nested screen | Bug | description once we open screen a from home screen with material container transform it work fine and do the return transformation too but if we open another activity screen b from screen a then screen a lose its transformation setting expect behavior screen a material container should retain how it be launch and return back in the same transition android api version 30 material library version 1 3 0 device pixel 2xl screenshot video screen 1 list of art screen 2 art detail screen 3 artist detail we open screen 2 by click on art on screen 1 it follow enter and exit material transformation but when we open screen 3 from screen 2 then screen 2 lose its material transform property |
materialcomponentsmaterialcomponentsandroid | bottom sheet dismiss animation change on emulator from bottom to leave | Bug | on emulator run api 30 when the bottom sheet be be dissmisse it trigger an animation that slide from the left and then dissapear but on physical device run api 29 work as expect |
materialcomponentsmaterialcomponentsandroid | appbarlayout elevation disappear when appbarlayout be half visible | Bug | description when appbarlayout have app liftonscroll true and its sibling have app layout scrollflag scroll enteralway snap the elevation disappear if you stop scroll when the appbarlayout be half visible the issue be easy to see if after scroll up and hide the appbarlayout you start scroll down very slowly expect behavior elevation should remain visible even if you stop scroll when appbarlayout be half visible source code android api version the problem be reproducible in apis 16 through 30 material library version 1 3 0 device android emulator apis 16 through 30 and pixel 2 api 30 |
materialcomponentsmaterialcomponentsandroid | rangeslider knob thumb stay always visible if pull down inside a swiperefreshlayout | Bug | description if I drag down while adjustre the knob on a rangeslider which be inside a androidx swiperefreshlayout widget swiperefreshlayout then the knob stay there forever see this video expect behavior knob should disappear when I drag down instead the swiperefreshlayout appear and the knob stay forever source code set android enable false in i d swiperefresh make the problem go away but also the swipe to refresh ability android api version it have be verify on api 23 and api 30 material library version it have be verify on com google android material material 1 3 0 and com google android material material 1 2 1 device many physical and virtual device |
materialcomponentsmaterialcomponentsandroid | tab layout tab layout selection flicker | Bug | description when use material component for android 1 3 0 and high version the tabs selection be flick create visual bug expect behavior the flicking should not be visible as in version 1 2 0 source code android api version android api 30 material library version 1 3 0 and also 1 4 0 alpha01 device pixel3 xiaomi mi a2 but it happen and all device I have test it on |
materialcomponentsmaterialcomponentsandroid | appbar windowinset be not correctly handle | Bug | description inside a coordinatorlayout when use an appbarlayout with fitssystemwindow the scroll content be hide by the keyboard bottom inset expect behavior the scroll content should be place above the keyboard bottom inset source code with an edittext use adjustresize android api version 33 material library version 1 7 0 device pixel 2 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | animation windowanimationstyle no long animate activity | Bug | description since material 1 3 0 android windowanimationstyle appear to be ignore on activity transition even when use appcompat theme such that activity animation such as the classic slide animation describe below no long animate in fact there s no long any animation between activity expect behavior activity use the apptheme style as define below should animate use the slide in right left animation as define in the windowanimationstyle attribute source code apptheme slide in right slide in left slide out right slide out leave android api version android api 28 material library version 1 3 0 |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior scroll within a viewpager2 | Bug | description full description of issue here I have a viewpager2 setup with multiple fragment in one of they I have a persistent bottom sheet I m have an issue whenever I try and drag the bottom sheet and the parent viewpager will intercept the gesture interrupt the bottom sheet drag whenever there be any horizontal movement in the gesture expect behavior when drag the bottom sheet regardless of direction viewpager or any other parent can t intercept it similar behavior to recyclerview android api version 29 material library version try both 1 3 0 and 1 4 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | transition catalog demo break layout for container transform view | Bug | description if you click on a button to open a new view while another be already transition the fragment layout after return completely brake source code catalog demo code android api version 30 material library version I use catalog demo apk from release 1 4 0 alpha01 device google pixel 5 |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior support child s margintop | Bug | currently bottomsheetbehavior with margintop behave badly child jump on screen depend on layout phase and appear in different place when show also it s impossible to use both fistocontent and expand offset the only workaround be to set margintop to coordinatorlayout however this greatly limit other view in this parent the solution be to support margintop as if it be with an expand offset compatible with fistocontent one possible soulution be propose in 2094 |
materialcomponentsmaterialcomponentsandroid | appbarlayout scroll under keyboard doesn t work with fitsystemwindow true | Bug | build off of the issue describe here which be still unresolved description with fitssystemwindow true on appbarlayout and a nestedscrollview the nestedscrollview doesn t scroll appropriately when the keyboard be show and the activity have windowsoftinputmode adjustresize the keyboard s visibility do not affect how much the view scroll so when the keyboard be show there be content that s hide by it and unable to be scroll above it expect behavior expect behavior be that when the keyboard be visible all content that would be behind the keyboard when it be show be able to be scroll above it this be achievable by set fitssystemwindow false on the appbarlayout source code coordinator scroll issue copy zip android api version 30 material library version 1 3 0 device pixel 2 emulator look into the source I believe I ve trace the issue to the follow block at headerscrollingviewbehavior 72 if viewcompat getfitssystemwindow header final windowinsetscompat parentinset parent getlastwindowinset if parentinset null availableheight parentinset getsystemwindowinsettop parentinset getsystemwindowinsetbottom look like getsystemwindowinsetbottom will return the height of the keyboard so when that s add to availableheight and pass to layout the nestedscrollview it s as if the keyboard isn t show I be go to open a pr but I m have trouble get the instrumentation test to run locally depend on timing here I may end up open it eventually my other concern be that it s unclear to I what the intention of add those inset to the available height originally be I see chrisbane commit message another issue be with headerscrollingviewbehavior to workaround coordinatorlayout use its compatible measure for inset the behavior manually set the scroll view to fit system window this have other issue though because that view will get pad in fix by manually add the inset back into the measured dimension which describe the view be pad in as a problem however to I it seem like that s what we need to happen in this case and I m not sure I fully appreciate the issue cause by pad in the scroll view |
materialcomponentsmaterialcomponentsandroid | shapeableimageview contentpadde not work when set via kotlin | Bug | description when set contentpadding on a shapeableimageview in code kotlin or java it do not work as expect set app contentpadding via xml work fine expect behavior both element should match and be like the top element image source code mainactivity kt kotlin package com example bug import androidx appcompat app appcompatactivity import android os bundle import android util typedvalue import com google android material imageview shapeableimageview class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main val px typedvalue applydimension typedvalue complex unit dip 8f resource displaymetric toint findviewbyid r i d kotlin setcontentpadde px px px px activity main xml xml style xml xml android api version 30 material library version 1 3 0 device pixel 3 and other |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior bottomsheetbehavior doesn t play well with layout transition | Bug | description layout with attach bottomsheetbehavior jump to top of its parent container if you change view visibility inside it with enable layouttransition here be how it look like with enable layout transition with transition and if I disable layout transition it work as expect without transition source code bottomsheetbug zip the reason be layouttransition basically work as follow 1 remember current view state 2 wait for next layout 3 remember new view state 4 start animation from old state to new state and if we look at bottomsheetbehavior onlayoutchild coordinatorlayout v int l396 method we can see this java first let the parent lay it out parent onlayoutchild child layoutdirection offset the bottom sheet parentwidth parent getwidth parentheight parent getheight childheight child getheight fittocontentsoffset max 0 parentheight childheight calculatehalfexpandedoffset calculatecollapsedoffset the problem here when parent onlayoutchild child layoutdirection be call parent coordinatorlayout lay out our view on top of itself and this cause view onlayoutchangelistener inside layouttransition to trigger with new value before bottomsheetbehavior have chance to offset it properly ideally I would have add some method to coordinatorlayout to get view bound without layout it use it then offset view to proper position and call view layout int int int int at the end from bottomsheetbehavior android api version 30 material library version 1 3 0 device api 25 emulator |
materialcomponentsmaterialcomponentsandroid | shapeableimageview use glide and cross fade transition fail sometimes | Bug | description when load a shapeableimageview with glide and apply a cross fade transition make the shapeableimageview to sometimes not make the corner properly worth mention be that the shapeableimageview be inside a recyclerview something that might help find the issue be that the issue be much more prevalent in version 1 2 0 in that one almost never do the imageview show the correct shape but in 1 3 0 it only happen sometimes expect behavior the corner should appear as expect source code loading val view shapeableimageview val url string val placeholder drawable glide with view load url placeholder placeholder error placeholder fallback placeholder transition drawabletransitionoption withcrossfade 200 into view shapeableimageview shapeappearance android api version 30 material library version 1 3 0 and 1 2 0 device pixel 4 |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform recyclerview content be go during transition when linearlayoutmanag recyclechildrenondetach true | Bug | description I m use materialcontainertransform in a fragment transition I see that recyclerview ondetachedfromwindow get call immediately as soon as the transition start unlike ondestroyview that wait for the transition to end for performance improvement I m set linearlayoutmanag recyclechildrenondetach to true this flag make linearlayoutmanag ondetachedfromwindow clear the view in the recyclerview cause the screen to turn blank when the transition start ref the real issue be that recyclerview ondetachedfromwindow doesn t wait for the transition to complete in a regular fragment transition without materialcontainertransform this method get call only after the transition be complete source code see firstfragment l59 video android api version 30 material library version 1 3 0 rc01 device pixel 3 xl |
materialcomponentsmaterialcomponentsandroid | tablayoutmediator populatetabsfrompageradapter be not take in account current select item | Bug | description when an update be make in viewpager adapter all tab be recreate but current item be not center expect behavior current select tab must be in the center of tablayout source code void populatetabsfrompageradapter tablayout removealltab if adapter null int adaptercount adapter getitemcount for int I 0 I adaptercount I tablayout tab tab tablayout newtab tabconfigurationstrategy onconfiguretab tab I tablayout addtab tab false make sure we reflect the currently set viewpager item if adaptercount 0 int lastitem tablayout gettabcount 1 int curritem math min viewpager getcurrentitem lastitem if curritem tablayout getselectedtabposition tablayout selecttab tablayout gettabat curritem else todo scroll tablayout to select item without animation android api version 10 material library version 1 2 1 device xiaomi mi a2 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 | motion share axis transition do not work when enter a fragment that contain a recycler view | Bug | description when use share axis transition go from a fragment to another fragment which contain a recycler view the recycler view be not animate while the rest of the fragment be animate correctly go back have no issue the recycler view get animate correctly when navigate up expect behavior the recycler view should be animate like other part of the fragment source code follow the transition between fragment section in share axis share axis but use findnavcontroller navigate instead of supportfragmentmanager android api version 30 material library version 1 3 0 rc01 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 | linearprogressindicator showanimationbehavior hideanimationbehavior issue | Bug | use these 2 property and the navigation component library the linearprogressindicator not show in fragment that aren t set as start fragment in navigation graph |
materialcomponentsmaterialcomponentsandroid | materialtimepicker keyboard re appear after close dialog | Bug | description use the materialtimepicker dialog with input mode keyboard and press either positive or negative button will cause the keyboard to re appear but alphanumeric not with digit this do not occur when dismiss the dialog by click outside of it only when press cancel or ok while the digits keyboard be open maybe the follow be relate 2020 12 28 23 17 48 041 1291 1291 com google android inputmethod latin e keyboardviewcontroller keyboardviewcontroller show 438 request to show sub view with i d 2131428318 key pos password header number which doesn t exist in current keyboard view jyl at klb a pg 195 at bty a pg 4 at com google android app inputmethod latin keyboard latinpasswordkeyboard a pg 19 at kfh a pg 15 at kev a pg 31 at kev h pg 26 at kez d pg 10 at kez b pg 108 at com android inputmethod latin latinime b pg 339 at dwq onstartinputview pg 786 at android inputmethodservice inputmethodservice dostartinput inputmethodservice java 2339 at android inputmethodservice inputmethodservice inputmethodimpl startinput inputmethodservice java 620 at android inputmethodservice inputmethodservice inputmethodimpl dispatchstartinputwithtoken inputmethodservice java 649 at android inputmethodservice iinputmethodwrapper executemessage iinputmethodwrapper java 199 at com android internal os handlercaller myhandler handlemessage handlercaller java 44 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 expect behavior the keyboard do not re open after close the dialog source code val dialog materialtimepicker builder sethour time hour setminute time minute settimeformat if is24hourformat timeformat clock 24h else timeformat clock 12h setinputmode input mode keyboard build dialog show parentfragmentmanager materialtimepicker android api version 26 and 30 material library version 1 3 0 alpha03 device emulator nexus 4 api 30 and samsung sm a320fl api level 26 |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform poor visual performance on the first run | Bug | description hello materialcontainertransform sharedelemententertransition be great however I m experience strange visual smoothness issue on the first post install materialcontainertransform animation run these issue be successfully reproduce on both the official reply app sample and on my project I ll try to provide all the request detail that issue be super annoying my attempt to detect anomaly via profiler fail I ve find no difference in app workload between laggy and smooth run the issue reproduce only on the first few post install run consequent cold run run after reboot and run in the same process be smooth both r8 optimize release and non optimize debug build be experience the same issue source code official reply app experience the same issue too my snippet override fun oncreate savedinstancestate bundle super oncreate savedinstancestate exittransition materialelevationscale false reentertransition materialelevationscale true sharedelemententertransition materialcontainertransform also it drawingviewid r i d mainfragmentcontainer it duration constant enter transition duration it startshapeappearancemodel shapeappearancemodel withcornersize resource getdimensionpixeloffset r diman default card corner radius tofloat it endshapeappearancemodel shapeappearancemodel withcornersize resource getdimensionpixeloffset r diman default card corner radius tofloat it startcontainercolor contextcompat getcolor requirecontext r color surfacecolor it endcontainercolor contextcompat getcolor requirecontext r color backgroundcolor sharedelementreturntransition materialcontainertransform also it drawingviewid r i d mainfragmentcontainer it duration constant exit transition duration it startshapeappearancemodel shapeappearancemodel withcornersize resource getdimensionpixeloffset r diman default card corner radius tofloat it endshapeappearancemodel shapeappearancemodel withcornersize resource getdimensionpixeloffset r diman default card corner radius tofloat it startcontainercolor contextcompat getcolor requirecontext r color backgroundcolor it endcontainercolor contextcompat getcolor requirecontext r color surfacecolor android api version android 11 api 30 material library version 1 2 1 1 3 0 beta01 device samsung galaxy s20 ultra |
materialcomponentsmaterialcomponentsandroid | appbarlayout do not expand when use with a nest coordinatorlayout on version 1 2 1 | Bug | description when we use a coordinatorlayout nest inside another coordinatorlayout and we define different scroll flag for each appbarlayout it doesn t work properly in 1 2 1 version and 1 3 0 rc01 note that it work correctly on 1 0 0 version the goal be to have an appbarlayout with a collapsingtoolbar scrollflag scroll exituntilcollapse snap in the main coordinatorlayout and an appbarlayout with a toolbar scrollflag scroll enteralway snap in the nest coordinatorlayout version 1 0 0 work as expect version 1 2 1 and above not work device 2020 12 14 113324 device 2020 12 14 113931 source code project layout l32 l52 android api version android api 30 material library version 1 2 1 |
materialcomponentsmaterialcomponentsandroid | materialdatepicker materialtimepicker maybe other as well slow load time | Bug | description I want to use those component in my app but I notice some really unusual loading speed for the initial load after the app be cold start it take up to three second for the picker to show up after they be request ezgif 1 496c20434c9e that behaviour happen when I start the application from android studio on my phone or in the emulator when I use the sample app for the material component from the playstore it s behave normally so no opening delay I m actually kinda clueless what the reasoning might be consecutive click be fast expect behavior the picker should show up nearly instantaneously source code this screencapture be from a minimal application that consist just of one activity class mainactivity appcompatactivity override fun oncreate savedinstancestate bundle super oncreate savedinstancestate setcontentview r layout activity main findviewbyid r i d datepicker setonclicklistener materialdatepicker builder datepicker build show supportfragmentmanager date picker findviewbyid r i d timepicker setonclicklistener materialtimepicker builder build show supportfragmentmanager date picker the layout just contain the two button android api version 10 material library version 1 3 0 alpha04 device oneplus 6 t emulator in android studio |
materialcomponentsmaterialcomponentsandroid | textinputlayout input invisible on samsung device | Bug | description when I enter text into the input field the text be not visible at all expect behavior it should be visible as in the screen shot attach screenshot 2020 11 18 16 29 04 743 com minduplab debug source code I be use app theme theme materialcomponent daynight noactionbar android api version android 10 sdk 29 material library version 1 3 0 alpha03 1 3 0 alpha02 device samsung galaxy s10 |
materialcomponentsmaterialcomponentsandroid | collapsingtoolbarlayout collapsingtoolbarlayout scroll issue with viewpager | Bug | description collapsingtoolbarlayout stop react to scroll when viewpager2 with fragmentstateadapter change page occur with either viewpager or viewpager2 happen if viewpager s fragment content have either nestedscrollview or recyclerview inside step to reproduce 1 run the app 2 toolbar collapse correctly while drag appbar or viewpager content up and down 3 swipe viewpager right to get to the next page do not scroll the viewpager content 4 drag appbar to collapse expand toolbar be not work anymore 5 scroll by drag viewpager2 fragment enable toolbar collapse enlargement by drag appbar again gif error in the case of viewpager the error do not occur when swipe out page be still within the viewpager2 offscreenpagelimit eg when offscreenpagelimit 1 swiping from page 0 1 do not break the scroll but from 1 2 do essentialy for view pager it happen when fragment that have be scroll get out of viewpager offscreenpagelimit range expect behavior toolbar should respond to scroll and collapse enlarge in the same way before and after a viewpager page change source code github repo to reproduce the issue create by add viewpager to androidstudio s new scrollingactivity project source code for the layout android api version min 22 target compile 29 material library version 1 2 1 error still occur on 1 3 0 alpha03 device sony xperia android 9 0 and many other |
materialcomponentsmaterialcomponentsandroid | add view to toolbar add to collapsingtoolbarlayout | Bug | description the problem be when I add a view for exmaple an imagebutton to toolbar that be direct child of collapsingtoolbarlayout that imagebutton s layout gravity be not true in rtl language when I set layout gravity to start for exmaple this imagebutton s be stick to left of toolbar in english language as a ltr language but in persian language as a rtl language it be stick to left of toolbar again as this mean end not start expect behavior layout gravity start of direct child of toolbar in collapsingtoolbarlayout should stick to right of toolbar and vice versa source code android api version any but test in 29 material library version 1 2 1 late stable right now device nexus 4 emulator |
materialcomponentsmaterialcomponentsandroid | tablayoutmediator with smoothscroll false cause manual page via swiping to abruptly stop animate | Bug | create a viewpager2 and make sure isuserinputenable be true tie the viewpager2 to a tablayout ensure that smoothscroll be false tablayoutmediator tablayout viewpager true false tab position attach with these setting we should expect user input I e swipe on the viewpager2 to result in a smooth animation while click on a tab should result in a non animate instant change in page however what actually happen be that the swipe animation abruptly stop as soon as the user lift his her finger this happen because of a circular relationship between tablayoutmediator viewpagerontabselectedlistener and tablayoutmediator tablayoutonpagechangecallback the user swipe should just update the tablayout ui and be do but instead it trigger the tablayoutonpagechangecallback which in turn call the viewpagerontabselectedlistener which then call viewpager setcurrentitem with smooth false that last piece abort the animation in progress this a side effect of 813 tablayout disable viewpager2 smoothscroll with tablayoutmediator note that pass smoothscroll true be not a solution because it then cause unwanted animation after tab click expect behavior swipe page animation should continue until viewpager2 settle source code see mention class in tablayoutmediator java android api version any material library version 1 3 0 alpha03 device any |
materialcomponentsmaterialcomponentsandroid | materialtimepicker it s impossible to select am hour when time format be set to clock 12 | Bug | description hey this task be a duplicate for 1775 since it be close before resolve 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 image 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 | tablayout width of first tab be incorrect on some device | Bug | description a tablayout which have a tabmode value of fix and a tabgravity value of fill as in the layout file here result in the first tab render with a width of 264dp on some device rather than its natural width as this screenshot demonstrate expect behavior the first tab should have a natural width like the other two tab in the tablayout rather than a width of 264dp which curiously be the value of the design tab max width dimension in the com google android material material library source code see this minimal android application which demonstrate the problem android api version android 10 material library version 1 2 1 device moto g8 plus landscape orientation |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment gradient background | Bug | hello I want to make a bottomsheetdialogfragment with a gradient background I ve manage to change the background color of the dialog with these style xml but backgroundtint only support plain color not gradient be it possible with the late version of the library to achieve a gradient background |
materialcomponentsmaterialcomponentsandroid | appbarlayout appbarlayout cause coordinatorlayout swipe stuck while swiperefreshlayout be the parent | Bug | description for some reason I have to put coordinatorlayout inside swiperefreshlayout it scroll well if there be no appbarlayout inside coordinatorlayout but if I put appbarlayout inside coordinatorlayout the swipe down gesture not work as expect bad expect behavior when appbarlayout remove good source code swiperefreshlayout onrefresh isrefreshe false just for test coordinatorlayout appbar start appbarlayout button appbarlayout padding dip 32 lparam matchparent wrapcontent scrollflag appbarlayout layoutparam scroll flag scroll lparam matchparent wrapcontent behavior appbarlayout behavior appbar end recyclerview backgroundcolor 0xff66ff66 toint layoutmanager linearlayoutmanag context adapter todo set adapter lparam matchparent wrapcontent behavior appbarlayout scrollingviewbehavior android api version android 11 material library version 1 3 0 alpha03 device pixel 3a avd |
materialcomponentsmaterialcomponentsandroid | materialcardview rounded background doesn t render correctly on api 26 | Bug | description on api 26 the rounded background doesn t render correctly screenshot 1602563847 expect behavior same code work on api 29 screencap 2020 10 13t044359 491z source code xml android api version api 26 material library version 1 3 0 alpha01 device nexus s api 26 emulator |
materialcomponentsmaterialcomponentsandroid | textinputedittext the height of a resize textinputedittext get change after an icon be display | Bug | description I ve be try to resize the height make it small slimmer to be exact of textinputedittext without mess up too much of the layout gabrielemariotti answer in seem to do just that until I try set error text on it when I set the error programmatically use the seterror method I m use java the height get change back I think to the default height and when I clear the error by pass null to the seterror the height stay that way error I then test the helpertext since it doesn t display icon by default and it didn t change the height then to confirm I set the endiconmode to clear text and when I type some text the height instantly get change so maybe it s because the style textinputedittext height couldn t accommodate the height of those icon expect behavior the height of the textinputedittext doesn t get change after display an icon or at least change height back to the desire size again after error be clear source code style xml java repeatbutton setonclicklistener new view onclicklistener override public void onclick view v if inputedittext gettext tostre trim isempty inputlayout seterror field can t be empty inputedittext addtextchangedlistener new textwatcher override public void beforetextchange charsequence s int start int count int after override public void ontextchanged charsequence s int start int before int count inputlayout seterror null override public void aftertextchange editable s android api version 30 material library version 1 3 0 alpha03 device avd pixel 2 api 30 so any way to get around this problem like can I adjust the size of the icon or maybe the padding |
materialcomponentsmaterialcomponentsandroid | motion share axis transition be break with fragment 1 3 0 beta01 | Bug | description there be visual issue with the share axis transition when use fragment 1 3 0 beta01 device 2020 10 02 174713 mp4 zip the new fragment appear without animation source code I use the catalog app with the fragment version set to 1 3 0 beta01 android api version 30 material library version late master d88ff770be2fd0041a82ca4ae2d6000136e0eada device google pixel 4xl |
materialcomponentsmaterialcomponentsandroid | transition materialcontainertransform start view be fade out slowly after the activity be finish | Bug | description I m use materialcontainertransform for transition between activity b and activity c start view fab in activity b end view root layout in activity c enter and return transition work well but when super onbackpresse finishaftertransition be call in activity b the start view be fade out slowly after activity a be resume xlrcw7ka2l expect behavior fade animation for the start view should not occur source code java public class activitya extend appcompatactivity override protect void oncreate nullable bundle savedinstancestate super oncreate savedinstancestate bind bottomappbar setonmenuitemclicklistener item startactivity new intent this activityb class start activity b return true java public class activityb extend appcompatactivity override protect void oncreate nullable bundle savedinstancestate window window getwindow window requestfeature window feature activity transition setexitsharedelementcallback new materialcontainertransformsharedelementcallback super oncreate savedinstancestate start activity c bind fab setonclicklistener v startactivity new intent this activityc class activityoption makescenetransitionanimation this v transition activity tobundle java public class activityc extend appcompatactivity override protect void oncreate nullable bundle savedinstancestate window window getwindow window requestfeature window feature activity transition setentersharedelementcallback new materialcontainertransformsharedelementcallback window setsharedelemententertransition createtransition window setsharedelementreturntransition createtransition super oncreate savedinstancestate private materialcontainertransform createtransition materialcontainertransform materialcontainertransform new materialcontainertransform materialcontainertransform addtarget r i d root materialcontainertransform setduration 350l materialcontainertransform setallcontainercolors color white return materialcontainertransform additional info if I set the transition name of the start view to null before call super onbackpresse finishaftertransition this issue do not occur java override public void onbackpresse bind fab settransitionname null super onbackpresse android api version 29 material library version 1 3 0 alpha02 device nokia 8 1 |
materialcomponentsmaterialcomponentsandroid | textview do not resize during transition with motionlayout | Bug | if a textview be be resize during a transition and the layout width or layout height be set to wrap content then the widget be not resize well most of the time the widget flick show only a part of the component test with constraintlayout v2 0 1 |
materialcomponentsmaterialcomponentsandroid | material transition transition issue when share element be inside other container | Bug | description when transition from fragment a to fragment b with entertransition materialfadethrough some element be not part of the share transition as their parent be animate expect behavior share element should always be visible during transition source code transitioning from the following fragment with view from viewstub be the share element will not work unless with entertransition materialfadethrough unless I manually exclude the appbar from transition with entertransition materialfadethrough apply excludetarget r i d appbar true 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 | materialcardview large materialcardview with cornersizetopright 24dp be not render on small screen | Bug | description we re use large materialcardview with rounded top corner inside a nestedscrollview when test on emulator represent an old phone api 21 nexus s 480 800 we discover that materialcardview just isn t render on the screen further investigation show this only happen with certain value for cornersizetopright attribute 24dp 48dp cardview bug expect behavior cardview expect sample project android api version 21 not reproduce on api 23 25 29 material library version 1 2 1 1 3 0 alpha02 device android emulator represent nexus s |
materialcomponentsmaterialcomponentsandroid | motion unload imageview when return from materialcontainertransform | Bug | description I m use materialcontainertransform to transition from fragment a to a fragment b that contain a recyclerview whose item have shapeableimageview s note fragment a be part of a viewpager2 host by fragment z transitionne from a to b work fine transition be postpone until b s recyclerview display be ready but when return from b we notice that image that be load with glide be reset and blank material container bug expect behavior image load into imageview s should not be reset those should be preserve in the return transition also why be sheapeableimageview show black rounded corner this strange behavior of shapeableimageview be also noticeable on android studio s layout preview corner be then light grey source code in fragment z kotlin override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate postponeentertransition 1000 timeunit millisecond configure viewpager adapter in fragment a kotlin override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate some view initialization code viewmodel livedata observe viewlifecycleowner adapter submitlist it val fragmentz requireparentfragment fragmentz requireview parent doonpredraw fragmentz startpostponedentertransition private fun displayfragmentb root item view from the clicked element in recyclerview have transitionname set in onbindviewholder val itemview val sharedelementextra fragmentnavigatortextra itemview to some item i d requireparentfragment apply exittransition hold apply duration 300 addtarget r i d fragment z reset transition set by other navigation event reentertransition null findnavcontroller navigate r i d to fragment b sharedelementextra in fragment b kotlin override fun oncreate savedinstancestate bundle super oncreate savedinstancestate sharedelemententertransition materialcontainertransform apply drawingviewid r i d nav host fragment duration 300 scrimcolor color transparent setallcontainercolor themecolorsurface override fun onviewcreate view view savedinstancestate bundle super onviewcreate view savedinstancestate postponeentertransition 500 timeunit millisecond view transitionname some item i d viewmodel livedata observe viewlifecycleowner adapter submitlist it view parent doonpredraw startpostponedentertransition android api version 29 q material library version 1 2 1 device nokia 7 1 but also encounter on emulator |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior header disappear when call setstate | Bug | see attach sample project it s pretty self explanatory bug confirm in version 1 2 0 run android 10 when the header of the bottomsheetbehavior be scroll out of view and you then call setstate state half expand e g from a button timer or whatever the header will disappear I believe state expand and state collapse will show a similar issue be there a workaround a miss requestlayout somewhere bottomsheetbug zip |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform device get pause temporarily when finish an activity | Bug | description device get pause temporarily when finish an activity after return from container transform affect dependency 1 3 0 alpha01 1 3 0 alpha02 previous dependency be work properly 1 2 0 alpha06 1 3 0 alpha01 1 3 0 alpha02 affect device samsung galaxy s10 samsung galaxy s7 nexus 10 pixel 2 source code repository this repository use material 1 3 0 alpha02 dependency we can test 1 2 0 alpha06 version by reset commit gradle git reset hard 54b792b work properly 54b792b issue occur since this commit 89fa4ed gradle build tool version 3 6 3 4 0 1 |
materialcomponentsmaterialcomponentsandroid | textinputedittext performance issue when type | Bug | description there be an issue when a when use the textinputedittext with android inputtype textpassword there be a half to quarter of a second delay on every single keystroke expect behavior no noticeable delay between keystroke source code run this repo and you will see the issue android api version test sdk 26 27 28 29 30 material library version this happen only at 1 2 0 and up 1 2 0 1 2 1 as of write this report device this code test on a pixel 2 xl run android 10 original issue see on pixel 4 3 3a 2 xl samsung fold lg v40 s10e and s10 to help we triage fast please check to make sure you be use the late version of the library this issue do not happen on 1 1 0 but do happen in 1 2 0 and 1 2 1 medium showing issue in action 1 2 1 issue 1 2 0 issue 1 1 0 no issue |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform corner disappear | Bug | description materialcontainertransform crop corner when animate make corner border disappear in the middle of the animation material library version 1 3 0 alpha02 ezgif com video to gif a project with the necessary to replicate the gif myapplication zip |
materialcomponentsmaterialcomponentsandroid | textinputlayout collapse on small device when show keyboard | Bug | description textinputlayout collapse when expand the keyboard on a small device when that field be inside a dialog expect behavior should not collapse source code the code snippet which be cause this issue please consider attach a minimal sample app that reproduce the issue object requirenonnull dialog getwindow setsoftinputmode windowmanager layoutparam soft input state visible it seem related to the setsoftinputmode call which I m use to show the keyboard android api version 23 29 material library version reproduce on 1 1 0 1 2 0 rc 1 and 1 3 0 alpha 1 device nexus 5 emulator run api 23 and api 29 happen both with and without android windowsoftinputmode adjustpan |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform view to activity transition use incorrect activity position if app be launch in multiwindow mode and place at the bottom of split screen | Bug | description view to activity transition use incorrect start and end activity position on enter transition new activity come from the top of the app window and go there on exit work only if app place at the bottom of the screen expect behavior activity transition should work the same in multiwindow mode as in fullscreen source code reproduce in catalog app android api version check on api 26 and 29 material library version test on 1 2 0 alpha06 and 1 3 0 alpha01 device emulator and real device video from emulator run catalog app you can see both case with activity animation work incorrectly while fragment one be good |
materialcomponentsmaterialcomponentsandroid | expose dropdown menu filtering incorrectly apply after rotation | Bug | description it seem that in some case filter be incorrectly apply to autocompletetextview after rotate the device which cause that all option except for the select one disappear from dropdown menu step to reproduce 1 open material catalog app 2 go to textfield expose dropdown menu demo 3 tap on 4th textfield from the top and select any value from the dropdown menu 4 rotate the device to landscape and back to portrait 5 try to select a value from any of the 4 textfield the result be that those dropdown be now show only 1 value instead of all of they expect behavior all textfield dropdown menu should show all value after device rotation android api version test on android 10 and android 11 beta material library version check on 1 3 0 alpha01 and 1 2 0 beta01 device google pixel 3 and emulator |
materialcomponentsmaterialcomponentsandroid | textinputlayout counter label be invisible if textinputlayout height be anything but wrap content | Bug | description when enable the counter helper text the counter label itself isn t visible if the textinputlayout have a static height it s only visible if the textinputlayout height be wrap content expect behavior I expect that the counter label would be visible regardless of the height of the text field I d be happy to try and dig in and fix this submit a pr just want to clarify if this be expect behavior or not I don t see much in the material spec about large multi line text field source code below be some screenshot of a layout where I m test this I have two textinputlayout field align vertically the counter be enable on both and the max counter length be set to 5 the top field friend email address have its height set to wrap content in both example the bottom field add message have its height as wrap content in the first example and a static height 90dp in the second example the counter seem to work in both case field color be the correct error color when the text length be counter max length the counter label be just hide height of 0 in the bottom example example 1 ids style and other attribute omit example 2 ids style and other attribute omit android api version android 10 material library version test on 1 1 0 and 1 2 0 beta01 device samsung s9 sm g960u1 to help we triage fast please check to make sure you be use the late version of the library we also happily accept pull request |
materialcomponentsmaterialcomponentsandroid | bottomsheetdialogfragment bottomnavigationview weird behavior on navigation | Bug | description I ve get a menu with 4 item home search category and plus the plus item be the bottomsheetdialogfragment whenever I click on it it make I navigate back to my startdestination which be home and open the bottomsheetdialogfragment expect behavior open the bottomsheetdialogfragment on the screen I m actually at source code kotlin val host navhostfragment supportfragmentmanager findfragmentbyid r i d nav host fragment as navhostfragment return val navcontroller host navcontroller val toolbar findviewbyid r i d toolbar val appbarconfiguration appbarconfiguration setof r i d homefragment r i d searchfragment r i d categoriesfragment r i d plusfragment setsupportactionbar toolbar val bottomnav findviewbyid r i d bottom nav view bottomnav setupwithnavcontroller navcontroller android api version 19 material library version 1 2 0 alpha06 device galaxy s3 neo 4 4 2 additional note when I remove r i d plusfragment from appbarconfiguration and use kotlin findviewbyid r i d plusfragment setonclicklistener navcontroller navigate r i d plusfragment the bottomsheetdialogfragment be display correctly in the fragment I m currently at |
materialcomponentsmaterialcomponentsandroid | tablayout indicator with tabindicatorfullwidth false do not match label if label be not center | Bug | description I have this style and it render as this screenshot 20200617 110524 expect behavior indicator should match label width android api version 29 material library version 1 3 0 alpha01 |
materialcomponentsmaterialcomponentsandroid | tablayout tab layout take up entire space while use customview | Bug | description start release version 1 1 0 alpha10 tablayout occupy entire space when use itemview expect behavior expect as reproduce with 1 1 0 alpha09 image all release after that image source code sample application testy zip android api version android api version here material library version work 1 1 0 alpha09 break 1 1 0 alpha10 to 1 3 0 alpha01 device samsung galaxy s8 |
materialcomponentsmaterialcomponentsandroid | materialtoolbar searchview text hint not use coloronprimary | Bug | description when have the follow layout define the toolbar the color of the toolbar title subtitle icon be set correctly to attr coloronprimary however the text and hint of the searchview be not expect behavior I would expect the color of the searchview to be the same as the tile subtitle of the toolbar source code the definition of themeoverlay materialcomponent toolbar primary l77 l80 be miss the color setting for the searchview when override the default themeoverlay with the follow it work fine android api version 29 material library version com google android material material 1 1 0 device emulator nokia 1 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 | exposeddropdownmenu strange behaviour when ondismissedlistener be set | Bug | hi everything work fine until we set ondismisslistener on the autocompletetextview if the say listener be set and we click anywhere on the screen else than the end icon or autocompletetextview while the dropdown be visible the dropdown dismisse correctly but end icon be not rotate back upwards now when we click on the end icon or autocompletetextview with the intention to show dropdown again only the end icon be rotate back upwards and dropdown be not show it seem that the view have only reset itself this time on next click though the dropdown show properly try on physical device xiaomi mi note 8 pro use android 9 api level 28 I ve try both release of material component 1 2 0 alpha03 and 1 3 0 alpha01 and the issue persist |
materialcomponentsmaterialcomponentsandroid | bottomnavigationview item s long click handle | Bug | I want to handle long click on bottomnavigationview item for make own context menu like its in instagram when user can hold accout icon and choose another profile I use this code java override protect void oncreate bundle savedinstancestate super oncreate savedinstancestate setcontentview r layout activity main bottomnavigationview bottomnavigationview findviewbyid r i d bottom navigation bottomnavigationview setonnavigationitemselectedlistener listener bottomnavigationview setselecteditemid r i d nav message bottomnavigationview findviewbyid r i d nav profile setonlongclicklistener new view onlongclicklistener override public boolean onlongclick view v toast maketext getapplicationcontext r string dark mode toast length short show return true showfragment new messagesfragment but it work only when I start the app and hold item if I start click on item and after that try to hold item again it do not work it seem like listener stop work after user start communicate with bottomnavigationview thank you |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform strange behavior when exit from the first activity after share element transition | Bug | description the screen go black except the start view of the transition when exit from the first activity after return from the second activity by share element transition here be the video besides you can see in the video that the screen flash after transitte to the second activity be it a bug or my incorrect usage expect behavior the app exit normally source code transition demo zip android api version it seem that this problem only happen on api 29 and above test on emulator with api 28 30 material library version 1 2 0 beta01 and 1 3 0 alpha01 device pixel 2 android 10 and emulator |
materialcomponentsmaterialcomponentsandroid | collapsingtoolbarlayout consume system window inset block sible view from receive inset | Bug | description collapsingtoolbarlayout be listen to window inset and inside the listener call java consume the inset this be do so that child view with fitsystemwindow true do not get the default padding functionality from view return inset consumesystemwindowinset while consume the inset so its child do not receive they make sense due to how inset be dispatch by system this cause inset to not be dispatch also to its sibling view maybe it could only consume the inset only if android fitssystemwindow true after quite some trial error I discover a workaround if I set my own inset listener do nothing on the collapsingtoolbarlayout I can avoid it consume the inset but this feel like hack around it instead of proper solution expect behavior system window inset be also dispatch to its sibling view source code xml kotlin override fun onviewcreate view view savedinstancestate bundle viewcompat setonapplywindowinsetslistener recyclerview inset this will not be call inset viewcompat setonapplywindowinsetslistener appbar inset this be call ok inset android api version I check on api 29 material library version 1 1 0 1 2 0 alpha06 |
materialcomponentsmaterialcomponentsandroid | motion floatingactionbar bottomappbar bug with transition | Bug | description when I m try to show button with fab visibility view visible it doesn t set bottomappbar cradle on the other side when I m use fab show it create wrong animation visibility show 2020 05 18 16 19 39 2020 05 18 16 26 07 expect behavior correct animation source code android api version 29 material library version material android library 1 2 0 alpha06 1 2 0 alpha05 device oneplus 2 android q emulator android pie |
materialcomponentsmaterialcomponentsandroid | bottomsheetbehavior scroll in webview do not work properly | Bug | description I have a container view with a webview that have a scroll inside html page this container have the bottomsheetbehavior so when I scroll down in the webview and I try to scroll to top instead of scroll I drag the page cause bottomsheetbehavior expect behavior if I scroll down in webview then I scroll to top and when I m on top of page then I drag the page like a normal behavior in a non webview page solution that I try 1 if I make nestedscrollingenable true on webview the scroll work properly but I can drag the page only on drag on toolbar 2 if I put a nestedscrollview on parent to the webview the scroll work properly I can drag the page like expect behavior but the webview page do not work properly because I have some button that go to another part of the page that do not work and if I go to another page inside the same webview the scroll still in the same position instead of go to top of page |
materialcomponentsmaterialcomponentsandroid | materialcontainertransform share element transition with playerview exoplayer2 | Bug | description use the latested library with a share element transition contain in fragment b a videoview from excoplayer crash sometimes no exception be show in logcat just always the signal11 as describe later if I set view as go transition work and never crash if videoview be visible doesn t matter if play or pause it crash sometimes expect behavior here be a video where it work sometimes and then crash source code use arch navigation to switch between fragment android api version 29 material library version com google android material material 1 2 0 alpha06 com google android exoplayer exoplayer 2 11 0 device test on emulator and pixel 4 a refbase decstrong call on 0xbd102580 too many time beginning of crash 1587902454 929 a libc fatal signal 11 sigsegv code 1 segv maperr fault addr 0x4 in tid 15702 hwuitask1 pid 15510 com megalol app |
materialcomponentsmaterialcomponentsandroid | materialsharedaxis strange error log | Bug | description every navigate back I have something like that in my logcat e bufferqueueproducer unnamed 7175 0 setmaxdequeuedbuffercount 2 dequeue buffer would exceed the maxbuffercount 2 maxacquire 1 async 0 mdequeuedbuffercannotblock 0 e surface igraphicbufferproducer setbuffercount 3 return invalid argument e bufferqueueproducer unnamed 7175 1 setmaxdequeuedbuffercount 2 dequeue buffer would exceed the maxbuffercount 2 maxacquire 1 async 0 mdequeuedbuffercannotblock 0 e surface igraphicbufferproducer setbuffercount 3 return invalid argument e bufferqueueproducer unnamed 7175 2 setmaxdequeuedbuffercount 2 dequeue buffer would exceed the maxbuffercount 2 maxacquire 1 async 0 mdequeuedbuffercannotblock 0 e surface igraphicbufferproducer setbuffercount 3 return invalid argument e bufferqueueproducer unnamed 7175 3 setmaxdequeuedbuffercount 2 dequeue buffer would exceed the maxbuffercount 2 maxacquire 1 async 0 mdequeuedbuffercannotblock 0 e surface igraphicbufferproducer setbuffercount 3 return invalid argument source code inside the fragment private fun configureanimation val exittrx materialsharedaxis create requirecontext materialsharedaxis x false exittransition exittrx when animationtype animationtype linear entertransition materialsharedaxis create requirecontext materialsharedaxis x true animationtype fade entertransition materialfadethrough create requirecontext android api version 29 material library version 1 2 0 alpha05 device both of they image |
materialcomponentsmaterialcomponentsandroid | appbarlayout liftonscroll not work properly when have edittext with minline minheight attr as one of child in scrolling view | Bug | description liftonscroll not work properly when have edittext with minline minheight attr as one of child in scrolling view view be scroll along with edittext that keep expand to the next line but liftonscroll elevation still not show until reach minline minheight attrs try playaround with sample code and see elevation on toolbar when type in edittext expect behavior liftonscroll elevation should be show correctly source code appbarlayout elevation zip android api version target 29 material library version 1 1 0 device huawei p9 w android 7 0 huawei mate 30 pro w android 10 pixel 2 w 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 | textinputedittext have no valueattrchange for compile twowaydatabinde | Help Wanted | description I can t use two way datum bind with textinputedittext when use a mutablelivedata get could not find event valueattrchange on view type com google android material textfield textinputedittext expect behavior I don t understand why that would be intend if it be how should I work around this issue source code viewmodel var amount mutablelivedata adapter bindingadapter value fun setval edittext edittext newval double val currentvalue edittext text tostring try if currentvalue isnotempty if java lang double valueof currentvalue newval val decimalformat decimalformat val value string decimalformat format newval edittext append value catch exception exception timber I exception do nothing inversebindingadapter attribute value fun getval edittext edittext double val currentvalue edittext text tostre return currentvalue todouble xml android api version 3 6 1 material library version 1 1 0 device pixel api 29 thank you in advance |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.