杂项15

Animation event .
when animation ,System still use old size to deal with event .
setDisableDuringAni
ani.setAnimationListener(new AnimationListener()


SoundEffectConstants playSoundEffect(int)


Layout set view root id .
id is from name ,not like other resource




http://www.bangchui.org/read.php?tid=7802


"adb shell dumpsys activity"
dumpsys Activity
Can't find service: Activity
should use dumpsys activity .
1 we can konw all service infomation .
2 these infomation in store in systemserver


The table below lists several of the adb shell commands available. For a complete list of commands and programs, start an emulator instance and use the adb -help command.


adb shell ls /system/bin


adb emu <command> - run emulator console command
Android console command help: moto DEV


如果你指的是dalvik的话,源码在这里:
http://android.git.kernel.org/?p=platform/dalvik.git;a=summary
实际上android的开源部分是相当完整的,你完全可以编译出自己的可用系统出来。所缺少的部分是Google相关应用(闭源)和设备驱动。




幻灯片 母版的修改。母版是独立的。
蜂蜜没有什么营养。


智能电视, 娱乐的临界点。


理解ARM11处理器节能模式.android 节能
http://wenku.baidu.com/view/df0df25c3b3567ec102d8a42.html


import static com.javgame.wansha.common.IConstants.*;


Log.i("guofeng", "getView------>>>do position:"+position);

bug 管理系统。 mantis


PHP 引擎


QQ 网络 延迟可以接受


SurfaceView 可以 在另外线程 绘制 。为了防止 UI 和 其他线程同样处理。
我们需要lockCanvas 和 unlock 。
我们通过 getSurfaceHolder ,lockCanvas 得到画布。
call back 可以监听到 view 的变化 ,比如大小啊,关闭整个activity 啊。


WeakHashMap
比想象的要复杂,用错了?


TV_content
resource 定义规范


backgroundDimEnabled Control whether dimming behind the window is enabled.


android view 才是最底层东西,windows 只是便于控制窗体,定义的工具类。
WindowsManager.layoutPara 才是最基本的。
windows 属性 ,(可以在theme 中改变 )都是定义在上面的。


remove window ,dismiss 。


SparseArray<ManagedDialog>();
showDialog(int id, Bundle args)
invoke dialog show method ,need not creat a new dialog 。
DDZ use dismiss ,and will create much dialog instance 。
mDecor = mWindow.getDecorView();
mWindowManager.addView(mDecor, l);
normally show or dismiss only add view to manager 。
WindowManager.LayoutParams the root layout and
mDecor.setVisibility(View.VISIBLE);
mContext = new ContextThemeWrapper(
context, theme == 0 ? com.android.internal.R.style.Theme_Dialog : theme);
Window w = PolicyManager.makeNewWindow(mContext);


mDecor = mWindow.getDecorView();


界面需要Context ,而不是activity 。


block thread and block UI 。
android dialog 不会 block thread 。不过通常可以block ui 。(后面UI 得不到focus 和 tochevent )


StrictMode


EditText is too simple ,much is extend Text view 。


imm.showSoftInput(


normally , back menu will cancel dialog .
we can use cancel listener and onStop listen cancel event . we should not override dismiss.
dismiss does not show dialog ,but it is referered and can reuse .
remove will remove reference and will lost and gc .
we can use onStart and onstop when dismiss dialog .




service.enqueueToast(pkg, tn, mDuration);
Toast must makeText , must reuse toast .cancel before set .
only cancel then re create toast is invalid why design like it .


progress dialog when show after dismiss ,animation is stop . animation need restart 。
transparent background need bottom activity .can not recycle bitmap in bottom activity .
AsyncTask cancel .




SoftReference based HashMap
http://www.javaspecialists.eu/archive/Issue015.html




adapter
共用的 refersh ,listmore 。
非共用的search ,sub content ,
cancel 机制 。
每个request 独立 ,只有返回后才 处理 结果。
复合request 处理。
cancel 处理。


我的好友 更多
刷新 只是添加


mpage


没有地方改动,怎么会加到5,刷新问题,还是增加了。




3G access point
WAP 方式


不要预先处理。
多个request 同时处理。
直接重新构建 简单。
性能瓶颈。
util 方法 重用小sniper code 。
先定义好,哪些可以重用。




map 还是 object 。 object 结构清晰 。但是不便于动态改变。用 object 再进行 反射处理? structs 2 。 约定,直接映射 。










android
http://www.cnblogs.com/xirihanlin/archive/2010/06/14/1758145.html




animation tree package
andorid.view.annipation
android.animation add from 11 .it is use animation property .
and AnimationDrawable


start stop (cancel ) reset . No pause .




两个区别
Animation 功能比较全 ,
可以 setRepeatCount(int repeatCount)
可以加监听器,
可以 设置 AccelerateInterpolator 。
可以 getStartTime.
程序好控制。


两者都没有pause 。只好stop 再重新构建一Animation start 。
AnimationDrawable extend DrawableContainer
bitmap 重用 ,bitmapDrawable 重用


跟踪问题列表 excel 格式 。各人责任 ,整理


android article




http://code.google.com/p/android-color-picker/



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值