Time of Update: 2015-01-09
Android應用開發基礎之資料存放區和介面展現(一),android應用開發Android項目的目錄結構Activity:應用被開啟時顯示的介面src:項目代碼R.java:項目中所有資源檔的資源idAndroid.jar:Android的jar包,匯入此包方可使用Android的apilibs:匯入第三方jar包assets:存放資源檔,比方說mp3、視頻檔案bin:存放編譯打包後的檔案res:存放資源檔,存放在此檔案夾下的所有資源檔都會產生資源iddrawable:存放圖片資源layout
Time of Update: 2015-01-09
iOS代碼修改音量,ios代碼音量最近在做一個項目,需要使用者在開啟APP後,自動將音量大小到某個值,於是研究了一下。之前做過iOS上聲音的研究,蘋果對iPhone裝置的輸入/輸出的控制很嚴格,因為蘋果要控制使用者體驗的一致性。比如:使用者將耳機拔下來的時候,蘋果認為,使用者這時候不希望其他人知道自己在聽什麼,於是這時候聲音會被自動暫停。在音量調整上,蘋果也採取了類似的策略。蘋果認為,使用者不需要APP來為他指定音量,因為這樣有時候使用者會感到不舒服。蘋
Time of Update: 2015-01-09
安卓感應器開發之指南針,安卓感應器指南針代碼很簡單,主要是一些常用感應器的監聽,指南針還是挺好用的。布局代碼<?xml version="1.0" encoding="utf-8"?><LinearLayout
Time of Update: 2015-01-09
基於Android平台開發的手電筒Light,android手電筒light基於Android平台開發的手電筒Light1.
Time of Update: 2015-01-09
使用ant編譯之簽名問題,ant編譯簽名使用ant編譯之簽名問題DionysosLai(906391500@qq.com) 2015/1/5
Time of Update: 2015-01-09
android 擷取狀態列高度,android擷取狀態列public int getStatusBarHeight(Context context) {Class<?> c = null;Object obj = null;Field field = null;int x = 0, statusBarHeight = 0;try {c = Class.forName("com.android.internal.R$dimen");obj =
Time of Update: 2015-01-09
Android WebView 參數設定明細!,androidwebviewWebView wv = new WebView(content);WebSettings ws = wv.getSettings();設定參數明細如下:setPluginsEnabled(true) ;//支援外掛程式setUserWideViewPort(false) ;//將圖片調整到適合webview的大小setSupportZoom(true)
Time of Update: 2015-01-09
iOS擷取UIColor對象的CMYK值,ios擷取uicolorcmyk/** * 擷取UIColor對象的CMYK字串值。 */- (NSString *)getCMYKStringValueByColor:(UIColor *)originColor{ // Method provided by the Colours class extension NSDictionary *cmykDict =
Time of Update: 2015-01-09
使用LinearLayout和PullRefreshView實現上下翻頁,pulltorefresh<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">之前看過網易雲閱讀用戶端,裡面的文章可以實現上下拉動實現上下翻頁的效果,感覺體驗效果很不錯。</span>公司新版本項目的開發中也要求實作類別似的效果,
Time of Update: 2015-01-09
ListView+CheckBox實現全選和反選,listviewcheckbox實現的如下:(在《第一行代碼的例子上加以修改的》),當點擊全選的時候,效果如下:當只選中下面的幾個:此時按下,反選,首先是布局:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
Time of Update: 2015-01-09
Android之Message,MessageQueue,Looper,Handler詳解(帶樣本),messagequeuelooper一、幾個關鍵概念1、MessageQueue:是一種資料結構,見名知義,就是一個訊息佇列,存放訊息的地方。每一個線程最多隻可以擁有一個MessageQueue資料結構。建立一個線程的時候,並不會自動建立其MessageQueue。通常使用一個Looper對象對該線程的MessageQueue進行管理。主線程建立時,會建立一個預設的Looper對象,而Loope
Time of Update: 2015-01-09
Android UI- PullToRrefresh自訂下拉重新整理動畫,Android UI-
Time of Update: 2015-01-09
Android中的訊息通知(NotificationManager和Notification),androidmanager下面來談談notification,這個notification一般用在電話,簡訊,郵件,鬧鐘鈴聲,在手機的狀態列上就會出現一個小表徵圖,提示使用者處理這個通知,這時手從上方滑動狀態列就可以展開並處理這個快訊。已添加的Notification.Builder,使其更容易構建通知。notification是一種讓你的應用程式在沒有開啟情況下或在後台運行警示使用者。它是看不見的
Time of Update: 2015-01-09
Android NDK開發(六)——使用開源LAME轉碼mp3,androidndk 轉載請註明出處:http://blog.csdn.net/allen315410/article/details/42456661 在本專欄的前面幾篇部落格中講述了一些Android
Time of Update: 2015-01-09
第三章 介面UI的基石—UI布局(2),ui基石3.2
Time of Update: 2015-01-09
處理libpng warning: "iCCP: Not recognizing,libpngiccp在Android5.0的源碼中編譯apk會出現如下的問題libpng warning: "iCCP: Not recognizing known sRGB profile that has been edited"原因是新版本的libpng對關於ICCP採用了更嚴苛的約束解決方案有三:降低 libpng用 imagemagick strip
Time of Update: 2015-01-09
Cocos2dx發布Android包,配置開發環境(菜鳥級入門,一看就會),cocos2dxandroid1.下載adt-bundle-windows-x86_64這裡邊有Eclipse和Android SDK
Time of Update: 2015-01-09
第三章
Time of Update: 2015-01-09
作為一名Android APP開發人員的自我總結,androidapp每當接近年尾,最痛苦的工作無疑是寫年終總結,寫總結的同時不禁感歎這一年過得不容易阿。突然想起這一年也是自己開發Android
Time of Update: 2015-01-09
Android 自訂控制項 優雅實現元素間的分割線 (支援3.0以下),android3.0轉載請標明出處:http://blog.csdn.net/lmj623565791/article/details/42407923 ,本文出自:【張鴻洋的部落格】1、概述話說,隨著Android