本月博客排行
-
第1名
duanfei -
第2名
benladeng5225 -
第3名
steven789654 - wddpwzzhao123
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
wy_19921005 - benladeng5225
- kaizi1992
- tanling8334
- vipbooks
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- wallimn
- e_e
- jh108020
- ganxueyun
- Xeden
- xyuma
- wangchen.ily
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xiangjie88
- xpenxpen
- 喧嚣求静
- lchb139128
- kristy_yy
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- xiaoxinye
- flashsing123
- lyndon.lin
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
- hudiemeng870329
- mft8899
- duanfei
- java_doom
最新文章列表
slidingMenu滑动冲突解决
主要在自定义ChildViewPager的事件分发事件中做处理
@Override
public boolean onInterceptTouchEvent(MotionEvent arg0) {
// TODO 当拦截触摸事件到达此位置的时候,返回true,
// 说明将onTouch拦截在此控件,进而执行此控件的onTouchEvent
...
viewFlow实现类似淘宝的自动播放
ImageAdapter.java
/*
* Copyright (C) 2011 Patrik �kerfeldt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ...
listview上滑下滑显示和隐藏
listview上滑下滑显示和隐藏
listView.setOnScrollListener(new OnScrollListener()
{
@Override
public void onScrollStateChanged(AbsListView view, int scrollState)
{
if (scrollState == SCRO ...
Android的基本控件实例
附件包含:
FrameLayout
RelativeLayout
RelativeAndLiner
TableLayout
选项卡TabWidget
多选框CheckBox
单选框RadioGroup
下拉框Spinner
AutoCompleteTextView
Date
TimePicker
进度条ProgressBar
投票RatingBar
ImageSwitcher
Gallery
网络视 ...
Android控件之ListView
ListView是Android中最常用的控件之一. ListView中一个重要的概念就是适配器(Adapter),它是控件与数据源之间的桥梁.
常见的数据源有数组/集合(Array/List),游标(Cursor).
1, 从数组中获取数据:
运行结果:
2, 从Curso ...
android开发积累2-实现自定义android控件
android开发中,为了显示效果,大部分控件可能需要重新开发,一般来讲大部分自定义控件可以通过继承自一个android自身控件,重写ondraw来实现。
下面就以开发一个自定义的颜色渐变button为例,说明如果开发自定义控件。
自定义button的CButton.java
package Test.wangfu.controls;
import android.content.Conte ...