[TOC]
编写测试的目的是为了验证程序是否正确执行、行为无误及是否稳定可用。同时,拥有充分测试代码的项目易于维护,便于交接、团队协作。
| /** | |
| * 通过反射修改TabLayout Indicator的宽度(仅在Android 4.2及以上生效) | |
| */ | |
| private void setUpIndicatorWidth() { | |
| Class<?> tabLayoutClass = tabLayout.getClass(); | |
| Field tabStrip = null; | |
| try { | |
| tabStrip = tabLayoutClass.getDeclaredField("mTabStrip"); | |
| tabStrip.setAccessible(true); | |
| } catch (NoSuchFieldException e) { |
Note: < i=OS 5.1 use
prefs:. > 5.1 useapp-settings:
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| 1、编辑MySQL配置文件:my.ini | |
| 一般在MySQL安装目录下有my.ini即MySQL的配置文件。 | |
| 此配置文件最后添加一行: | |
| skip-grant-tables | |
| 保存退出编辑。 | |
| 2、然后重启MySQL服务 | |
| 在命令行下执行: | |
| net stop MySQL | |
| net start MySQL |