ucbrowser's People
Forkers
axdx1314 kevinfwu doyer3112 mzzdxt chendeqiao stbhan liaochengbiao 1023863295 iforked yumodevtest mrleeys longzekai guoxiaojun001 mzk10 why168 rajkumarmech hongsyang shangzhipei androidbeyond iq-scmucbrowser's Issues
请教一下
您好,最近项目需要这个分页的效果,我的想法是自定义一个layoutmanager,然后使用fragment来填充主页。遇到两个问题:
1.fragment replace无法正常保存view的状态
2.recyclerview的item布局我是直接充满屏幕的,对item放大缩小实现tab和main的切换效果。但是由于滑动删除使用的是itemtouchhelper,缩放后item还是会占据原有的空间,所以滑动删除无法正确执行。
以上两个问题请教一下
在首页界面(非新闻页面),新闻列表无法点击
提几个待优化的地方 嘻嘻~
效果写的很不错,阅读了源码,结构很清晰,写的很不错。但是还有几个地方是我看源码的时候想到的问题。
1,首先是stackView这个没有实现recyclerview的复用效果。如果能实现复用就完美了。(具体如果判断什么时机去回收和复用view这个我还没有想过,不知道大神有没有考虑过)
2. mUCRootView.setFinalDistance(
ViewUtil.getScreenSize(MainActivity.this).x,
mUCHeadLayout.getMeasuredHeight())
这个高度设置的有问题,我觉得要用mUCHeadLayout.getMeasureHeight()-searchbar的高度-tabBar的高度可能会更准确一点。
3.UCHeadLayout 复写的onScroll方法应该调用一下super.onScroll() 这样MainActivity的里面对UCHeadLayout的设置才会有用。
暂时发现这么多,效果实现的真的很好。希望大神继续写下去~
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.