Git Product home page Git Product logo

Comments (5)

camaelon avatar camaelon commented on July 16, 2024 1

The issue might be caused by a bug in the ratio optimization. If instead of app:layout_constraintDimensionRatio="h,1:1.3" you simply set it to app:layout_constraintDimensionRatio="1.3:1" everything works. In this case, the "h,1:1.3" is also not super meaningful as the other dimension is a wrap_content, so only one side will use the ratio.

from constraintlayout.

wilburx9 avatar wilburx9 commented on July 16, 2024

Yeah, same here. Some views disappeared after the update from 2.0.1 to 2.0.4.

EDIT:

Happens on 2.0.2 and 2.0.3 too.

from constraintlayout.

PuppetZ avatar PuppetZ commented on July 16, 2024

yes, so do i

from constraintlayout.

camaelon avatar camaelon commented on July 16, 2024

This seems to be an issue with the optimizer, let me look into it.
I can get your view to work by setting optimizationLevel = 0 in KeyboardView.kt.

Note: a likely more optimized way would be to use match_parent instead of 0dp in item_keyboard.xml for the width.

from constraintlayout.

camaelon avatar camaelon commented on July 16, 2024

Fixed in tip of tree.

from constraintlayout.

Related Issues (20)

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.