
api
Huge_Xiaole
当你回眸,来时的路一马平川
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
scrollview 显示在顶部
不解释 肯定用的到 就是在scrollview里面的第一个控件,设置 android:focusable=”true” android:focusableInTouchMode=”true” 就是这么简单转载 2018-01-03 10:17:52 · 1641 阅读 · 1 评论 -
CountDownTimer倒计时 很简单很实用
这个很简单 就直接上代码了 没什么解释的 就是为了记住这个APIpublic class MainActivity extends AppCompatActivity {private TextView textView; private CountDownTimer downTimer; private long time=100*1000;//倒计时的总时间 ms @Override prot原创 2017-12-27 20:13:13 · 2283 阅读 · 0 评论 -
ARouter使用时 要把instant run 关了切记 !切记!!!
Android Studio使用了 instant run ,ARouter的跳转会失效,这种情况下我们需要开init之前,调用openDebug。ARouter.openDebug()只是将debuggable这个标记置为了true ,仅限于debug环境,正式版本有安全风险,不建议标记;...原创 2018-05-10 18:45:22 · 2153 阅读 · 1 评论 -
关于 new FileOutputStream(file) 异常问题 :FileNotFoundException
在创建文件输出流时 一定得保证 文件夹! 文件夹! 文件夹! 存在。 即在 newFileOutputStream(file);之前 先调用 mkdirs()方法: 创建代码如下: File foder = new File(FileUtils.getRootDirectory()+ "/updateVersion/"); if (!foder.exists()) { fo...原创 2019-04-18 12:01:49 · 10594 阅读 · 0 评论