原创 styles.xml中的colorPrimary、colorPrimaryDark、colorAccent

http://blog.csdn.net/u013718120/article/details/51860471

原创 android利用隱式intent跳轉界面

 AndroidManifest.xml文件中,下面紅色部分的內容不可少 <activity android:name=".LoginActivity"> <intent-filter> <action a

原创 狀態欄背景顏色

查閱資料據說狀態欄文字顏色默認白色,難以改變(據說小米和魅族有文檔可以改) 這樣狀態欄想把背景設置爲白色的時候文字就看不見了 替代方案: 1、StatusBarUtil.setTranslucent(this, 100);//Statu

原创 aapt.exe finished with nonzero exit value 1

在android studio開發app,在設置icon的時候不知怎麼回事出現了:……aapt.exe finished with nonzero exit value 1 解決方法: 1、build -> clean project

原创 android studio中requestWindowFeature(Window.FEATURE_NO_TITLE)隱藏標題欄失效的解決方案

 解決方法來自http://blog.csdn.net/liuzhidong123/article/details/7818531博客的評論中,該博客介紹了多種隱藏標題欄的方法 解決方法:創建的activity默認繼承了AppCom

原创 Android 實現點擊按鈕獲取驗證碼 60秒後重新獲取效果

http://blog.csdn.net/tiramisu_ljh/article/details/47395951

原创 Android App 沉浸式狀態欄解決方案

參見:  http://laobie.github.io/android/2016/03/27/statusbar-util.html http://laobie.github.io/android/2016/02/15/status-

原创 android button自定義觸摸前以及觸摸時的樣式

1、在drawable下新建button_selector.xml,內容爲: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.

原创 android實現退出時關閉所有activity

來自郭霖《第一行代碼》 1、新建ActivityCollector類,代碼如下: public static List<Activity> activities = new ArrayList<Activity>(); public

原创 android studio 主線程中訪問網絡,遇到android.os.NetworkOnMainThreadException

在android studio中訪問網絡的時候遇到了如下錯誤: 08-03 13:22:45.701 9065-9065/com.vrphogame.thyroidapp0802 E/AndroidRuntime: FATAL EXC

原创 centos6.5下載地址

http://www.linuxdown.net/CentOS/2014/0928/3371.html

原创 相對佈局的各個位置代碼

來自李剛《android瘋狂講義(第三版)》一書,第56頁 點贊 收藏 分享 文章舉報 No One 發佈了23 篇原創文章 · 獲贊 22 · 訪問量 8萬+ 私信

原创 android editText 自定義爲圓角矩形背景

1、在drawable下新建abc.xml文件,內容爲: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/a

原创 完美的代價

// SmallHuiWen.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #

原创 c++ 字符串分割函數

//字符串分割函數 vector split(string str, const string pattern) { string::size_type pos; vector result; str +