MotionLayout: View visibility resets when transition starts

This issue has been created since 2019-01-23.

View in xml is visible,
I set different visibility programmatically,
When transition starts view visibility is reset to that is declared in xml
transition has OnSwipe event
I'm using version - 2.0.0-alpha3

thagikura wrote this answer on 2019-01-30

Thanks for reporting this.

The issue was filed for MotionLayout https://issuetracker.google.com/issues/122090772
and is planed to be fixed in the next release.

Let me close this for now since this is not an issue with the examples.

AniruddhaKulk wrote this answer on 2019-06-05

Greetings,

I still face this issue in 2.0.0-beta1. When will this be fixed?

m4fi3ux wrote this answer on 2019-06-05

They added in ConstraintLayout 2.0.0 beta 1 the ability to ignore the visibility of a view. This allows the applications to control the visibility and not have MotionLayout set it.

motion:visibilityMode="ignore"

AniruddhaKulk wrote this answer on 2019-06-05

They added in ConstraintLayout 2.0.0 beta 1 the ability to ignore the visibility of a view. This allows the applications to control the visibility and not have MotionLayout set it.

motion:visibilityMode="ignore"

Yea, found it in the documentation and forgot to delete my comment.
Thank you

More Details About Repo
Owner Name googlearchive
Repo Name android-ConstraintLayoutExamples
Full Name googlearchive/android-ConstraintLayoutExamples
Language Java
Created Date 2017-03-02
Updated Date 2022-08-17
Star Count 2586
Watcher Count 120
Fork Count 452
Issue Count 0

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Different ipv6 notation for haraka and nginx? 2 2021-05-30 2022-07-14
Is there a way to have in output only the valid rows? 6 2021-12-25 2022-07-15
baseUrl parameter is not fully working 5 2022-02-08 2022-08-27
[TabUnstyled] React does not recognize the `ownerState` prop 4 2022-05-24 2022-08-04
`makeStyles` with a function css rule entry doesn't work on react 18 using react-dom/client createRoot 5 2022-05-23 2022-05-25
The fieldset text sticked to the border edge with customized textField 7 2022-05-24 2022-08-17
Unable to minify Tagged templates 3 2022-05-24 2022-07-25
2.1 Dev - Pi zero not initing 1 2021-09-14 2022-07-24
Question: Can this library estimate the parameters of a Cauer or Foster model? 2 2022-09-04 2022-09-15
Change API node 0 2021-10-18 2021-12-16
AE-33729 - Filtre kapasitörleri. 0 2021-09-22 2022-07-15
Network graph does not seem to have edge weight option 2 2022-04-03 2022-08-31
Default bor nodes are hardcoded incorrectly 0 2022-05-31 2022-05-26
Support output escaped versions of paths 0 2021-04-06 2022-08-29
code query 13 2021-10-10 2022-01-05
notion-enhancer Outliner not working 5 2021-09-29 2022-09-11
[email protected]_2022-05-15: hash check failed 1 2022-05-17 2022-07-21
moode (audio) Adapter 0 2021-10-05 2022-09-10
Please add releases 2 2021-04-06 2022-01-12
Can I remove the `data-XXX` attributes? 2 2021-04-09 2022-09-23
Close changeset before exit 1 2021-02-16 2022-08-27
Generated assembly version information shouldn't contain reference to RealDimensions Software 3 2022-01-02 2022-08-19
XRT Error: No Device Found 2 2022-06-20 2022-09-22
How to handle untrusted output with real-time collaboration 5 2022-03-02 2022-08-26
[F-Req] Please Don't use [Caciocavallo] use Wined ((thats the best) >UI< ,And ,>DPI<) 4 2022-01-27 2022-09-05
directus tries to update computed field when using translation interface 2 2021-10-27 2022-09-22
PravegaTablesScope createScope failure handling. 0 2021-11-17 2022-08-16
Implement background color on Featured Product Block 0 2022-04-27 2022-09-07
Create benchmarks for API calls 0 2020-12-22 2022-09-14
Assistant/daml-helper should always line-buffer 0 2022-07-14 2022-08-28
keras-io build failed on windows 10 25 2022-03-12 2022-09-26
[BUG] "Invalid QR code" "Make sure you're scanning a QR code displayed WhatsApp Web, ..." 15 2021-11-29 2022-08-27
Is this library maintained? 1 2022-02-01 2022-09-25
apijson.org 打不开/访问不了 0 2021-07-28 2022-09-06
CUDA out of memory 4 2021-11-09 2022-01-13
请问有没有windows系统的部署方法 1 2021-11-04 2022-01-13
How to open a database encrypted with SQLCipher? 1 2020-09-30 2022-09-25
您好,想找你做二开,怎么联系您呢 1 2021-09-01 2022-01-23
OpenAPITool Test Framework 1 2022-05-25 2022-09-10
[OS request] Apertis 17 2021-07-16 2022-09-21
imagenet22k trained model weights 3 2022-03-21 2022-09-21
Create .mod for a release automatically 5 2021-05-27 2022-07-31
UI improvements to application flow 10 2021-10-13 2022-09-25
[BUG]: new plot for pipeline needed in all modules 0 2022-05-06 2022-09-25
Style cleanups 3 2020-11-27 2022-01-10
Hawk V2.0.1, illegal type variable reference 4 2019-05-16 2022-09-28
keep-alive组件的include中如果使用的是一个ref([]),并且延迟添加,会不起效,而且组件不能再次激活,绑定也会失效 7 2021-11-23 2022-09-06
Sprite.Load() looks for asset in wrong direction 4 2022-03-06 2022-03-31
[Global settings] Cards 6 2021-11-19 2022-07-15
Add clear image caching APIs 1 2022-02-17 2022-09-14