码迷,mamicode.com
首页 >  
搜索关键字:activity task    ( 20787个结果
android开发 Activity间消息的传递方式
android Activity切换...
分类:移动开发   时间:2014-06-05 04:45:43    阅读次数:233
Fragment介绍
Fragment允许将Activity拆分成多个完全独立封装的可重用的组件,每个组件有它自己的生命周期和UI布局。 Fragment最大的优点就是你可以为不同屏幕大小的设备创建灵活动态的UI. 每个Fragment都是独立的模块,并与它所绑定的Activity紧密联系在一起的。多个Activity可以共用一个Fragment. Fragment为大量的不同型号、尺寸、分辨率的设备提供了一种统一...
分类:其他好文   时间:2014-06-05 00:29:01    阅读次数:280
Codeforces 431 D. Random Task
很巧妙的单调性...... n,n+1,n+2,.....2*n-2    n+1,n+2,.....2*n-2,2*n-1,2*n 中间一段是相同的,n和2*n里的1是一样多的所以只有2*n-1不一样.....这是满足单调性的(monotone) 然后就是数位DP了..... D. Random Task time limit per te...
分类:其他好文   时间:2014-06-04 22:40:37    阅读次数:357
利用TaskScheduler处理Queue、Stack等类型的操作队列(生产者消费者场景)
我们经常会遇到生产者消费者模式,比如前端各种UI操作事件触发后台逻辑等。在这种典型的应用场景中,我们可能会有4个业务处理逻辑(下文以P代表生产者,C代表消费者): 1. FIFO(先进先出)      P产生1,2,3,4,5,6,3,2      C处理顺序应为1,2,3,4,5,6,3,2 2.LIFO(后进先出)      P产生1,2,3,4,5,6,3,2      C处...
分类:其他好文   时间:2014-06-04 21:51:08    阅读次数:421
NYOJ43 24 Point game 【回溯】
24 Point game 时间限制:3000 ms  |  内存限制:65535 KB 难度:5 描述 There is a game which is called 24 Point game. In this game , you will be given some numbers. Your task is to find an expressi...
分类:其他好文   时间:2014-06-04 21:06:57    阅读次数:295
Android 使用意图录制视频
本文章主要将通过意图触发内置的Camera应用程序来录制视频。 源代码: 布局文件: activity_main: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:...
分类:移动开发   时间:2014-06-03 06:25:41    阅读次数:249
android开发 软键盘出现后 防止EditText控件遮挡 整体平移UI
在EditText控件接近底部的情况下 软键盘弹出后会把获得焦点的EditText控件遮挡 无法看到输入信息  防止这样的情况发生 就需要设置AndroidManifest.xml的属性 前面的xml信息省略 在activity中 增加android:windowSoftInputMode="adjustPan"                    .............
分类:移动开发   时间:2014-06-03 04:42:31    阅读次数:246
Stopping and Restarting an Activity 停止和重新启动活动
Stopping and Restarting an Activity 停止和重新启动活动 PreviousNextGet started              This lesson teaches you to Stop Your Activity                        停止您的活动Start/Restart Your Activity ...
分类:其他好文   时间:2014-06-03 03:02:23    阅读次数:404
Pausing and Resuming an Activity 暂停和恢复活动
Pausing and Resuming an Activity 暂停和恢复活动 PreviousNextGet started              This lesson teaches you to Pause Your Activity               暂停活动Resume Your Activity            恢复活动 You s...
分类:其他好文   时间:2014-06-03 01:08:34    阅读次数:366
SharedPreferences 使用
1,获取到SharedPreferences2,编辑SharedPreferencesSharedPreferences.Editor3,提交commit()4,获取get****package com.example.listactivity;import android.app.Activity...
分类:其他好文   时间:2014-05-31 18:18:11    阅读次数:406
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!