`
seya
  • 浏览: 356210 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
大家看到新浪微博中的列表往下拉的时候, 头部出现正在刷新,然后获取到数据了以后列表会刷新的效果了吧,是不是都觉得很棒啊。 笔者今天参考进行实现。 当然也借鉴了前人的劳动成果。 下面对具体实现进行剖析。 首先要明确一点的是,ListView提供了HeaderView 和FooterView用于增加顶部和底部视图。 头部的刷新调和底部的更多条目都是使用这两个来实现的。 下面我们来看看怎么实现的: 1.  对ListView进行集成,主要是监听滑动事件,触发底端和顶端事件: package com.drawthink.nxjobhunting.ui.components; import androi ...
Eclipse官方下载地址: http://www.eclipse.org/downloads/ Android开发用ADT插件安装地址: http://dl-ssl.google.com/android/eclipse/ 如果上面的地址安装失败,可以尝试使用下边的地址: https://dl-ssl.google.com/android/eclipse/ ADT插件10.0.1版本下载地址: http://dl.google.com/android/ADT-10.0.1.zip ADT插件11.0.0版本下载地址: http://dl.google.com/android/ADT-11.0.0 ...
今天使用GridView, 发现点中某一Item时选中部分的背景都变成高亮, 范围超过图标大小, 显示效果很不好。 想到要改成选中时高亮部分只有图标大小那部分, 这就需要设置item的间距。 一开始使用了setColumnWidth,发现无法达到效果, 设置StretchMode也不行。 上网找了一遍也没什么有效的结论。 后来自己想了想, setVerticalSpacing和setHorizontalSpacing是有效果的, 但是距离屏幕边还是0. 只要再把gridview本身设置一个padding就可以了。 所做修改如下: <GridView         android:id=& ...
今天主要探究Gallery和Animation的使用。 制作一个美女图片集锦。 1. 首先需要做一个列表, 用来显示类别: public class CategoryActivity extends Activity implements OnItemClickListener{ private ListView mList; LayoutInflater mInflater; private Integer[] title = { R.string.jingxuan, R.string.mingxing, R.string.xinggan, ...

dTree使用笔记

    博客分类:
  • J2EE
项目中需要使用树状结构来展示数据, 网上找了一圈说是dtree比较好, 遂下载用之。 我需要使用Ajax获取后台数据然后在前台弹出框中显示, 发现在页面上创建的dtree能够展开关闭, 但是在显示的div中无法点击展开, 很是蛋疼。 经过反复调试, 发现是由于我在处理Ajax返回的时候去创建dTree对象的, 便无法响应。 需要在一开始<script>中定义这个tree, var myTree = new dTree('tree'); 然后在Ajax返回处理时使用myTree才管用。
at first i tried choosing all selections under the first tabs of software source, but sun-java6-jdk still cannot be found, then i tried the following commands in terminal, it WORKS!!!. sudo apt-get install python-software-properties sudo add-apt-repository ppa:sun-java-community-team/sun-java6 sud ...
fafassssssssssssssssssssssssssssfdsfds
本贴原由本人发在机锋,相信这里会有更多的人有需要。当然,ROM中的其他也可用同样方法提取。 1、下载ROM,用winrar解压,得到数个文件,然后再用winrar解压pda.tar文件,得到factoryfs.rfs 2、安装winimage,用winimage打开factoryfs.rfs(打开文件类型中选所有文件),进入app,将你需要的文件拖到桌面,完成! 就是这么简单!! winimage 注册码:Name:crsky Code:1353A9BA
Android执行shell命令 一、方法    1. /**    2. * 执行一个shell命令,并返回字符串值    3. *    4. * @param cmd    5. * 命令名称&参数组成的数组(例如:{"/system/bin/cat", "/proc/version"})    6. * @param workdirectory    7. * 命令执行路径(例如:"system/bin/")    8. * @return 执行结果组成的字符串    9. * @throws IOEx ...
# # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #      http://www.apache.org/licenses/LICENSE-2.0 # # Unl ...
Install APK with adb: $ platform-tools/adb install out/target/product/generic/system/app/Bundled.apk 233 KB/s (12588 bytes in 0.052s) pkg: /data/local/tmp/Bundled.apk Failure [INSTALL_FAILED_OLDER_SDK] Error message in logcat: D/PackageParser(   60): Scanning package: /data/app/vmdl64930.tmp W/Pa ...
1、fatal error: GL/glx.h: No such file or directory development/tools/emulator/opengl/host/libs/Translator/GLcommon/GLDispatch.cpp:22: fatal error: GL/glx.h: No such file or directory compilation terminated. make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libGLcommon_intermediates/GLDispatch.o] Er ...
下载完android 4.0代码,模拟器里面的gallery不是3D的,想编译一个看看效果,用mmm编译Gallery2,可是out目录下面都是apk和odex,这是为了加快运行速度,把dex分出来做的预处理,可是我想要个完整的apk来安装,网上有结合的办法,但是总会有个编译的选项来编译出完整的apk吧,要不然appers就没法混了。 搜索了一下源代码,发现了一个选项,/build/core/package.mk  里面的LOCAL_DEX_PREOPT,4.0好像默认把这个选项设置成了true,于是改一下mk,设成false,完整的apk就有了。
UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.ExceptionWithContext: Index: 2, Size: 3 at com.android.dx.util.ExceptionWithContext.withContext(ExceptionWithContext.java:46) at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:344) target Dex: Bluetooth Copying: out/target/com ...

Linux下安装JDK6

    博客分类:
  • Java
JDK1.6在LINUX下的安装是如何进行的呢,让我们开始我们的演示:   Ubuntu Linux下jdk的安装与配置   从sun公司网站www.sun.com下载linux版本的jdk,我下载的版本是JDK 6 Update 7,   地址http://java.sun.com/javase/downloads/index.jsp   jdk-6u7-linux-i586.bin,打开终端,用cd命令进入jdk所在目录,执行复制命令   sudo cp jdk-6u7-linux-i586.bin /usr   即将jdk复制到/usr目录下,然后进入/usr目录cd /usr   执行权 ...
Global site tag (gtag.js) - Google Analytics