- 博客(5)
- 收藏
- 关注
转载 eclipse项目迁移到android studio(图文最新版)
前言 最近Android studio(下文简称AS)官方发布了正式版,目前火得不行。个人认为主要是因为android是google自家的产品,AS也是他自己搞的IDE,以后的趋势android开发肯定会用AS,至于eclipse的adt插件是否继续更新就不可而知了。最近我也在android官网找了一下集成好的adt-bundle,但没有找到,可能是路径变了(搜索也没有找到)或者是真的为了支
2015-11-25 11:32:32 2384
转载 Android屏幕大小适配问题解决
一、一些基本概念 1、长度(真实长度):英寸、inch 2、分辨率:density 每英寸像素数 dpi(密度) 3、像素:px 4、dip的公式:px /dip=dpi/160 所以 dip 类似于英寸、长度(dp=dip,sp类似于dip) dip=160*inch dip= 160/dpi * px 当dip一定时,dpi 越大,px就越大 5、广义分辨率=长px*宽px
2015-11-24 15:30:36 924
原创 android游戏开发初学之SurfaceView绘制图片
直接贴代码 图片的基类 package com.learn.swl.game; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Point; /** * 精灵,图片的基类 * Created by ADM on 2015/11/18. */ public c
2015-11-18 09:43:56 918
原创 android游戏开发初学之SurfaceView绘制界面
绘制界面需要先锁定一个画布,创建画笔,绘制完成之后需要解锁画布并提交 package com.learn.swl.game; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import an
2015-11-17 16:56:41 487
原创 android游戏开发初学之SurfaceView创建
首先我们先来看下官方API对SurfaceView的介绍 SurfaceView的API介绍 Provides a dedicated drawing surface embedded inside of a view hierarchy. You can control the format of this surface and, if you like, its size; th
2015-11-17 14:25:09 820
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人