上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页
摘要: 阅读全文
posted @ 2014-01-16 10:41 天之涯0204 阅读(114) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { TabHost tabHost; @Override ... 阅读全文
posted @ 2014-01-16 10:39 天之涯0204 阅读(242) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private ListView listView; private List data = new ArrayList(); ArrayAdapter adapter; View footer; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.... 阅读全文
posted @ 2014-01-16 10:24 天之涯0204 阅读(307) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { ListView listView; File cache; //访问其他线程在当前线程中存放的数据 Handler handler = new Handler(){ public void handleMessage(Message msg) { listView.setAdapter(new ContactAdapter(MainActivity.this, (List)msg.obj, R.lay... 阅读全文
posted @ 2014-01-15 17:07 天之涯0204 阅读(386) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { //声明PopupWindow对象 PopupWindow popupWindow; View parent; private int[] images = {R.drawable.i1,R.drawable.i2,R.drawable.i3,R.drawable.i4, R.drawable.i5,R.drawable.i6,R.drawable.i7,R.drawable.i8}; private String[] names = {"搜索", "文... 阅读全文
posted @ 2014-01-15 14:53 天之涯0204 阅读(516) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //设置窗口特性为自定义标题 requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setCon... 阅读全文
posted @ 2014-01-15 09:48 天之涯0204 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-01-14 16:20 天之涯0204 阅读(144) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private ImageView imageView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); imageView = (ImageView) this.findViewById(R.id.imageView)... 阅读全文
posted @ 2014-01-14 13:54 天之涯0204 阅读(248) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private ImageView imageView; //传感器管理器 private SensorManager manager; //传感器监听器 private SensorListener listener = new SensorListener(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState... 阅读全文
posted @ 2014-01-13 21:57 天之涯0204 阅读(224) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private ViewFlipper viewFlipper; private float startX; private Animation in_lefttoright; private Animation out_lefttoright; private Animation in_righttoleft; private Animation out_righttoleft; @Override public void onCreate(Bun... 阅读全文
posted @ 2014-01-13 20:46 天之涯0204 阅读(363) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页