- 浏览: 389394 次
- 性别:
- 来自: 北京
-
最新评论
-
longxishui12:
这个一定要顶得高高的。
[Android UI界面] android中仿iphone实现listview的反弹效果 -
klower.jiang:
Good job, Thank you so much!
能够兼容ViewPager的ScrollView -
ZSRTFAT:
...
file size 的大小计算
文章列表
selector
- 博客分类:
- android开发问题2
1、准备三张图片,并做好9.png
2、在drawable中定义edittext_selector.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<!--选中时效果-->
<item android:state_focused="true" andr ...
面试知识点
- 博客分类:
- android开发问题2
android 面试:
http://www.doc88.com/p-932469091469.html
http://tech.it168.com/a2012/0201/1305/000001305470.shtml
http://www.cnblogs.com/mmll/archive/2011/05/03/2035041.html
http://blog.csdn.net/chengyingzhilian/article/details/7734565
http://www.eoeandroid.com/thread-73665-1-1.html ...
打开源码中CheckBox.java文件,我们可以看到如下内容:
public class CheckBox extends CompoundButton {
public CheckBox(Context context) {
this(context, null);
}
public CheckBox(Context context, AttributeSet attrs) {
this(context, attrs, com.android.internal.R.attr.checkboxStyle);
...
10-26 18:30:45.085: E/AndroidRuntime(7323):
java.lang.IllegalStateException:
The content of the adapter has changed but ListView did not receive a notification.
Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.
[in ListView(213129628 ...
加两个属性即可:
android:stackFromBottom="true"
android:transcriptMode="alwaysScroll"
这样,就像系统的短信会话界面,一进去,listview的滚动条就在底部,就显示最后一个项目
Java 部分
1
list.setItemsCanFocus(false);
XML 部分
android:focusable=”false”
android:focusableInTouchMode=”false”
说明:如果一个 ListView 的条目子视图中包含了 CheckBox、ImagaButton 等可以接收触控监听的控件的话,它们可能会遮断 ListView 本身对条目点击的监听,使得其 setOnItemClickListener() 方法失效。解决方法为,如果是在代码中动态生成的空间,可以用 setItemsCanFocus() 方法来禁用那 ...
多任务下载,断点下载
- 博客分类:
- android开发问题2
转载
http://blog.csdn.net/gulaer/article/details/8513825
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String valueString = "dfjkdjfkdjfjieurieuriewuorewioreir";
try {
writeDateFile("name", valueString.getBytes());
} catch (Exception ...
转载:
http://huangjijie123456.iteye.com/blog/1545310 很好,很详细
http://mgssnake.iteye.com/blog/655866 aidl
http://blog.csdn.net/liushaogeng/article/details/6592916 Android来电拦截及拦截后的提示音
http://blog.csdn.net/xys289187120/article/details/7395834 第三方数据库与读取文件中数据库详解
界面底部控件被软键盘顶起
- 博客分类:
- android开发问题2
界面底部控件被软键盘顶起
在 AndroidManifest.xml对应activity标签中加上 android:windowSoftInputMode="adjustPan"
转载:
http://blog.csdn.net/song_shi_chao/article/details/7949580
前几天在做facebook链接的时候,总是第一次成功,第二次失败,后来分析,是本地的缓存没有清空,看了facebook sdk的源码才发现,果然,要做一步清楚cookie的操作:
Android的CookieManager只提供了removeAllCookies方法,用来删除所有的cookie,有什么办法只删除和特定url关联的cookie呢?本来打算使用setCookie(url, value)将指定url关联的cookie设为空串,但试了 ...
转载:
http://blog.csdn.net/onerain88/article/details/6562464
可以把list强转成Serializable类型,然后通过putExtras(key, (Serializable)list)方法传递过去,接受的时候用(List<YourObject>) getIntent().getSerializable(key)就可以接受到List<YourObject>数据了
但是最重要的一点是:你的YourObject类必须要实现Serializable接口,切记切记,不然会报错,运行时异常(与parc ...
转载:
http://blog.csdn.net/l241002209/article/details/7009057
public class BootStartUtils {
private static final String BOOT_START_PERMISSION = "android.permission.RECEIVE_BOOT_COMPLETED";
private Context mContext;
public BootStartUtils(Context context ...
drableleft
- 博客分类:
- android开发问题
Drawable close = getResources().getDrawable(R.drawable.protect_icon);
close.setBounds(0, 0, close.getIntrinsicWidth(), close.getIntrinsicHeight());
proTextView.setCompoundDrawables(close, null, null, null);