Code Monkey home page Code Monkey logo

Comments (7)

edanel avatar edanel commented on July 24, 2024

RecyclerView 的item 布局一样显不出来。

用support的也一样。

from android-percent-support-extend.

Ivolian avatar Ivolian commented on July 24, 2024

@edanel 在 item 最外层套个 percent 布局就行了。

from android-percent-support-extend.

carozhu avatar carozhu commented on July 24, 2024

@Ivolian 试了下,也不行。

from android-percent-support-extend.

hongyangAndroid avatar hongyangAndroid commented on July 24, 2024

恩,item的根布局如果设置百分比是没用的,因为它的父控件是ListView,而非支持百分比的那几个控件。support包下的也一样不支持的~

from android-percent-support-extend.

carozhu avatar carozhu commented on July 24, 2024

@hongyangAndroid 哦,意思是ListView recyclerView这些本身就不支持百分比布局。重写这些不支持的控制的话应该就可以了吧?

from android-percent-support-extend.

carozhu avatar carozhu commented on July 24, 2024

测试使用LinearListView可以解决,但性能问题有待提升。后面可以尝试下自定义recyclerVIew来适配这一问题。

from android-percent-support-extend.

yizems avatar yizems commented on July 24, 2024

@carozhu 其实我一直很奇怪为什么大家不用另外一个库呢,就是AutoLayout,是因为有什么弊端么?

from android-percent-support-extend.

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.