- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 对textview进行监听,统计edittext的字数
EditText edtInto = (EditText) findViewById(R.id.new_coupon_intro); edtInto.setEnabled(true); txtView = (TextView) findViewById(R.id.new_coupon_txt_count); edtInto.addTextChangedListener(new T
2011-12-19 11:34:05
478
原创 对EditText进行监听,字数不超过12
EditText edtName = (EditText) findViewById(R.id.new_coupon_name); edtName.setEnabled(true); edtName.addTextChangedListener(new TextWatcher() { private CharSequence temp; private int sele
2011-12-19 11:31:05
482
原创 地图中的定位以及启用指南针
MyLocationOverlay mylocTest = new MyLocationOverlay( StoreRouter.this, mapView); mylocTest.enableMyLocation();// 启用定位 mylocTest.enableCompass();// 启用指南针 mapView.getOverlays().add(myl
2011-12-19 11:13:30
660
原创 DatePickerDialog的使用
DateFormat fmtDateAndTime = DateFormat.getDateInstance(); Calendar dateAndTime1 = Calendar.getInstance(Locale.CHINA); Calendar dateAndTime2 = Calendar.getInstance(Locale.CHINA); DatePickerDialog
2011-12-19 11:04:09
260
原创 把bitmap转为圆角的
public static Bitmap toRoundCorner(Bitmap bitmap, int pixels) { Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(outp
2011-12-19 11:02:12
335
原创 android中获取地图路径
GeoPoint p = new GeoPoint((int) (store.coordinate.latitude * 1E6), (int) (store.coordinate.longitude * 1E6)); MKPlanNode start = new MKPlanNode(); end.pt = p; start.pt = location; mMK
2011-12-19 11:00:06
397
原创 android照相机上传照片和相册
public void onClick(View v) { // TODO Auto-generated method stub final CharSequence[] items = { "相册", "拍照" }; AlertDialog dlg = new AlertDialog.Builder( NewCouponAppliedActivity.
2011-12-19 10:59:55
545
原创 bitmap的缩放
private Bitmap zoom(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); // 设置想要的大小 int newWidth = 208; int newHeight = 208; // 计算缩放比例 float scaleWidth
2011-12-19 10:59:33
399
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人