1. download gradle file
2.export gradle-2.2.1/bin/ to path
3.test ./gradle -v
2015年1月21日 星期三
android studio 測試
step 1./src/.
建立test com example app等資料夾
step 2. build.gradle
sourceSets {
instrumentTest.setRoot('src/test')
}
step 3. "Sync Project with Gradle Files"
Tool -> Android ->Sync Project with Gradle Files
如果已經有test 資料夾他就不會當作source test
中文參考
http://yrulee.logdown.com/posts/233710-android-studio-start-with-unit-test
Unit Test參考
Unit Test
建立test com example app等資料夾
step 2. build.gradle
sourceSets {
instrumentTest.setRoot('src/test')
}
step 3. "Sync Project with Gradle Files"
Tool -> Android ->Sync Project with Gradle Files
如果已經有test 資料夾他就不會當作source test
中文參考
http://yrulee.logdown.com/posts/233710-android-studio-start-with-unit-test
Unit Test參考
Unit Test
2014年12月14日 星期日
android 開發 logo
//show 像gmail鍵號
actionBar.setDisplayHomeAsUpEnabled(true);
//show logo
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setDisplayUseLogoEnabled(true);
actionBar.setLogo(R.drawable.icon);
actionBar.setDisplayShowTitleEnabled(false); //optional
actionBar.setDisplayHomeAsUpEnabled(true);
//show logo
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setDisplayUseLogoEnabled(true);
actionBar.setLogo(R.drawable.icon);
actionBar.setDisplayShowTitleEnabled(false); //optional
2014年11月19日 星期三
訂閱:
文章 (Atom)