原创 GridView 常用屬性

<?xml version="1.0" encoding="utf-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" andro

原创 textView跑馬燈效果實現

自定義一個MyMarqueeTextView extends TextView,重寫他的三個構造方法,還有要重寫isFocused方法,並返回true { public AlwaysMarqueeTextView(Context co

原创 activity動畫的調用

轉自:http://blog.sina.com.cn/s/blog_3e333c4a0101a040.html 關於 overridePendingTransition()使用  標籤: overridependingtrans 實

原创 webView學習

https://blog.csdn.net/villa_mou/article/details/78728417 https://jiandanxinli.github.io/2016-08-31.html

原创 for循環的小技巧

有時候在遍歷for循環組裝字符串時,會在最末尾也加上一個分隔符,這樣就需要額外的進行處理,這裏教大家一個小技巧,規避掉最後一個分隔符。 boolean needSeperate = false; for (String tag

原创 eclipse問題

gen already exists but is not a source folder. Convert to a source folder or rename it的錯誤。     遇到這個問題的解決方法:  1. 右鍵

原创 viewPager+fragment阻止預加載

轉自:http://www.2cto.com/kf/201501/368954.html 在項目中,都或多或少地使用的Tab佈局,所以大都會用到ViewPager+Fragment,但是Fragment有個不好或者太好的地方。例如你在Vi

原创 我的android項目架構

項目架構: 通用模塊: com.zondy.commoncom.zondy.common.base//通用基礎模塊包com.zondy.common

原创 android 常用代碼

文檔格式(1.標題格式:標題2;2.字體格式:arial;3.字體大小:正文-中) 1. 代碼中爲textView設置drawableleft a. 在佈局文件中設置: <span style="font-size:18px;">an

原创 tcp、udp、http、socket

網絡結構: 網絡由下往上分爲物理層、數據鏈路層、網絡層、傳輸層、會話層、表示層和應用層。 TCP/IP協議組: TCP/IP是個協議組,可分爲三個層次:網絡層、傳輸層和應用層。 在網絡層有IP協議、ICMP協議、ARP協議、RAR

原创 android離線緩存

轉自:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/1209/2136.html 離線緩存就是在網絡暢通的情況下將從服務器收到的數據保存到本地,當網絡斷開之後直接讀

原创 eclipse設置

1. 全局編碼格式爲utf-8 轉自:http://jingyan.baidu.com/article/851fbc37c09c2d3e1f15aba9.html  查看原網頁,有圖文對照 1. Window -> Preferences

原创 聊一聊MD5

轉自:http://www.weixuehao.com/archives/474 MD5是什麼 message-digest algorithm 5(信息-摘要算法)。經常說的“MD5加密”,就是它→信息-摘要算法。 在下載一下東

原创 android 爲textView設置selector

資源文件: selector_text_white_gray.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.andro

原创 MapGis加載及使用方法

地圖加載順序  * ① loginfo:地圖文件存在/mnt/sdcard/MapGIS/map/wuhan/wuhan.xml  * ② logi