Code Monkey home page Code Monkey logo

autolayout's Issues

cell自适应高度

你好,如果是更加复杂的cell怎么自适应高度呢?比如有需要隐藏和显示的控件,是不是也能通过autoLayout自动计算呢

Cell横向多个控件AutoLayout如何设置

你好,请问如下图Cell首行的应该怎么使用AutoLayout,
第一个view是个Label,长度根据内容变化
第二个view是ImageView+ Label,ImageView的长度也是根据里面的内容变化长度
两个view相距20px,
如果第一个view和第二view相加长度超过屏幕宽度,需要保持第二个view,然后第一个用xxx.....的形式展现。

我想了很久,好像只有手写代码才能实现这个需要。请问你有什么思路可以借鉴吗?谢谢:)

image

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.