Time of Update: 2015-04-18
關於帶有EditText的自訂AlertDialog,不能彈出軟體盤的解決方案,自訂alertdialog原文 : 關於帶有EditText的自訂AlertDialog,不能彈出軟體盤的解決方案 mDialog = new AlertDialog.Builder(context, R.style.AlertDialog).create(); mDialog .show(); mDialog
Time of Update: 2015-04-18
Android編程: View類和Intent類,androidintent====View類的基本方法====setBackgroundColor(int color)設定試圖的背景色setBackgroundDrawable(Drawable d)設定視圖的背景圖片 setMinimumHeight(int minHeight)設定最小高度,父類可能會重設setMinimumWidth(int
Time of Update: 2015-04-18
Mecanim 工作流程,mecanim工作流程Mecanim概述:Mecanim是Unity提供第一個豐富而複雜的動畫系統,提供了:針對人形角色的簡易的工作流程和動畫建立能力Retargeting(運動重新導向)功能,即把動畫從一個角色模型應用到另一個角色模型上的能力。針對Animations
Time of Update: 2015-04-18
開發學習日記(八):7步看懂weiphp外掛程式機制,核心目標是響應請求,7步weiphp又經過了幾個小時的梳理、回顧,截至目前,終於對weiphp這個架構的機制搞明白了些。想要完全明白,自然還需要大把的時間。 第1步: 配置公眾號,http://weiphp.jiutianniao.com/ ... .html 從上面這個配置可以看出,請求唄weiphp的入口檔案index.php接收了,可能會被/home/weixin/
Time of Update: 2015-04-18
android中byte[] short[] int[] long[]數組資料轉換import java.nio.ByteOrder;public class BytesTransUtils { private String TAG = "BytesTransUtils"; private static BytesTransUtils instance = null; private BytesTransUtils() { // Log.i(TAG,
Time of Update: 2015-04-18
Android Camera
Time of Update: 2015-04-18
android sdk 8-10M/S下載速度,有圖有教程1.強制使用http替換https連結Tools》選擇Options,勾選上”Use Download Cache”和”Force https://… sources to be fetched using http://…” 和use download cache2.禁用dl-ssl.google.com的xml連結庫Tools 》 Manage Add-on
Time of Update: 2015-04-18
Android---18---RadioButton選項按鈕MainActivity.java: import android.app.Activity;import android.os.Bundle;import android.view.Menu;import android.view.MenuItem;import android.view.View;import android.view.View.OnClickListener;import
Time of Update: 2015-04-18
Android---17---AutoCompleteTextViewAutoCompleteTextView 能夠實現當使用者輸入資訊的時候自動提示的功能,但是AutoCompleteTextView只能提示一次,而MultiAutoCompleteTextView也能實現資訊提示的功能,而且是以逗號隔開,實現多次提示。 activity_main.xml: MainActivity.java: import
Time of Update: 2015-04-17
Objective-C 手勢解鎖App,objective-cappObjective-C 手勢解鎖AppIOS 手勢鎖屏實現邏輯分析: 1、通過迴圈在頁面中添加透明背景白色邊框的按鈕(預設為九個)並設定 tag 值,以便與原始密碼核對 2、撲捉手勢,主要用到touchesBegan、touchesMoved 和 touchesEnded 3、將手勢經過的按鈕劃線連結起來,主要用到
Time of Update: 2015-04-17
廣播監聽手機中應用程式是否安裝並卸載,監聽應用程式public class PackageReceiver extends BroadcastReceiver {private static final int PACKAGE_NAME_INDEX = 8;@Overridepublic void onReceive(Context context, Intent intent) {if (intent != null)
Time of Update: 2015-04-17
android TextView設定刪除線,超連結,顏色和字型等說介紹,androidtextview要給 TextView 加上特殊效果,方式主要有幾種: 第一種,自動應用效果,使用 android:autolink
Time of Update: 2015-04-17
Android開發之RatingBar控制項,androidratingbarRatingBar控制項為使用者提供一個評分操作的模式。控制項的幾個常用方法:1.setMax()設定RatingBar星級滑塊的最大值.2.setNumStars()設定RatingBar星級滑塊的星形數量。值得注意的是,應該把控制項的布局寬度設定為wrap_content,如果設定為fill_parent,顯示的星形數量很有可能不是設定的星形數量。3.setRating()設定Ratin
Time of Update: 2015-04-17
公眾號開發_如何擷取使用者資訊?,公眾使用者資訊如何擷取使用者資訊?sence:1)有服務認證號,並已開通功能:網頁服務>>網頁帳號>>網頁授權擷取使用者基本資料2)設定:網頁授權擷取使用者基本資料 後面的 修改 ,設定成 www.jianshu.com
Time of Update: 2015-04-17
Android啟動一個只知道包名的應用,android包名我們知道,要啟動一個應用,就需要知道應用啟動Activity的名稱,可是啟動Activity的ACTION參數,這樣就可以通過startActivity(Intent)來啟動,如:/**被啟動的應用的包名為com.xx.xx,應用的入口為com.xx.xx.TestLaunchActivity**/ Intent intent = new Intent();
Time of Update: 2015-04-17
Android開發:顯式/隱式Intent意圖跳轉Activity總結,androidintent顯式跳轉是在已知包名和類名的情況下常用的跳轉方法:Intent mIntent = new Intent();mIntent.setClassName("com.android.settings","com.android.settings.Settings");mContext.startActivity(mIntent);我們也常這麼用:Intent
Time of Update: 2015-04-17
公益課程:《Android智能手錶DIY》,不"智能"非"手錶" ,智能手錶我們主張diy“智能硬體時代來了!”蘋果智能手錶Apple
Time of Update: 2015-04-17
Android 源碼編譯,android源碼編譯 費了好久終於下載好了源碼4.4.2 (如果想只是瞭解下編譯過程 能用現成的最好了)下載好後 接下來開始編譯了我的虛擬機器Ubuntu配置 源碼有16g+ (.repo 佔了大多數 可以刪掉的)1進入到源碼的目錄2 source build/envstup.sh3 lunch (選擇full-eng 代號 或者直接lunch full-eng)4 make (我的主機配置一般 用-j4
Time of Update: 2015-04-17
圖片壓縮和緩衝高效載入規避oom總結,圖片壓縮oom 高效載入大圖片查看每個應用程式最高可用記憶體是多少:int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); Log.d("TAG", "Max memory is " + maxMemory + "KB"); BitmapFactory這個類提供了多個解析方法(decodeByteArray, decodeFile,
Time of Update: 2015-04-17
給類別添加屬性(通過@dynamic和objc_setAssociatedObject實現),jsobject添加屬性 通過@dynamic和objc_setAssociatedObject,實現給類別添加屬性,前者說明:程式員手動實現setter和getter,後者則是動態給對象添加屬性。兩個配合使用可以實現給對象添加屬性。