雜項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/
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/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.