上一页 1 2 3 4 5 6 7 ··· 23 下一页
摘要: 由于ViewFlipper的一个子view是这个ImageView,ViewFilpper在切换时,高度总是为子View中高度最大的值作为其高度值。后经搜索,发现需要设置android:measureAllChildren="false"即可。 阅读全文
posted @ 2013-07-01 14:44 张兰云 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 1、屏幕切换指的是在同一个Activity内屏幕见的切换,最长见的情况就是在一个FrameLayout内有多个页面,比如一个系统设置页面;一个个性化设置页面。2、介绍ViewFilpper类ViewFlipperextendsViewAnimatorjava.lang.Object↳android.view.View↳android.view.ViewGroup↳android.widget.FrameLayout↳android.widget.ViewAnimator↳android.widget.ViewFlipperClass OverviewSimpleViewAnimatorthat 阅读全文
posted @ 2013-06-27 16:08 张兰云 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 锁屏状态下点亮屏幕,并弹出闹钟提示信息,可以在锁屏界面上取消闹钟;使用广播接收闹钟定时:下面是例子里的核心代码如下android设置定时闹钟(包括提醒一次和循环提醒):Intentintent=newIntent(MainActivity.this,MyAlarmBroadCast.class);/***context指定实例*requestcode可以作为闹钟的唯一性标识*intentTheIntenttobebroadcast*flagsMaybeFLAG_ONE_SHOT,FLAG_NO_CREATE,FLAG_CANCEL_CURRENT,FLAG_UPDATE_CURRENT,*/P 阅读全文
posted @ 2013-06-26 10:21 张兰云 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 取消闹钟:Intent intent = new Intent(context, TestReceiver.class);PendingIntent pi = PendingIntent.getBroadcast(context, 1, intent, 0);AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);am.cancel(pi);取消闹钟关键在于PendingIntent ,如果有创建闹钟使用的PendingIntent ,可以直接使用。如果沒有,那就要新建一个PendingI 阅读全文
posted @ 2013-06-22 00:58 张兰云 阅读(1374) 评论(0) 推荐(0) 编辑
摘要: 这里要lanyun分支的merge和remote选项,实现不同机器的push pull merge 的操作。 阅读全文
posted @ 2013-06-05 17:31 张兰云 阅读(4611) 评论(3) 推荐(0) 编辑
摘要: http://liujunhg.iteye.com/blog/1700357 阅读全文
posted @ 2013-06-04 20:28 张兰云 阅读(239) 评论(0) 推荐(0) 编辑
摘要: The use of layout_weight with Android layoutsThe popular Android OS uses layouts to displayViews on the screen. AViewis a widget that has an appearance on the screen. Examples of widgets are radio buttons, labels, edit boxes, etc.The appearance and sequence ofViews can be ordered and one of the ways 阅读全文
posted @ 2013-05-28 16:38 张兰云 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 1. 添加插件git2. 使用url在本地建立git库,然后import -> git 得到本地的工程3. 添加分支 ,提交 ,如果有错先pull一下,然后再push ,这里pull相当于 fetch + merge 的作用 阅读全文
posted @ 2013-05-21 21:51 张兰云 阅读(426) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/hanyonglu/archive/2012/03/26/2418178.html 阅读全文
posted @ 2013-05-20 09:01 张兰云 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 自动装箱和自动拆箱Stack<Integer> stack = new Stack<Integer>;stack.push(17); int --> Integerint value = stack.pop(); Integer --> intADT实现Iterable接口可以用foreach来遍历for(Transaction t :collection){} 可以写一个内部类继承 private class ReverseArrayIterator implements Iterator<Item>{ pubilc boolean hasNe 阅读全文
posted @ 2013-05-12 22:46 张兰云 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 23 下一页