- 博客(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
2341
多点触控显示
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
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人