Time of Update: 2016-07-22
標籤:xml android import android.content.Context;import android.text.TextUtils;import android.util.Xml;import com.webjet.yzqg.domain.BaseDocs;import com.webjet.yzqg.domain.UnitDTO;import or
Time of Update: 2016-07-22
標籤://擷取網路類型 2G/3G/WIFI public String getNetworkType(){ String mNetWorkType = ""; ConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo =
Time of Update: 2016-07-22
標籤:Xamarin.iOS項目提示error
Time of Update: 2016-07-22
標籤: //自訂布局,繼承於UICollectionViewLayout#import <UIKit/UIKit.h> @class WaterFlowLayout; @protocol WaterFlowLayoutDeleagre ; @interface WaterFlowLayout : UICollectionViewLayout @property
Time of Update: 2016-07-22
標籤:對於Spring MVC的DispatcherServlet配置方式,傳統的是基於XML方式的,也就是官方說明的XML-based,如下:<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class>
Time of Update: 2016-07-22
標籤:最近在做公眾號開發,在網上找了個例子實現擷取Access_token的值,需要讀取xml檔案,結果就遇到這個問題然後我引入Server的命名空間很明顯這樣引用不對網上說 Server.MapPath()的命名空間: System.Web.HttpContext.Current.Server.MapPath,可是我添加引用找不到。最後我這樣解決的Server.MapPath()是把相對路徑轉換成絕對路徑Server.MapPath找不到命名空間,解決辦法
Time of Update: 2016-07-22
標籤:前言: 網上目前react-native的教程較少,加上許多文章還是用的ES5(2015年6月發行ES6標準),有些細節很難找到答案,這裡把遇到的問題做一個分享,讓學習者盡量少踩坑。 出現問題:1.怎麼擷取ViewPager控制項2.怎麼定義函數,使用setPage(),去跳轉頁面。3.在使用了bind()的情況下,函數怎麼傳參。 解決方案:步1.使用ref擷取真實的DOM節點,類似去給控制項設定id。<ViewPagerAndroid
Time of Update: 2016-07-22
標籤: 今天,測試給我提了一個BUG,說移動端輸入emoji表情無法提交。很早以前就有思考過,手機IME裡內建的emoji表情,應該是某些特殊字元。既然是字元,那應該都能提交才對,可是為啥會被卡住呢?搜了一下,才發現,原來emoji用到的字元是4位元組的utf-16(utf-16有2位元組和4位元組兩種編碼),而我們的資料庫是採用的utf-8,並且最大隻允許3位元組的字元。這樣衝突就產生了,表單因為這些emoji字元的存在無法提交。 找到原因之後,接下來就要考慮解決方案了。目前考慮到的兩種方
Time of Update: 2016-07-22
標籤: 除了上面我們談過的控制項外,其實還有非常多其他的。我們談的基本都是非常基礎的,因此其他的控制項還需要學習者在後面製作中進行學習。除了這些組件外,我們還需要有一些東西把這些組件包含在內,這東西就是我們所說的布局。 Android中有四種基本的配置模式(Layout):LinearLayout, RelativeLayout, TableLayout, FrameLayout ———
Time of Update: 2016-07-22
標籤:http://blog.csdn.net/luoxinwu123/article/details/8019547面向組件思想是在軟體規模擴大,複雜度上升的背景下,以物件導向為基礎而提出的一種軟體設計思想。可以把它理解為一種更粗粒度的物件導向,其粒度一般大於對象,但具體要到什麼程度,又可以根據實際情況來決定。這種思想以組件為基礎,強調“服務”的概念。面向組件具有以下特點:低耦合性:組件之間一般互不依賴,一個組件只需要知道另一個組件的“名字”就可
Time of Update: 2016-07-22
標籤:> Should I use a AntiFreeze component on every form I have a TIdTCPClient > component? Or is one enough to handle the whole Application? One is enough. According to the Indy help file, -------- Only one
Time of Update: 2016-07-22
標籤:LinearLayout線性布局 LinearLayout是一種線型的布局方式。LinearLayout版面配置容器內的組件一個挨著一個地排列起來:不僅可以控制個組件橫向排列,也可控制各組件縱向排列。通過orientation屬性設定線性排列的方向是垂直(vertical)還是縱向(horizontal)。 我們下面通過XML布局和Java代碼布局兩種方式分別舉例:一、XML方式布局 1、建立一個空白Activity 2、開啟“res/l
Time of Update: 2016-07-22
標籤:<meta name="viewport"content="width=device-width,minimum-scale=1.0, maximum-scale=2.0" /> [html] view
Time of Update: 2016-07-22
標籤: //擷取螢幕大小,以合理設定 按鈕 大小及位置 DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); int width = dm.widthPixels; int height = dm.heightPixels; //自訂layout組件 RelativeLayout layout = new
Time of Update: 2016-07-22
標籤:View在螢幕上顯示出來要先經過measure(計算)和layout(布局).1、什麼時候調用onMeasure方法? 當控制項的父元素正要放置該控制項時調用.父元素會問子控制項一個問題,“你想要用多大地方啊?”,然後傳入兩個參數——widthMeasureSpec和heightMeasureSpec.
Time of Update: 2016-07-22
標籤:1、UIApplication(應用程式執行個體)擷取方式:[UIApplication sharedApplication]詳細:http://www.cnblogs.com/hissia/p/5678518.html 2、NSNotificationCenter(訊息中心)擷取方式:[NSNotificationCenter defaultCenter]常用的通知模式 3、NSFileManager(檔案管理)擷取方式:[NSFileManager
Time of Update: 2016-07-22
標籤:<LinearLayout android:layout_height ="match_parent" android:layout_width="match_parent"
Time of Update: 2016-07-22
標籤:一、分頁欄建立一個新的項目,Subclass of的值選中UIViewController,然後在storyboard中刪除根視圖,在右下方拖出一個Tab Bar Controller新增分頁,只需從右下方拖出一個普通的View Controller,按住滑鼠右鍵從分頁欄控制器拖動到新視圖控制器上釋放,在彈出面板中的Relationship Segue標題下選中view controllers,使用這些分頁要給他們建立Cocoa Touch Class
Time of Update: 2016-07-21
標籤:主要練習了自訂樣式和主題,繼承android系統預設的樣式並修改,練習xml定義淡入淡齣動畫anim/fade_in.xml<?xml version="1.0" encoding="utf-8"?><alpha xmlns:android="http://schemas.android.com/apk/res/android" android:duration="3000" android:fromAlpha="0.0"
Time of Update: 2016-07-21
標籤: 這一章,我們來說說ListView這個組件。ListView是一個非常常用,並且有用的組件。可能說說還沒有建立對該組件的印象。比如我們的歌單便可以用這個組件進行實現。