会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
弗不是佛
每天累积一点点
上一页
1
2
3
4
5
下一页
2014年11月5日
android ComponentName
摘要: 从一个activity跳转到另一个activity有多种方法ComponentName //此为一个按钮相应的代码摘录 ComponentName comp = new ComponentName(ComponentAttr.this, Se...
阅读全文
posted @ 2014-11-05 15:20 弗不是佛
阅读(1205)
评论(0)
推荐(0)
android 异步加载
摘要: public class AsyncTaskTest extends Activity{ private TextView show; @Override public void onCreate(Bundle savedInstanceState) { sup...
阅读全文
posted @ 2014-11-05 11:48 弗不是佛
阅读(135)
评论(0)
推荐(0)
android Looper.prepare()(转载)
摘要: Looper用于封装了android线程中的消息循环,默认情况下一个线程是不存在消息循环(message loop)的,需要调用Looper.prepare()来给线程创建一个消息循环,调用Looper.loop()来使消息循环起作用,从消息队列里取 消息,处理消息。注:写在Looper.loop(...
阅读全文
posted @ 2014-11-05 11:34 弗不是佛
阅读(102)
评论(0)
推荐(0)
android Timer(定时器) Handler
摘要: final Handler myHandler = new Handler() { @Override public void handleMessage(Message msg) { //...
阅读全文
posted @ 2014-11-05 11:02 弗不是佛
阅读(178)
评论(0)
推荐(0)
2014年11月4日
android popupMenu
摘要: 菜单项配置文件menu.xml activitypublic class PopupMenuTest exte...
阅读全文
posted @ 2014-11-04 17:47 弗不是佛
阅读(241)
评论(0)
推荐(0)
android menu
摘要: 一:activity 中添加菜单可以复写public boolean onCreateOptionsMenu(Menu menu);public boolean onCreateOptionsMenu(Menu menu) { // -------------向menu中添加子菜...
阅读全文
posted @ 2014-11-04 17:23 弗不是佛
阅读(141)
评论(0)
推荐(0)
android 设置时间和日期
摘要: 当一个输入框需要填写时间或者日期是可以调用日期设置//此为日期按钮的监听器,点击出现如下图所示dateBn.setOnClickListener(new OnClickListener() { @Override public void on...
阅读全文
posted @ 2014-11-04 16:30 弗不是佛
阅读(1563)
评论(0)
推荐(0)
android 对话框
摘要: main.xml //主布局文件 1 2 7 8 13 14 20 21 27 28 34 35 41 42 48 49 55 login.xml 登录对话框的布局文件 1 2 8 9 15 16 23 24 25 ...
阅读全文
posted @ 2014-11-04 16:06 弗不是佛
阅读(171)
评论(0)
推荐(0)
android notification 通知
摘要: 1 public class NotificationTest extends Activity 2 { 3 static final int NOTIFICATION_ID = 0x123; 4 NotificationManager nm; 5 6 @Override...
阅读全文
posted @ 2014-11-04 14:54 弗不是佛
阅读(182)
评论(0)
推荐(0)
android 动画(转载)
摘要: 转载地址:http://www.cnblogs.com/qiengo/archive/2012/05/03/2480386.htmlAndroid AnimationContents:AnimationsTween AnimationsAnimationSetInterpolatorFrame-By...
阅读全文
posted @ 2014-11-04 11:57 弗不是佛
阅读(173)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告