Time of Update: 2016-01-21
標籤: 實現了《android 群英傳》的TopBar的小執行個體。如下:記錄下來,方便下次查看。主要的原理是將2個Button和一個TextView組合在一個RelativeLayout之中。代碼如下。首先定義自訂屬性attrs.xml,也可能是先實現一個控制項,然後再抽象出一些屬性。<?xml version="1.0" encoding="utf-8"?><resources>
Time of Update: 2016-01-21
標籤:最近做項目的時候 將電腦版本升級到10.11.3 xcode‘升級到 7.2 但是在模擬器上邊進行資料請求的時候告訴我說網路哦有問題如下通過網路終於找到瞭解決的辦法 原來是ios9 採用了https所以需要進行配置一下下就可以了。推薦網址:http://segmentfault.com/a/1190000002933776
Time of Update: 2016-01-21
標籤:[[UIDevice currentDevice] setProximityMonitoringEnabled:YES]; //建議在播放之前設定yes,播放結束設定NO,這個功能是開啟紅外感應 //添加監聽[[NSNotificationCenter defaultCenter] addObserver:self &
Time of Update: 2016-01-21
標籤:虛擬機器無法啟動,提示HAXM未安裝原因在於電腦VT技術沒有開啟,網路上關於這方面的解決已經很多了,博主也是按著一樣的解決思路,發現BIOS已經開了,但是HAXM一直無法安裝成功,會提示VT還是沒有開啟,而自己明明已經把VT開啟了(博主的電腦是HP的,其他品牌電腦,大同小異)最後,發現是萬能的360把VT被屏蔽了。開啟360安全衛士-->安全保護中心-->安全設定-->核晶保護-->去管理-->關掉Intel-VT引擎保護開關重啟安裝即可參考:http://w
Time of Update: 2016-01-21
標籤:ASP.NET中application對象的用法本文導讀:Application對象是HttpApplicationState類的一個執行個體,Application狀態是整個應用程式全域的。Application對象在伺服器記憶體中儲存數量較少又獨立於使用者請求的資料。由於它的訪問速度非常快而且只要應用程式不停止,資料一直存在,我們通常在Application_Start的時候去初始化一些資料,在以後的訪問中可以迅速訪問和檢索。 一、Application對象的理解
Time of Update: 2016-01-21
標籤:1. Parcelable介面Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must also have a static field called CREATOR, which is an object implementing the Parcelable.Creator
Time of Update: 2016-01-21
標籤: 有時候我們需要在Activity的時候擷取控制項的寬和高來做一些操作,下面介紹三種擷取寬和高的方式:1. onWindowFocusChanged@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus)
Time of Update: 2016-01-21
標籤: SharedPreferences是Android中最容易理解的資料存放區技術,實際上SharedPreferences處理的就是一個key-value(鍵值對)SharedPreferences常用來儲存一些輕量級的資料。1、使用SharedPreferences儲存資料方法如下://執行個體化SharedPreferences對象(第一步) SharedPreferences mySharedPreferences=
Time of Update: 2016-01-20
標籤:1.FrameLayout:children按照從左上開始的順序排列,主要用於tabed
Time of Update: 2016-01-20
標籤:前言前幾篇說到一些HBuilder開發app的基礎教程,現在來說一下HBuilder開發app的痛點,或者說是上手的痛點,就是mui,如果你沒有研究mui就貿然的上手HBuilder,那你的開發過程是痛苦的,花一點時間研究下mui,對你之後開發app有很大的協助。網址教程再好,也會有疏漏的地方,還需要你仔細閱讀官方文檔,附地址:http://dcloudio.github.io/mui/initmui封裝了很多常用的頁面方法,都需要在init中設定,例如:1.和上拉載入,下拉重新整理配套的
Time of Update: 2016-01-20
標籤://// ViewController.m// 計算Label高度//// Created by 大歡 on 16/1/19.// Copyright © 2016年 bjsxt. All rights reserved.//#import "ViewController.h"@interface ViewController ()@end@implementation ViewController-
Time of Update: 2016-01-20
標籤://// ViewController.m// Label富文本//// Created by 大歡 on 16/1/19.// Copyright © 2016年 bjsxt. All rights reserved.//#import "ViewController.h"@interface ViewController ()@end@implementation ViewController-
Time of Update: 2016-01-20
標籤://// ViewController.m// 飛舞的UIView//// Created by 大歡 on 16/1/18.// Copyright © 2016年 bjsxt. All rights reserved.///********************************************************/#import "ViewController.h"#define SCREEN_WIDTH
Time of Update: 2016-01-20
標籤:在做登陸或者註冊的時候,軟鍵盤經常可能會擋住一些介面。我們需要在輸入完成之後隱藏軟鍵盤。在我們點擊空白處或者非EditText的地方來隱藏軟鍵盤。public class HomeActivity extends Activity { ...... @Override public boolean dispatchTouchEvent(MotionEvent ev) { if (ev.getAction() ==
Time of Update: 2016-01-20
標籤:- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ if ([tableView respondsToSelector:@selector(setSeparatorInset:)]) { [tableView
Time of Update: 2016-01-20
標籤:一,js中對象繼承js中有三種繼承方式1.js原型(prototype)實現繼承代碼如下:<SPAN style="<SPAN style="FONT-SIZE: 18px"><html> <body> <script type="text/javascript"> function Person(name,age){ this.name=name; this.age=age;
Time of Update: 2016-01-20
標籤: React Natvie的官方文檔的 Integrating with Existing Apps 已經很詳細地教我們如何將React Natvie整合到現在的Android項目。我根據官方文檔的步驟,在Windows上將React
Time of Update: 2016-01-20
標籤:MappingJacksonHttpmessageConverter錯誤 spring4.x
Time of Update: 2016-01-20
標籤:Unity3D Android手機開發環境配置Date:2014-01-01 07:091、配置eclipse環境:首先在官網下載安裝包:http://developer.android.com/sdk/index.html,點擊這個按鈕開始下載 進入下一頁,選擇對應你系統的版本,繼續下載。 32和64位版本千萬不能選錯了,如果不清楚就查看一下你的系統版本。 下載完成後就是類似這樣的包adt-bundle-windows-x86_64-201310
Time of Update: 2016-01-20
標籤:入職到今天有半年的時間了,感覺時間過的太快,自己的技術水平也沒有顯著的提高。覺得應該整理下iOS的知識體繫結構,按照知識體系詳細的學習。開啟 iOS Developer Library,之前一直哪裡有問題查詢的哪裡,都沒有仔細看過網站的結構。現在看才知道: iOS Frameworks 有4個部分Cocoa Touch Layer,Media Layer,Core Services Layer, Core OS Layer。之前一直傻傻分不清Cocoa Touch 和