Giter Club home page Giter Club logo

constraintlayoutissue's Introduction

Steps to reproduce the bug in the sample app:

  1. Click in the pink view.
  2. Green view appears centered inside the pink view.
  3. Click the green view.
  4. Pink view is expanded to fullscreen and green view is hidden.
  5. Click the pink view again.
  6. Green view appears in the last center position from step 2 instead of being centered in the new dimension.

Expected: Green view should appear again in the center of the screen.

Observations:

  • If ConstraintLayout has width=WRAP_CONTENT and height=WRAP_CONTENT the behavior seems to correct.
  • 2.0.0-beta1 turns the screen all white after step 1.
  • 2.0.0-alpha5 and 2.0.0-alpha4 turns the screen all white after step 3.
  • 2.0.0-alpha3 and 1.1.3 works correctly

Notice how a dependency change from 2.0.0-beta2 to 2.0.0-alpha3 or 1.1.3 makes the problem go away.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.