Time of Update: 2015-09-06
標籤:1.Fragment建立extents FragmentView rootView = inflater.inflate(R.layout.fragment_main, container, false);rootView.findViewById(R.id.ShowAnotherFragment).setOnClickListener(new View.OnClickListener() { @Override
Time of Update: 2015-09-06
標籤: 系統架構 1.REST 2.SOAP 技術架構 1.Servlet; 2.Spring MVC(REST); 資料格式
Time of Update: 2015-09-06
標籤:Android Studio使用內建LoginActivity模板,製作登入介面登入介面功能:1、記住表單賬戶密碼,並自動登入 //獲得sp執行個體對象 sp = this.getSharedPreferences("userInfo", Context.MODE_WORLD_READABLE); //如果登陸過,直接登入 if(sp.getBoolean("ISLOAD",false)) { Intent
Time of Update: 2015-09-06
標籤: 結果:1.增加ActionList中的Action時,需要跳到Master介面,不能在Android4Phonel介面下。2.如果不開啟許可權的話,會提示“該裝置不支援停止錄音操作”(Record audion改為True)。3.播放的效果是播放一次就停止了。不是迴圈的。 執行個體代碼: 1 unit Unit1; 2 3 interface 4 5 uses 6 System.SysUtils,
Time of Update: 2015-09-06
標籤: 學了這麼久,竟然不知道Android項目的drawable-hdpi drawable-idpi drawable-mdpi....這些檔案夾是做什麼用的,說點官方的。
Time of Update: 2015-09-04
標籤:android布局像素單位Android布局像素單位有dp、sp、px等三種。設定字型時使用sp,設定長度、高度等屬性時可以使用dp或sp,px則表示螢幕實際的像素。dp、sp、px三者之間的區別:dp是與密度無關,sp除了與密度無關外,還與比例無關。在Android中規定以160dpi為基準,即如果每英寸螢幕密度為160,則dp、sp、px都是一樣的,即1dp=1sp=1px。螢幕尺寸:螢幕的對角線長度,單位是英寸,1英寸=2.54厘米。螢幕解析度:指橫縱向上的像素點數,單位是px,1p
Time of Update: 2015-09-06
標籤:何為抽象工廠? 抽象工廠提供一個固定的介面,用於建立一系列有關聯或相依存的對象,而不必指定其具體類或其建立的細節。用戶端與從工廠得到的具體對象之間沒有耦合。抽象工廠與Factory 方法模式的區別 抽象工廠與Factory
Time of Update: 2015-09-06
標籤:今天升級Xcode 7.0 bata發現網路訪問失敗。輸出錯誤資訊The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.Google後查證,iOS9引入了新特性App Transport Security (ATS)。詳情:App Transport Security
Time of Update: 2015-09-05
標籤:垂直置中是布局中十分常見的效果之一,為實現良好的相容性,PC端實現垂直置中的方法一般是通過絕對定位,table-cell,負邊距等方法。有了css3,針對移動端的垂直置中就更加多樣化。方法1:table-cellhtml結構:<div class="box box1"> <span>垂直置中</span></div>css:.box1{ display: table-cell; vertical-align:
Time of Update: 2015-09-06
標籤: 結果:1.播放視頻需要手動放入MediaPlayerControl1控制項,設定MediaPlayerControl1.MediaPlayer := MediaPlayer1;2.播放音效檔正常,但播放器視時發現,第一邊正常第二邊就報錯了(哪位大神知道的,請M我哦,先謝謝了)。3.打包時需要打入MP3與MP4檔案,路徑為"assets\internal\"。 執行個體代碼: 1 unit Unit1; 2 3 interface 4 5
Time of Update: 2015-09-04
標籤: 結果:1.二個按鈕可以建立訊息提醒,最小化也是建立訊息提醒。2.程式必須最小化後才能點擊訊息提醒Label2才會有反映。 執行個體代碼: 1 unit Unit1; 2 3 interface 4 5 uses 6 System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, 7 FMX.Types, FMX.Controls,
Time of Update: 2015-09-06
標籤:http://blog.csdn.net/lwjok2007/article/details/47058795 上節地址 http://blog.csdn.net/lwjok2007/article/details/47058101接著上節我們講到的iOS調用js下來我們使用js調用iOSjs調用iOS分兩種情況一,js裡面直接調用方法二,js裡面通過對象調用方法 首先我們看第一種,直接調用方法。其中用到了iOS的block 上代碼 &nb
Time of Update: 2015-09-04
標籤: 有時候我們知道一個圖片的檔案名稱,我們需要知道在R檔案中,該資源的ID,使用如下方法:public static int getIdByName(Context context, String className, String resName) { String packageName = context.getPackageName(); int indentify =
Time of Update: 2015-09-03
標籤: 1 #import "ViewController.h" 2 3 @interface ViewController () <UIScrollViewDelegate> 4 5 @property (weak, nonatomic) IBOutlet UIScrollView *scrollView; 6 @property (weak, nonatomic) IBOutlet UIPageControl *pageControl; 7 8
Time of Update: 2015-09-04
標籤:SPFTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 7136 Accepted: 3255DescriptionConsider the two networks shown below. Assuming that data moves around these networks only between directly connected nodes on a peer-to-peer
Time of Update: 2015-09-05
標籤:使用百度地圖定位後,滑動地圖,使用反編碼確定地圖中心店的位置資訊//// MapControl.m// quyizu//// Created by apple on 15/9/2.// Copyright (c) 2015年 waste. All rights reserved.////使用百度地圖定位,poi搜尋,地理編碼功能#import "MapControl.h"#import "WJBaiduMapTools.h"@interface MapControl
Time of Update: 2015-09-04
標籤:前言:移動互連網時代,網路通訊已經是手機端必不可少的功能。應用中也必不可少地使用了網路通訊,增強用戶端與伺服器互動。使用NSURLConnection實現HTTP的通訊。NSURLConnection 提供了非同步請求和同步請求兩種通訊方式。同步請求資料會造成主線程阻塞,通常在請求大資料或網路不通暢時不建議使用。不管同步請求還是非同步請求,建立通訊的步驟是一樣的:1 建立NSURL2 建立NSURLRequest3 建立NSURLConnection當NSURLConnection
Time of Update: 2015-09-04
標籤:專註Android領域開發。 仰望星空,同時需要腳踏實地。 ——好記性不如爛部落格Android總結篇系列:Activity中幾個主要函數詳解Activity作為Android系統中四大基本組件之一,包含大量的與其他的各大組件、intent、widget以及系統各項服務等之間的互動的函數。在此,本文主要選取實際項目開發中常用的,但完全理解又需要有一定深入瞭解的幾個函數進行講解,後續本文會根據需要不斷更新。1. startActivityForResult /
Time of Update: 2015-09-02
標籤:junit android 在開發中,為了提高開發效率,我們一般會自訂自己的工具類。為了保證項目的可靠性,在將工具類引入項目之前,我們一般都會對工具類進行單元測試,下面我們通過一個執行個體看一下如何搭建測試環境。1.首先自訂一個工具類,這裡我們自訂了一個串連圖靈機器人API的網路測試類別:package com.yayun.chatrobot.utils;import
Time of Update: 2015-09-02
標籤:leetcode math Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the