自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (4)
  • 收藏
  • 关注

原创 Android4.4之WebView LayoutAlgorithm.SINGLE_COLUMN失效问题

webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);这个属性可以让webview只显示一列,也就是自适应页面大小 不能左右滑动,但在使用中发现,只针对4.4以下有效,因为4.4的webview内核改了,Google也在api中说了,要么改html样式,要么改变WebView;本人不才,只找到了第一种,在ht

2014-07-08 11:46:04 2269

多点触控显示

import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.os.Bundle; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.Window; import android.widget.ImageView; public class MyMultitouchDemo extends Activity { private static final int SCALEBASIC = 3 ;// 调整的比率 private int imageX = 0 ; // 计算图片的X轴 private int imageY = 0 ; // 计算图片的Y轴 private SurfaceHolder holder = null ; private int screenWidth = 0 ; private int screenHeight = 0 ; private int imageWidth = 0 ; private int imageHeight = 0 ; private Bitmap bitmap = null ;

2013-07-30

Intent深入

1、IntentCaseProject(打开网页).rar 2、IntentCaseProject(拨打电话) 3、IntentCaseProject(直接呼出) 4、IntentCaseProject(发送短信) 5、IntentCaseProject(发送彩信) 6、IntentCaseProject(发送邮件) 7、IntentCaseProject(显示通讯录) 8、IntentCaseProject(调用ContentProvider) 9、IntentCaseProject(创建选择器)

2013-07-30

android触摸事件 TouchProject

1、TouchProject(基本) 2、TouchProject(绘图)

2013-07-30

android仿真翻页

只需将txt文件放入sd卡根目录,运行即可看书

2013-07-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除