編輯:關於Android編程
把github上的PagerSlidingTabStrip稍作修改:
tab的文字顏色選中變色(原版文字不變色)
栗子:http://download.csdn.net/detail/onlyonecoder/7722021
PagerSlidingTabStrip 自定義屬性列表:
pstsIndicatorColor Color of the sliding indicatorpstsUnderlineColor Color of the full-width line on the bottom of the viewpstsDividerColor Color of the dividers between tabspstsIndicatorHeightHeight of the sliding indicatorpstsUnderlineHeight Height of the full-width line on the bottom of the viewpstsDividerPadding Top and bottom padding of the dividerspstsTabPaddingLeftRight Left and right padding of each tabpstsScrollOffset Scroll offset of the selected tabpstsTabBackground Background drawable of each tab, should be a StateListDrawablepstsShouldExpand If set to true, each tab is given the same weight, default falsepstsTextAllCaps If true, all tab titles will be upper case, default true
修改後加了一個屬性 selectedTabTextColor
如果不設置 默認和 滑動指示器顏色(pstsIndicatorColor)一致
下圖效果的代碼:

Android Menu
OptionsMenu(選項菜單)1.重寫Activity的onCreateOptionsMenu(Menu menu)方法,在該方法裡調用Menu對象的方法來添加菜單項
Activity基礎篇整理
一,Activity生命周期相信不少朋友也已經看過這個流程圖了,也基本了解了Activity生命周期的幾個過程,我們就來說一說一些常見操作的生命周期執行情況吧(1) 啟動
Android接收和發送短信處理
關於短信接收處理方面,當前已經有一些app做的比較好了,比如發給手機發驗證碼驗證的問題,很多app在手機接收到驗證碼後,不需要輸入,就直接可以跳過驗證界面,這就是用到了對
Android http文件上傳-本地+服務器一條龍分析
本地: 先看下項目結構 MainActivity.java oldProcess) { Message msg = handler.obtainMessage()