不小心修改了/etc/fstab文件,无法启动如何处理
2010-01-11 10:06
344 查看
在onCreate中无法通过getHeight方法获取View的宽高。我们可以通过MeasureSpec实现。
int w = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.UNSPECIFIED);
int h = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.UNSPECIFIED);
textView.measure(w, h);
int width =textView.getMeasuredWidth();
int height =textView.getMeasuredHeight();
MeasureSpec类详解
int w = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.UNSPECIFIED);
int h = View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.UNSPECIFIED);
textView.measure(w, h);
int width =textView.getMeasuredWidth();
int height =textView.getMeasuredHeight();
MeasureSpec类详解
相关文章推荐
- 不小心修改了/etc/fstab文件,无法启动如何处理
- [转载]不小心修改了/etc/fstab文件,无法启动如何处理
- linux中/etc/fstab文件删除或修改了,导致系统无法启动
- linux中/etc/fstab文件删除或修改了,导致系统无法启动
- Linux修改fstab文件后 系统无法启动的解决方法
- Linux下修改fstab文件造成系统无法启动解决一例
- 如何处理 windows中hosts文件无法修改,解决方式操作简单方便
- /etc/fstab文件编辑错误卖到无法正常启动Linux
- 【故障处理】修改主机名导致oracle实例无法启动暨如何修改hostname
- linux(ubuntu) 系统修改/etc/fstab文件后无法进入系统的解决方法
- linux(ubuntu) 系统修改/etc/fstab文件后无法进入系统的解决方法
- Linux 无法修改/etc/fstab内容 (去除fstab文件只读属性)
- linux下修改fstab文件,造成系统无法启动
- Linux下修改fstab文件造成系统无法启动解决
- /etc/hosts 文件引起的监听无法启动的处理过程 推荐
- 修改/etc/fstab文件后无法登录系统
- linux下fstab文件修改后,系统无法启动
- 如何在Linux单用户模式下修改fstab文件
- Linux修改fstab引起系统无法启动问题的解决方法
- fstab修改有误导致无法启动的解决方法