Code Monkey home page Code Monkey logo

jiandan's Issues

更新material-dialogs到0.7.3.1到最新才编译好

凯子哥,我是重新下载调试你的煎蛋客户端,一开始就显示无法加载material-dialogs为依赖,我想你是以前有用的,三天前这个material-dialogs更新了。我不清楚我的0.7.2.0为什么down不下来。或许其他人没问题。

列表加载动画

"列表加载动画(虽然试过好多次,但是都不能实现首次加载,CardView进入时的动画效果,如果你能知道我如何实现,我将非常感激)"

hi, 不了解你说的是不是这个: LayoutAnimation。

具体的例子,可以查看%android_sdk%\samples\android-15\ApiDemos\src\com\example\android\apis\animation里的例子, 这个例子里,ListView的每个子项加载进来都是有动画的

数据加载失败

我不知道你代码怎么回事,显示数据加载失败,你服务器炸了?

评论列表优化

在学习您的源码的时候,看到您的博客里说的,评论布局里的RecycleView用了setIsRecyclable(false),不然复用会导致布局混乱。自己分析了一下,对代码进行了一点修改,解决了这个问题。看楼主的博客,受益匪浅,赞一个
[code=java]
if (commentator.getFloorNum() > 1) { //CommentListActivity的228行
//添加这句,当有楼层的子View复用没有楼层的子View时也会正常显示
holder.floors_parent.setVisibility(View.VISIBLE);
.....
} else {
holder.floors_parent.setVisibility(View.GONE);
}
//在FloorView的init方法里添加removeAllViews();方法清空需复用的楼层里的评论
public void init() {
if (null == datas.iterator())
return;
removeAllViews();
...
[/code]

第一次进入且无网络时闪退

当第一次安装,无网络连接时,闪退,空指针异常

图片怎么显示不出来。。贴代码
java.lang.NullPointerException
at com.socks.jiandan.ui.fragment.FreshNewsFragment$FreshNewsAdapter.onBindViewHolder(FreshNewsFragment.java:222)
at com.socks.jiandan.ui.fragment.FreshNewsFragment$FreshNewsAdapter.onBindViewHolder(FreshNewsFragment.java:173)

How to solves this problem?

F:\gh_project\JianDan-master\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(34) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(34) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
F:\gh_project\JianDan-master\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

图片缩放

图片貌似无法缩放,但看到确实使用了PhotoView控件,不解

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.