
安卓
小学徒王
这个作者很懒,什么都没留下…
展开
-
安卓自定义view-(view 绘制工程分析)
一、view 的基础知识0、view 的基础知识android 中view是所有控件基类。不管是简单的TextView 还是像LinearLayout的viewgroup等布局控件都直接或间隔继承view。view的位置参数,单view都是附属在ViewGroup上显示看下google 开发文档对view 介绍This class represents the basic bu...原创 2020-01-13 15:45:32 · 324 阅读 · 0 评论 -
安卓自定义控件 - 网格分页控件
https://xiaozhuanlan.com/topic/5841730926https://github.com/GcsSloop/pager-layoutmanager原创 2020-01-04 10:50:26 · 283 阅读 · 0 评论 -
使用RecyclerView实现多行水平分页的GridView效果和ViewPager效果
使用RecyclerView实现多行水平分页的GridView效果和ViewPager效果原创 StoneHui. 发布于2015-07-10 19:18:14 阅读数 36268 收藏展开前些天看到有人在论坛上问这种效果怎么实现,没写过也没用过这个功能,网上查了一下,大多是使用ViewPager+GridView或者HorizontalScrollView+GridView实现,不过貌似...原创 2020-01-03 15:22:51 · 1022 阅读 · 0 评论 -
安卓编译失败汇总
1.V7 包编译错误原创 2019-12-30 11:27:58 · 168 阅读 · 0 评论 -
AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
在okhttp3 中response.body().string() 只能使用一次public final String string() throws IOException { BufferedSource source = this.source(); String var3; try { Charset charset = Util.bom...原创 2019-11-13 14:40:56 · 1085 阅读 · 0 评论 -
安卓 Handler和runOnUiThread 比较
在Android开发过程中,常需要更新界面的UI。而更新UI是要主线程来更新的,即UI线程更新。如果在主线线程之外的线程中直接更新页面显示常会报错。抛出异常:android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch it...原创 2019-11-13 09:19:13 · 864 阅读 · 0 评论