![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
iteye_18456
这个作者很懒,什么都没留下…
展开
-
Android单位:dip,dp,sp,pt,px
1.定义px(像素):屏幕上的点。pt(磅):1/72英寸。dp(与密度无关的像素):一种基于屏幕密度的抽象单位。dip:与dp相同,多用于Google示例中。sp(与刻度无关的像素):与dp类似,但是可以根据用户的字体大小首选项进行缩放。2. 使用dip: device independent pixels(设备独立像素)。显示效果因不同硬件设备而不同,为了支持W...原创 2011-01-04 21:18:07 · 100 阅读 · 0 评论 -
Ubuntu下配置Android开发环境
1.先安装Eclipse,用Ubuntu软件中心更新就行了 2.下载开发包http://dl.google.com/android/android-sdk_r08-linux_86.tgz 3. 安装ADT插件https://dl-ssl.google.com/android/eclipse ...原创 2011-02-25 20:35:10 · 70 阅读 · 0 评论 -
Android 检测SD卡是否可用
if (Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED)) { // sd card 可用 }else { // 当前不可...原创 2011-03-17 08:36:02 · 433 阅读 · 0 评论