Giter Site home page Giter Site logo

建议 about androidfine HOT 14 OPEN

tianshaojie avatar tianshaojie commented on August 27, 2024
建议

from androidfine.

Comments (14)

tianshaojie avatar tianshaojie commented on August 27, 2024

我试试,应该可以省去一些代码,感谢建议~

from androidfine.

xingag avatar xingag commented on August 27, 2024

还有,结合ViewPager,最近很流行用TabLayout,可以试试用这个来替换PagerSlidingTabStrip

from androidfine.

tianshaojie avatar tianshaojie commented on August 27, 2024

回头试试TabLayout。还有什么好东西?都建议一下

from androidfine.

xingag avatar xingag commented on August 27, 2024

还在看你的代码,没看完,看完了再和你说

from androidfine.

tianshaojie avatar tianshaojie commented on August 27, 2024

欢迎。近期可能会把PullToRefresh换成Ultra-Pull-To-Refresh

from androidfine.

xingag avatar xingag commented on August 27, 2024

代码大概都看完了,说说几个想法
1.代码总体来说,实现比较基础,好多都是第三方源码,不能算是一个框架,只能算一个学习例子
2.总体代码结构有点冗余,没有很好的利用各种设计模式
3.网络请求利用handle消息机制队列来发送请求结果,可能会用内存泄露,我觉得这里有点多余,使用抽象方法,加一个接口,是不是更好呢

一点小建议,可能有些不对的地方,望采纳

from androidfine.

tianshaojie avatar tianshaojie commented on August 27, 2024
  1. 主要是整合了一些常用组件,个别包装了一层,本身并没有特别的深度和难度,只是提供便利
  2. 你说的设计模式主要包含什么?在android里很少用到设计模式
  3. 第三点没看太明白,特别是内存泄漏,可否举例说明,这是个大问题!

from androidfine.

xingag avatar xingag commented on August 27, 2024

2.主要用的比较多的是观察者,Build,工厂,单例,外观这些
3.Handle结合线程很容易内存泄露,这个处理要小心一点;仅仅是觉得这里使用Handle有点不合理,你可以用LC测试一下

from androidfine.

tianshaojie avatar tianshaojie commented on August 27, 2024

TabLayout,不好用,效果也不好

from androidfine.

xingag avatar xingag commented on August 27, 2024

结合材料设计语言,还是不错的哦

from androidfine.

tianshaojie avatar tianshaojie commented on August 27, 2024

MD是方向,要用的,需要结合设计效果会很好

from androidfine.

teddyisme avatar teddyisme commented on August 27, 2024

下拉刷新 用recycleView呢

from androidfine.

tianshaojie avatar tianshaojie commented on August 27, 2024

Ultra-Pull-To-Refresh支持各种布局下拉刷新

from androidfine.

ronanhardiman avatar ronanhardiman commented on August 27, 2024

minSdkVersion 14
org.apache.http.HttpException 等相关的代码应该可以换掉吧.

from androidfine.

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.