今天在动态写布局的时候,动态new了一个TextView,然后给其设置padding不起作用。
后来,在这里查到,tv.setPadding()要放在setBackgroundResource()后面。
tv.setBackgroundResource(R.drawable.layer_textview); tv.setPadding(5,0,0,0);
这样一来就解决了问题。
今天在动态写布局的时候,动态new了一个TextView,然后给其设置padding不起作用。
后来,在这里查到,tv.setPadding()要放在setBackgroundResource()后面。
tv.setBackgroundResource(R.drawable.layer_textview); tv.setPadding(5,0,0,0);
这样一来就解决了问题。
使用grid来控制X轴Y轴文字被遮挡的问题
通过配置opition的url属性,来配置预览大图的url
通过配置opition的url属性,来配置预览大图的url
通过配置opition的url属性,来配置预览大图的url
Add the following to your nuxt.config.js file under the build section.
下面我用yum安装redis,并设置远程链接演示给大家
推荐使用~,只会修复版本的bug,比较稳定
yarn config set proxy http://127.0.0.1:8080
提起 npm,大家第一个想到的应该就是 npm install 了,但是 npm install 之后生成的 node_modules 大家有观察过吗?package-lock.json 文件的作用大家知道吗?除了 dependencies 和 devDependencies,其他的依赖有什么作用呢?接下来,本文将针对 npm 中的你可能忽略的细节和大家分享一些经验 。
所以通过这次使用,我确定了,一定要禁止使用cnpm,npm和yarn也要只用一个。