V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
alex00
V2EX  ›  Android

像 1 号店首页的复杂布局,通常是如何做的?

  •  
  •   alex00 · Dec 21, 2015 · 12413 views
    This topic created in 3781 days ago, the information mentioned may be changed or developed.
    我目前用 listview 里面再塞 listview
    8 replies    2015-12-24 21:52:27 +08:00
    JackCooper
        1
    JackCooper  
       Dec 21, 2015
    楼主至少给个图阿..难道让我们去下个一号店 APP 然后给你分析么..
    F1ReKing
        2
    F1ReKing  
       Dec 21, 2015
    上图啊 大家才能一起讨论分析
    alex00
        3
    alex00  
    OP
       Dec 21, 2015
    研究上图中~~
    alex00
        5
    alex00  
    OP
       Dec 21, 2015
    alex00
        6
    alex00  
    OP
       Dec 21, 2015
    <script type="text/javascript" src="http://img.ly/images/9319327/embed"></script>
    Vindroid
        7
    Vindroid  
       Dec 22, 2015
    listview 嵌套 listview (或者 scorllview 嵌套 listview )对性能、帧数有严重的影响,不推荐。
    他的每种类型的 layout 个数应该是固定的,完全不用 listview 吧? scorllview 就好了,轧马路那个如果可以无限加载,用 code 动态 addView 就可以了吧?
    或者用 listview 搞定的:
    item0 :搜索,
    item1 : banner ( viewpager ),
    item2 : 8 个入口 icon ,
    item3 :热点,
    item4 、 5 、 6 : banner 。
    item7 、 8 、 9 ……:轧马路
    alex00
        8
    alex00  
    OP
       Dec 24, 2015
    感谢你,『对性能、帧数有严重的影响』这确实没考虑到
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3743 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 04:29 · PVG 12:29 · LAX 21:29 · JFK 00:29
    ♥ Do have faith in what you're doing.