Time of Update: 2015-03-31
標籤:當螢幕多久沒有點擊的時候,進行某種操作就是所謂的鎖屏功能。onCreate: public void addRunnable() { handler.postDelayed(runnable, Constant.WAIT_TIME); }監聽觸摸事件: @Override public boolean dispatchTouchEvent(MotionEvent ev) { // TODO Auto-generated method
Time of Update: 2015-03-31
標籤:手機平板等大多移動端網站都會有觸摸滑動內容的功能,公司移動端網站(m.muzhiwan.com)的標題廣告滑動以及輪播效果就是用的Swiper外掛程式。Swiper就是常用於移動端網站的內容觸摸滑動的一個js外掛程式。Swiper是純javascript打造的滑動特效外掛程式,面向手機、平板電腦等移動終端,以及PC端網站。Swiper能實現觸屏焦點圖、觸屏Tab切換、觸屏多圖切換等常用效果。Swiper開源、免費、穩定、使用簡單、功能強大,是架構移動終端網站的重要選擇!使用詳情,參見Swi
Time of Update: 2015-03-31
標籤:function isMobile(){ var sUserAgent= navigator.userAgent.toLowerCase(), bIsIpad= sUserAgent.match(/ipad/i) == "ipad", bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os", bIsMidp= sUserAgent.match(/midp/i) == "midp", bIsUc7=
Time of Update: 2015-03-31
標籤:AndroidManifest.xml <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />activity_download_file.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2015-03-31
標籤:由於一些原因,Google相關很多服務都無法訪問,所以在很多時候我們SDK也無法升級,當然通過技術手段肯定可以解決,但是比較麻煩,而且下載速度也不怎麼樣。這裡筆者介紹一個國內的Android鏡像站,這樣升級速度也賊快了。首先我們要感謝東軟提供鏡像伺服器。近來我發現一個更加簡潔的方法:1.Tools->Options2.設定代理:這樣可以省去手動添加xml
Time of Update: 2015-03-31
標籤:轉載前請註明來源:http://www.cnblogs.com/niit-soft-518/p/4381328.html最近在寫一個ipad的項目,該項目必須是橫屏。進入正題,有一項功能是要調用系統的牌照和相簿,於是本屌用了 UIImagePickerController,興沖沖的運行了一下,呵呵,崩掉了,然後帶著高逼格去查蘋果文檔,一堆英文,不懂,好吧,百度一下,發現好多同道中人說
Time of Update: 2015-03-31
標籤:iOS6 之後,UILabel加入了attributedText屬性,為UILabel的文本顯示添加了巨大的變化,attributedText使用coreText繪製,支援文本域字型、顏色等設定。 在iOS6 之前,UILabel
Time of Update: 2015-03-31
標籤: Android核心使用pull解析器 所以不用匯入jar包,pull解析器簡單、易用、接近於手工編寫XML檔案 解析的XML檔案為xmlpull.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <students> 3 <student id="1"> 4 <name>張MM</name> 5
Time of Update: 2015-03-31
標籤:android 地圖 由於眾做周知的原因在國內使用Google地圖不太方便,在開發中如果直接使用會出現些問題。但國內的如百度地圖,高德地圖等都無法提供詳細的國外地圖資料,所以研究一下嘍,,,使用 Google Maps Android API v2使用Google提供的SDK,Android Studio開發。首先保證SDK Manager中 Google Play service服務已經安裝。
Time of Update: 2015-03-31
標籤:ios alert sheet action 原創Blog,轉載請註明出處 blog.csdn.net/hello_hwc前言:有兩個月左右沒為公司開發IOS項目了(最近一直在搞IOT),以至於對IOS 8的這個更新都沒看到。這裡補上。一
Time of Update: 2015-03-31
標籤:viewpager fragment 先說下思路在一個activity中的主布局加入supportv4架包中的viewpager,viewpager相當於一個listview,在viewpager中我們要放的fragment,對viewpager做監聽,實現想要的效果,代碼很簡單一看就懂,一直上代碼。 主類package
Time of Update: 2015-03-31
標籤:android參考 http://blog.csdn.net/span76/article/details/44225415, 編寫一個必然crash的程式#include <stdio.h>void f() { char *c=0; *c=0;}int main (void){ printf("hello world"); f(); return 0;}編譯後複製到 system/bin 下面而後adb shell 登陸到device上運行,
Time of Update: 2015-03-31
標籤:android對於提升Android中頻繁使用的ListView子Item View的載入效率,基於兩點基本考慮:1,Android的View的建立比較消耗資源;2,findViewById()也不是最快的。所以在實際開發中經常使用的適配器中的getView()方法:public View getView(int position, View convertView, ViewGroup
Time of Update: 2015-03-31
標籤:圖片處理 android 項目中用到的關於圖片的處理public class UtilPicture { public static final String IMAGE_UNSPECIFIED = "image/*"; /** * 將圖片儲存至SD卡,需判斷是否裝有SD卡、是否可讀寫、是否有空間,否則提示出錯 * @param ctx 上下文 * @param jpeg 要儲存的照片
Time of Update: 2015-03-31
標籤:使用諸如 Blend for Visual Studio 或 Microsoft Visual Studio XAML 設計器的設計工具。 在 Visual Studio XAML 編輯器中將控制項添加到 XAML 標記中。 在代碼中添加控制項。 當應用運行時會看到你在代碼中添加的控制項,但在 Visual Studio XAML
Time of Update: 2015-03-31
標籤:ios- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ self.mainTitle=[[UILabel alloc]init];
Time of Update: 2015-03-31
標籤:android activity focus 開發 Focus on technology, enjoy life!—— 楊煥州 QQ:804212028 原文連結:http://blog.csdn.net/y18334702058/article/details/44624305 本文可能存在參考或藉助部分外界資源,如有任何侵權行為,請與我聯絡!主題:
Time of Update: 2015-03-31
標籤:一、ContentProvider簡介
Time of Update: 2015-03-31
標籤:建立ArcGIS Project for Android項目失敗解決方案 - skybot的專欄 - 部落格頻道 - CSDN.NET http://blog.csdn.net/daonidedie/article/details/8556184 問題描述: The selected wizard could not be started. Plug-in "com.esri.arcgis.android.core" was
Time of Update: 2015-03-31
標籤:using UnityEngine;using System.Collections;public class move : MonoBehaviour {GameObject go;// Use this for initializationvoid Start () {go= GameObject.Find("c4"); //命名為c4的Cubego.renderer.material.color = Color.red; //