Time of Update: 2014-11-10
Android中將一個圖片切割成多個圖片[轉],有種情境,我們想將一個圖片切割成多個圖片。比如我們在開發一個拼圖的遊戲,就首先要對圖片進行切割。以下是封裝好的兩個類,可以實現圖片的切割。僅供參考和學習。一個是ImagePiece類,此類儲存了一個Bitmap對象和一個標識圖片的順序索引的int變數。Java代碼 package arui319.blog.csdn.net;  
Time of Update: 2014-11-10
大鐘的ios開發之旅(4)————簡單談談ios程式介面實現的三種方式(代碼建立,xib和storyboard),xibstoryboard/******************************************************************************************** *
Time of Update: 2014-11-10
Unable to instantiate fragment com.viewpager.demo.FirstFragment: make sure class name exists, is
Time of Update: 2014-11-10
Android Support 包裡究竟有什麼,androidsupport大家如果喜歡我的部落格,請關注一下我的微博,請點擊這裡(http://weibo.com/kifile),謝謝轉載請標明出處(http://blog.csdn.net/kifile),再次感謝隨著 Android 5.0 Lollipop 的發布,Android 又為我們提供了更多的支援包,但是我相信大部分開發人員都同我之前一樣不知道這些包裡究竟有些什麼東西,我們應該在什麼時候使用它。現在,我們就來逐個看看每一個版本的
Time of Update: 2014-11-10
Android常用工具類封裝---SharedPreferencesUtil,androidpreferenceSharedPreferences常用於儲存一些簡單的資料,如記錄使用者操作的配置等,使用簡單。public class SharedPreferencesUtil {//儲存的sharedpreferences檔案名稱private static final String FILE_NAME = "save_file_name";/** * 儲存資料到檔案 * @
Time of Update: 2014-11-10
Cocos2d-x 網路線程與UI線程的同步
Time of Update: 2014-11-10
解決NSData轉NSString返回nil的問題,nsdatansstring在使用initWithData等方法將NSData轉換成NSString時,如果NSData的內容含有非encoding編碼的字元,將會返回nil。----------SDK文檔如下-------------- (instancetype)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding;Return
Time of Update: 2014-11-09
Android Studio 簡單介紹和使用問題小結,androidstudio隨著android 5.0 的發布,android 開發已經進入了一個全新的時代,eclipse開發安卓已經有點不合時宜了,在github上80%的android項目都採用android studio開發,而且android studio的中文教程越來越多,還有什麼理由不固守這eclipse 呢。下面這篇文章對瞭解android studio
Time of Update: 2014-11-09
安卓調用系統相機三步走,安卓調用三步走第一步: <uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permissionandroid:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>第二步: Intent intent = new
Time of Update: 2014-11-09
Android 在版面配置容器中動態添加控制項,android控制項這裡,通過一個小demo,就可以掌握在版面配置容器中動態添加控制項,以動態添加Button控制項為例,添加其他控制項同樣道理。1、addView添加控制項到版面配置容器2、removeView在版面配置容器中刪掉已有的控制項3、使用,來個小demo就明白了public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle
Time of Update: 2014-11-09
.Net程式員玩轉Android開發---(9)絕對布局AbsoluteLayout,android程式員 絕對布局AbsoluteLayout類似於.NET中Winform的布局方式,以表單左上方為座標點,向右向下延伸. 由於絕對布局每個控制項的位置是固定的,不能隨著螢幕的大小改變而改變,所以在不同裝置上運行出來的效果不同,所以這種布局方式使用的比較少。
Time of Update: 2014-11-09
程式猿之--C語言細節13(二維數組和指標,&*a[i][0]的理解,數組1[e]和e[1]很可能你沒見過),--c二維數組主要內容:二維數組和指標,&*a[i][0]的理解、數組1[e]和e[1]#include <stdio.h>#define NUM_ROWS 10#define NUM_COLS 10int main(int argc, char **argv){ int a[NUM_ROWS][NUM_COLS], *p,
Time of Update: 2014-11-09
iOS 在TabViewController中設定Tab Bar,且實現自訂,tabviewcontroller開發環境:Xcode 6.1 iOS 7.1.2 & iOS 8.1實現功能一,在開啟APP時即顯示第三個Tab對應的View;實現功能二,給每一個Tab設定圖片和選中圖片。- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary
Time of Update: 2014-11-09
Android:實現兩個Activity相互切換而都不走onCreate().(程式更加流暢!)本文要實現的目的是:有3個Activity: A,B,C,從A中可以進入B,B中可以進入C,並且B和C之間可能需要多次相互切換,因此不能使用普通的startActivity-finish方式,因為重新建立Activity比較耗時。當這個Activity內容比較多時,重複建立很大的影響了流暢性。(即實作類別似於QQ上
Time of Update: 2014-11-09
Android提供的系統服務之--Vibrator(震動器)Android提供的系統服務之--Vibrator(震動器)
Time of Update: 2014-11-09
Android PopupWindow學習總結Android中有一種可以放置在任何位置的一種快顯視窗PopupWindow,比Dialog更加靈活方便,但是作者在使用過程中遇到過幾個問題,今天來總結一下。首先先來說一下怎麼來放置一個PopupWindow,PopupWindow總共提供了三個方法:showAsDropDown(View anchor):相對某個控制項的位置(正左下方),無位移showAsDropDown(View anchor, int xoff, int
Time of Update: 2014-11-09
Android¿ª·¢(29) Android ´íÎó´¦Àí¶þÒ» ÎÊÌâÃèÊö:²é¿´androidÔ´ÂëʱÌáʾ:The JAR of this class file belongs to container ¡Android Private Libraries¡¯ which does not allow modifications to source attachments on its entries.vcD4KPHA+tv4gveK+9rDst6g6PC9
Time of Update: 2014-11-09
Android中的Theme和Style1.首先,Theme屬性詳解:android:theme="@android:style/Theme.Dialog" //Activity顯示為對話方塊模式android:theme="@android:style/Theme.NoTitleBar" //不顯示應用程式標題欄android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Time of Update: 2014-11-09
Android L下載Android L千呼萬喚終於出來了,那麼我們先下載下來一睹為快,那麼怎麼去拿到最新的L的分支那按照傻瓜步驟總結下(Linux Ubuntu)1.擷取repo檔案(1).curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo(2).chmod a+x ~/bin/repo(3).export PATH=~/bin:$PATHcurl
Time of Update: 2014-11-08
Android,android官網Android - 錯誤:"No resource found that matches the given name android:Theme.Material"本文地址: http://blog.csdn.net/caroline_wendy錯誤: "No resource found that matches the given name