上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 49 下一页
摘要: CSS的定位属性有三种,分别是相对定位、绝对定位、固定定位。 1. 相对定位 //占坑定位,不脱标。还占着标准流里的原来位置,只是参照自己原来位置进行偏移。 定义:相对于自己原来的位置进行位置调整。一般用于位置微调。 用途: 1)微调自己的位置 2)做子元素绝对定位的参考,子绝父相 2. 绝对定位 阅读全文
posted @ 2019-04-24 15:18 yongfengnice 阅读(942) 评论(0) 推荐(0)
摘要: 方法1:祖先加高法 //不常用,不能适应页面的快速变化 如果一个元素要浮动,那么它的祖先元素一定要有高度。有高度的盒子,才能关住浮动。 只要浮动在一个有高度的盒子中,那么这个浮动就不会影响后面的浮动元素。所以就是清除浮动带来的影响了。 方法2:clear:both; //最简单,表示自己的内部元素, 阅读全文
posted @ 2019-04-22 21:24 yongfengnice 阅读(542) 评论(0) 推荐(0)
摘要: long number = 1234567890; NumberFormat decimalFormat = new DecimalFormat("###,###,###,###,###"); String numStr = decimalFormat.format(number);//numStr的结果为 1,234,567,890 阅读全文
posted @ 2019-04-22 14:48 yongfengnice 阅读(771) 评论(0) 推荐(0)
摘要: editText = findViewById(R.id.edit_text); editText.setFilters(new InputFilter[]{editText.getFilters()[0], mInputFilter}); //这里的editText.getFilters()[0]是为了保留上面的xml设置的LengthFilter同时有效 InputFilter mIn... 阅读全文
posted @ 2019-04-19 18:37 yongfengnice 阅读(4428) 评论(0) 推荐(1)
摘要: 即设置textCursorDrawable为@null,这样光标就默认显示字体的颜色,也可以设置一个自定义的drawable。 阅读全文
posted @ 2019-04-18 16:12 yongfengnice 阅读(5690) 评论(0) 推荐(0)
摘要: Web前端css知识点的简单概括如下,方便记忆。 1.字体,背景(font-style,font-weight,font-size/line-height,font-family。。。background-color,background-image,background-position。。。) 阅读全文
posted @ 2019-04-16 16:29 yongfengnice 阅读(264) 评论(0) 推荐(0)
摘要: public class CrashApp extends Application { public static final String TAG = "CrashApp"; @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); new ... 阅读全文
posted @ 2019-04-11 16:17 yongfengnice 阅读(3942) 评论(0) 推荐(0)
摘要: public class UploadImageBody extends RequestBody { private File mFile; private String mContentType; private ProgressListener mListener; @Override public MediaType contentType() { retu... 阅读全文
posted @ 2019-04-03 19:08 yongfengnice 阅读(790) 评论(0) 推荐(0)
摘要: public void showWebViewContent(Context context, String content) { if (!TextUtils.isEmpty(content)) { Matcher matcher = Pattern.compile("]*>([\\s\\S]*)").matcher(content); if (matcher.fin... 阅读全文
posted @ 2019-03-27 18:29 yongfengnice 阅读(4586) 评论(0) 推荐(0)
摘要: gradle文件的配置: defaultConfig{ //定义一个String类型的变量,变量名为APP_ID_2,变量值取至于APP_ID_2_VALUE buildConfigField "String", "APP_ID_2", "\"${APP_ID_2_VALUE}\"" manifestPlaceholders = [ APP_ID:"${A... 阅读全文
posted @ 2019-03-18 16:16 yongfengnice 阅读(1038) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 49 下一页