09 2012 档案
摘要:1.错误:gen already exists but is not a source folder. Convert to a source folder or rename it.2.解决方法:右键工程-选择属性-选择Java Builder Path-打开source-点击Add Folder-检查gen and click o k and ok again-Fix project properties
阅读全文
摘要:package com.yek.android.gap.views;import android.content.Context;import android.util.AttributeSet;import android.widget.ListView;public class NoScrollListView extends ListView {public NoScrollListView(Context context, AttributeSet attrs) {super(context, attrs);}public NoScrollListView(Context contex
阅读全文
摘要:WindowManager.LayoutParams 是 WindowManager 接口的嵌套类;继承于 ViewGroup.LayoutParams 。 它的内容十分丰富。其实WindowManager.java的主要内容就是由这个类定义构成。下面来分析一下这个类:定义public static class WindowManager.LayoutParams extends ViewGroup.LayoutParams implements Parcelable继承关系java.lang.Object ↳android.view.ViewGroup.LayoutParams ↳and..
阅读全文
摘要:如果你对于Android的Thread+Handler方式感觉繁琐,不妨试试Activity提供的另外一种简单的方法runOnUiThread,runOnUiThread可以帮助你在线程中执行UI更新操作,我们只需要在线程中写上类似 android123.this.runOnUiThread(new Runnable() { @Override public void run() {// refresh ui 的操作代码 } }); 这里需要注意的是runOnUiThread是Activity中的方法,在线程中我们需要告诉系统是哪个activity调用,所以前面显示的指明了activi...
阅读全文