原创 相對佈局

compile 'com.android.support:percent:22.2.0'爲依賴添加在APP下的build.gradle中 在dependencies{compile 'com.androi

原创 相對佈局

compile 'com.android.support:percent:22.2.0'爲依賴添加在APP下的build.gradle中 在dependencies{compile 'com.android.support:percent

原创 Android中的進程有哪些,說出他們的優先級

前臺進程. a. 進程中包含處於前臺的正與用戶交互的activity; b. 進程中包含與前臺activity綁定的service; c.進程中包含調用了startForeground()方法的service; d.進程中包含正在執行on

原创 PercentRelativeLayout百分比佈局

AndroidStudio 中我們要用到PercentRelativeLayout的話首先要在build.gradle文件中添加一行代碼  爲  compile 'com.android.support:percent:23.1.0'或

原创 Eclipse轉到Android studio裏

首先我們右鍵點擊選中Export選項,由於是要轉成Android項目所以選中Android ,同時出現兩個選項選中第二個Generate Gradle build files,之所以選中他是因爲我們在Android Studio中需要這個

原创 fragment

fragment的出現爲了同時適應手機和平板的超大屏fragment有自己的生命週期是activity的碎片化依附於activity存 在,不能獨立存在受activity的之間影響,fragment的生命週期是,onattach,oncr

原创 SVN忽略文件

<ignored path=".gradle/" />          <ignored path=".idea/" />          <ignored path="gradle/" />   

原创 try catch finally運行流程

try : 寫可能報錯的語句  先執行這一語句 catch: 捕獲出異常 並打印出來 finally: finally爲一定執行的語句塊,