- 博客(10)
- 资源 (1)
- 收藏
- 关注
转载 击败边框:带border的百分比布局
响应式Web设计经常需要我们通过百分比设置组件宽度。如果我们不考虑边框,那么很容易就可以实现,但如果你给每一列以及总宽度都采用百分比设置,那这个时候固定的边框大小就会出来捣乱。下面我们将看到一组方法去解决这个问题,你会学到如何创建一个流式布局,而不用担心额外的边框以及内边距。假设我们需要一个五列的布局。我们要考虑的第一件事就是外边距(margins).假设所有的列都需要4%的外边距,我们需
2017-11-29 19:57:14 452
转载 处理Gradle中的这个文件下载慢的问题
修改项目根目录下的文件 build.gradle :buildscript { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} }}allprojects { repositories { maven{ url '
2017-11-27 15:06:08 340
转载 Bitmap oom
2down voteI had the similar problem while displaying high resolution images. I have searched and applied all the android bitmap solutions given in http://developer.android.com/training/dis
2017-11-25 14:15:15 145
转载 Glide 内存溢出
This helped me remove the leaks when using an adapter: Glide.with(context) .load(imageURL)) .asBitmap() .dontAnimate()
2017-11-25 11:53:39 1573
转载 How to configure MailEnable to send emails on Google Cloud Platform instance?
up vote2down voteacceptedDisclaimer: I am a product manager on Google Cloud Platform (though not the products discussed here specifically).Note that outgoing connections on port
2017-11-18 11:36:00 335
转载 Python Unable to install any application Error: Microsoft.VC90.CRT. version= "9.0.30729.6161"
Method 1: Refer the below link to download and install the latest version of Microsoft Visual C++ 2008 Redistributable and check. Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)h
2017-11-15 14:25:39 1874
转载 处理程序 在其模块列表中有一个错误模块“ManagedPipelineHandler”
1.要以管理员的身份运行DOS窗口。复制右边的目录 C:\Windows\Microsoft.NET\Framework\v4.0.30319已经进入 C:\Windows\Microsoft.NET\Framework\v4.0.30319 此目录然后执行 aspnet_regiis.exe -iok,这时的IIS就可以运行 .net 4.0 部署的网站了.
2017-11-15 11:29:56 5488
转载 ViewPager嵌套问题
import android.content.Context;import android.support.v4.view.ViewCompat;import android.support.v4.view.ViewPager;import android.util.AttributeSet;import android.view.View;import android.view.Vie
2017-11-13 10:18:45 152
转载 Android中重绘刷新界面之invalidate、postInvalidate和requestlayout的区别
自定义控件中经常用到重绘更新界面,今天我们就来看看重绘界面几个方法的异同。 1、invalidate实现界面重绘刷新但只能应用在主线程中,如果想用在子线程中就要配合handler一块使用。2、postInvalidate可以直接在子线程中调用重绘刷新界面。3、requestLayout当View确定自身已经不再适合现有的区域时,该View本身调用
2017-11-06 19:54:49 240
转载 Android自定义控件热身——View的坐标位置和大小详解
Android自定义控件热身——View的坐标位置和大小详解原创 2017年02月10日 11:20:47标签:Android /View坐标 /控件大小 /控件测量 /坐标位置1045转载请注明出处:http://blog.csdn.net/xiaohao0724/article/details/54965579在自定义控件中我
2017-11-06 19:51:11 505
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人