Questions tagged [android-motionlayout]

MotionLayout is intended to move, resize, and animate UI elements with which users interact, such as buttons and title bars. Motion in your app should not be simply a gratuitous special effect in your application. It should be used to help users understand what your application is doing. For more information on designing your app with motion, see the Material Design section on

https://material.io/design/motion

Getting started with MotionLayout

Follow the steps described in the following link.

https://developer.android.com/training/constraint-layout/motion-layout#getting_started

430 questions
0
votes
1 answer

How to set views in BottomSheetDialog for different state STATE_EXPANDED and STATE_COLLAPSED?

I have single layout with title, 3 items and button. I need to set just title, 1 item and button if state is STATE_COLLAPSED and all views fo STATE_EXPANDED. How I must to do this?
0
votes
1 answer

Android MotionLayout: MotionScene not triggered

I built a very simple example using MotionLayout, but for some reason the onClick does not trigger the animation. What am I missing?? I have the following layout:
0
votes
1 answer

SwipeRefreshLayout in MotionLayout with Recyclerview ignores click events

I have the following structure: MotionLayout --> SwipeRefreshLayout --> RecyclerView Everything works correctly except that items in the RecyclerView are not clickable. They are only clickable when the SwipeRefreshLayout is refreshing. How can I…
sunilson
  • 1,449
  • 15
  • 31
0
votes
3 answers

Android MotionLayout Pause

Is it possible to pause Motion layout transition and then resume this transition?(for example I show dialog fragment and I need to pause this motion scene and after dismissing dialog I want to resume transition) I launch transition by code like as…
Alexander
  • 411
  • 3
  • 4
0
votes
1 answer

MotionLayout animate content recyclerview or viewpager

I have to implement a transition of either a viewpager o a recyclerview, not sure yet which could fit better. The idea is to expand de ViewPager or Recycler and show more information when this is expanded and less information when is collapsed.…
Jose M Lechon
  • 5,766
  • 6
  • 44
  • 60
0
votes
2 answers

Use MotionLayout and ConstraintLayout dependencies with different versions

I've been using ConstraintLayout of version 1.1.2 for a while now. It was working perfectly. Then new MotionLayout came up and I thought why not to try it out. And everything seemed fine. However I made a mistake of using it in production. Only…
0
votes
0 answers

Making Espresso working with MotionLayout

I have recently tried MotionLayout but found all my Espresso failed because of converting my ConstraintLayout to MotionLayout. Here is a sample to repro: My Espresso Test: @RunWith(AndroidJUnit4::class) @LargeTest class SplashActivityTest { …
0
votes
1 answer

Motion Layout issue for Collapsing Toolbar Transition

I'm trying to reproduce coordinator layout collapsing toolbar animation with motion layout. The transition work very well when I scroll from recyclerview (the touchAnchorId is set to recycler) but when I scroll from the image the animation is not…
0
votes
2 answers

Horizontally Align Two TextViews in MotionLayout

I am trying to build a motion scene where two textviews are transitioned in a collapsing toolbar style from an expanded state to a collapsed state on dragging up. The two textviews are positioned with some margins to the left and right side of the…
0
votes
1 answer

MotionLayout with 3 Views and Barrier

I want create some view with 3 cards: Top card with detail informaton of some object left and right cards contains only main informations. If i click on left or right card, then it comes on place of top card (the cards switch their places) But if…
anatoli
  • 1,663
  • 1
  • 17
  • 43
0
votes
1 answer

How to move element to the top and stick it here in motion layout?

During scroll i want to move button from the bottom of AppBarLayout to top of the screen. however if i set constraint motion:layout_constraintTop_toTopOf="parent" then button moves away from screen due to the fact that AppBarLayout moves too. How…
Yarh
  • 4,459
  • 5
  • 45
  • 95
0
votes
1 answer

MotionLayout: views Included in a layout are invisible when relaunch onCreate()

Included views are not displayed after first launching a screen. Video of reproducing: https://drive.google.com/open?id=1EzNe5kXHZ_91kycYsZ8RlcEDZwX3EEyv Main…
Ponomarenko Oleh
  • 732
  • 2
  • 12
  • 25
0
votes
0 answers

MotionLayout does not pass nested scroll up to parent

I am using 'com.android.support.constraint:constraint-layout:2.0.0-alpha5'. I have a fragment using MotionLayout inside an activity that also carries a BottomNavigationView inside a CoordinatorLayout with a custom behaviour allowing to show and hide…
mtotschnig
  • 1,238
  • 10
  • 30
0
votes
2 answers

Duplicate Id in Constraint Sets

I am trying to implement a simple animation through motionLayout, the aim is to click to move an image, but the constraint sets arent allowing duplicate ids
0
votes
1 answer

Motion layout add constraint attribute to transition

I have a simple motion layout that changes from one layout to another.
Pemba Tamang
  • 458
  • 3
  • 16
1 2 3
28
29