Time of Update: 2016-02-19
標籤:一、簡介 二、代碼1.xml(1)activity_main.xml 1 <ListView 2 android:id="@id/android:list" 3 android:layout_width="wrap_content" 4 android:layout_height="wrap_content" 5 android:scrollbars="vertical" 6 /> 7
Time of Update: 2016-02-19
標籤:1、什麼是ARC? ARC(Automatic Reference Counting )自動應用計數器,代碼自動添加的release/retain,原先是需要手動添加的用來處理記憶體管理的應用計數的代碼可以自動的由編譯器完成了。ARC是為解決記憶體管理而誕生的。2、assign 和 weak,_block 和 _weak 的區別?strong 和 weak
Time of Update: 2016-02-19
標籤:今天在CSDN首頁偶然看到一個貼子JetBrains正式發布Kotlin 1.0:JVM和Android上更好用的語言 看完後,感覺Kotlin文法很簡潔,有一系列動態語言的特點,Lambda運算式,高階函數,閉包,甚至有靜態語言的類型檢查,最核心的一點,寫同樣的功能,Kotlin 的代碼量要少很多。以下是JAVA的一個資料類public class Artist { private long id; private String name; private
Time of Update: 2016-02-19
標籤:<span style="font-family: Arial, Helvetica, sans-serif;"><?xml version="1.0" encoding="utf-8"?> </span><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2016-02-19
標籤:一、簡介 二、代碼1.xml(1)activity_main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" android:layout_width="fill_parent" 4
Time of Update: 2016-02-19
標籤:eclipse android 虛擬機器 模擬器 按鍵 不可用 用eclipse建立android虛擬機器右側home鍵盤、返回鍵等停用解決方案: 開啟Android Virtual Device Manager,查看虛擬機器詳情: 650)
Time of Update: 2016-02-19
標籤:3、關於攔截1、如何攔截上面的總結都是基於:如果沒有攔截;那麼如何攔截呢?複寫ViewGroup的onInterceptTouchEvent方法: [java] view plain copy @Override public boolean onInterceptTouchEvent(MotionEvent ev)
Time of Update: 2016-02-19
標籤:概念對象拷貝有兩種方式:淺複製和深複製。顧名思義,淺複製,並不拷貝對象本身,僅僅是拷貝指向對象的指標;深複製是直接拷貝整個對象記憶體到另一塊記憶體中。詳解:再簡單些說:淺複製就是指標拷貝;深複製就是內容拷貝。集合的淺拷貝 (shallow copy)集合的淺複製有非常多種方法。當你進行淺複製時,會向原始的集合發送retain訊息,引用計數加1,同時指標被拷貝到新的集合。淺拷貝的例子:NSArray *shallowCopyArray = [someArray
Time of Update: 2016-02-19
標籤:1:第三方外掛程式SKSTableView在IOS7.1.1出現閃退的問題解決辦法,修改其內部原始碼:(NSInteger)subRow{id indexpath = [NSIndexPath class];id subRowObj = objc_getAssociatedObject(indexpath, SubRowObjectKey);return [subRowObj integerValue];}(void)setSubRow:(NSInteger)subRow{id
Time of Update: 2016-02-19
標籤:HttpSession的內容都放在一個單獨的Map中,類比遠程分布式Session。1.使用HttpServletRequestWrapper建立自訂Request2.使用動態代理封裝自訂Request返回的HttpSession對象3.建立過濾器,使用自訂Request替換原有的Request對象。4.在Servlet中得到的HttpSession對象,寫入和讀取內容都假設通過遠程Session伺服器。建立自訂的Request,返回動態代理的HttpSessionimport java.
Time of Update: 2016-02-19
標籤:一、簡介 二、代碼1.xml(1)example_appwidget.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 android:layout_width="fill_parent"
Time of Update: 2016-02-19
標籤:1,GCD的Concurrent、Serial queuesConcurrent queues (also known as a type of global dispatch queue) execute one or more tasks concurrently, but tasks are still started in the order in which they were added to the queue. The currently executing tasks
Time of Update: 2016-02-19
標籤:要在Android系統上建立一個動態或者多面板的使用者介面,你須要將UI組件以及activity行為封裝成模組。讓它可以在你的activity中靈活地切換顯示與隱藏。你可以使用Fragment類來建立這些模組,它們可以表現得有些像嵌套的activity,它們定義著自己的布局。管理自己的生命週期。當一個fragment指定了它自己的布局,它可以在activity中和其它的fragment配置為不同的組合。這樣就行為不同的螢幕尺寸來改動你的布局配置(在小螢幕上一次展現一個fragment,而在
Time of Update: 2016-02-19
標籤:概述 在開發framework的時候有時會遇到需要自己開發JNI,以便使Java能夠調用自己底層開發的庫。網上的文章一般都是介紹如何通過命名規則及javah,使jni層函數與java層函數自動建立連結(Java虛擬機器通過命名規則建立),本文將講解如何動態註冊jni函數。 依賴庫及標頭檔 先貼出Android.mk的代碼 1 LOCAL_PATH :=$(call my-dir) 2 include $(CLEAR_VARS)
Time of Update: 2016-02-19
標籤:第一種方法:企業版可以用,Appstore可能被拒,慎用 1 - (void)exitApplication { 2 3 AppDelegate *app = [UIApplication sharedApplication].delegate; 4 UIWindow *window = app.window; 5 window.backgroundColor = [UIColor redColor]; 6 7 8
Time of Update: 2016-02-19
標籤:本文來源於我在InfoQ中文站翻譯的文章,原文地址是:http://www.infoq.com/cn/news/2016/02/earlgrey-ios-functional-ui-test經過了一段時間的醞釀後,Google很高興地宣布了EarlGrey,一款針對於iOS的功能性UI測試架構。諸如YouTube、Google Calendar、Google Photos、Google Translate、Google Play
Time of Update: 2016-02-19
標籤:http://www.zhihu.com/question/19649679我來說說我學習的過程:(無恥的使用一個回答 回答了很多問題。^^)第一步,精讀 Stephen G. Kochan 的《Objective-C程式設計》:Objective-C語言基礎,iOS開發的第一技能就是精通Objective-C;第二步,有了語言基礎,精讀 David Mark 的《精通iOS開發》:通過各種單獨的項目,熟悉iOS
Time of Update: 2016-02-19
標籤: Reinhard在做一個Excel匯入項目時,發現X++代碼一旦執行到Excel組件部分,就會報如下錯誤: 無法建立類”Excel.Application”的COM對象。請確保在電腦””上已正確註冊該對象。 根據錯誤提示,我們先去元件服務中,尋找名為Microsoft Excel Application的COM組件。
Time of Update: 2016-02-19
標籤:1. 升級gradle進入專案檔夾$project/gradle/wrapper/gradle-wrapper.properties, 使用最新的gradle. 修改替換為最新的distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-all.zip2. 升級gradle外掛程式(plugin),使用最新的gradle依賴.buildscrpt { dependencies
Time of Update: 2016-02-19
標籤:今天看了鴻洋_大神在慕課網講的qq5.0側滑菜單。學了不少的知識,同時也佩服鴻洋_大神思路的清晰。看了教程課下也自己實現了一下。代碼幾乎完全相同 別噴我啊。。沒辦法 o(︶︿︶)o 唉像素不好 沒辦法 找不到好的製作gif的軟體。我們暫且稱側滑左邊介面的為menu,右邊為content首先是menu的布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout