![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UI
seekting2013
这个作者很懒,什么都没留下…
展开
-
scaletype之centerInside,center,centerCrop,fitCenter之间的区别
一张图说明一切原创 2015-07-09 14:08:35 · 30478 阅读 · 9 评论 -
Fragment add 和replace的区别
FragmentTransaction transaction = mFragmentManager.beginTransaction(); transaction.replace(R.id.main_frame, mStartFragment, FragmentAction.Start.name()); transaction.replace(R.id.main_fr原创 2015-09-11 17:58:26 · 562 阅读 · 0 评论 -
android之getDimension、getDimensionPixelSize、getDimensionPixelOffset区别
大家都知道这三个方法都是返回dimen xml配好的像素值,它们之间有什么区别呢? 且看代码:(不用太详细看是怎么回事,只要对比它们之间的区别) public float getDimension(int id) throws NotFoundException { synchronized (mTmpValue) { TypedValue value原创 2015-12-18 12:24:46 · 998 阅读 · 0 评论 -
BitmapFactory Decode大小的时候需要获取所有的流文件吗?
BitmapFactory Decode大小的时候需要获取所有的流文件吗? thread { val str = "http://192.168.31.163/http/img/15H743-001.JPG" val url = URL(str) val option = BitmapFactory.Options()原创 2017-11-11 21:46:28 · 264 阅读 · 0 评论 -
Glide 显示视频缩略图及遇到的坑
Glide 显示视频缩略图及遇到的坑实现原理Glide支持视频格式的文件,但是在3.x里会有些欠缺。其底层是通过 MediaMetadataRetriever实现的。MediaMetadataRetriever拥有获取视频的第几帧的能力,Glide获取视频里的第n帧的代码如下:VideoBitmapDecoder.java@Overridepublic Bitmap decode(ParcelFi原创 2017-11-11 21:52:57 · 17890 阅读 · 6 评论 -
ConstraintLayuot学习
ConstraintLayuot学习ConstraintLayuot学习一. Constraints(条件约束)1.1 布局代码1.2 结果二. Chains链2.1 布局代码2.2 结果2.3 Chains链的三种形式2.3.1 spread形式截图代码注意2.3.2 spread_in形式截图代码2.3.3 packed形式截图代码注意...原创 2018-08-03 16:51:00 · 426 阅读 · 0 评论 -
如何让TextView自己滚动
如何让TextView自己滚动 <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="3" android:scrollbarStyle="outsideInset" ...原创 2019-10-10 15:31:00 · 308 阅读 · 0 评论