自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(78)
  • 收藏
  • 关注

原创 Implicit Intent--含蓄的intent

通过intent调用打电话,打开地图、打开浏览器,创建邮件,创建事件的操作截图:代码package com.example.hellointent;import java.util.Calendar;import java.util.List;import org.apache.http.protocol.HTTP;import android.net.Uri;

2014-05-28 15:16:48 980

原创 android-文件存储

android:installLocation

2014-05-27 17:41:09 625

原创 canvas.save() canvas.restore() 作用

这里canvas.save();和canvas.restore();是两个相互匹配出现的,作用是用来保存画布的状态和取出保存的状态的。这里稍微解释一下,  当我们对画布进行旋转,缩放,平移等操作的时候其实我们是想对特定的元素进行操作,比如图片,一个矩形等,但是当你用canvas的方法来进行这些操作的时候,其实是对整个画布进行了操作,那么之后在画布上的元素都会受到影响,所以我们在操作之前调用

2014-05-23 15:13:15 745

转载 Drawable Mutations(Android Drawable 深入分析)

Drawable Mutations(Android Drawable 深入分析)这篇文章帮助你更好了解Android's drawables对象,这篇文章描述现象你可以不知道,但是当你遇到了该问题也许一两天也不一定找到解决方案。Android's drawables对编写程序是非常有用的。A Drawable通常是一个与view相关的插件后的画图容器。例如。一个aBitmapDr

2014-05-23 14:32:17 395

转载 Paint类介绍

/**       * Paint类介绍       *        * Paint即画笔,在绘图过程中起到了极其重要的作用,画笔主要保存了颜色,       * 样式等绘制信息,指定了如何绘制文本和图形,画笔对象有很多设置方法,       * 大体上可以分为两类,一类与图形绘制相关,一类与文本绘制相关。              *   

2014-05-23 14:21:09 481

转载 抗锯齿方法两种setAntiAlias setBitmapFilter

在Android中,目前,我知道有两种出现锯齿的情况。 ① 当我们用Canvas绘制位图的时候,如果对位图进行了选择,则位图会出现锯齿。 ② 在用View的RotateAnimation做动画时候,如果View当中包含有大量的图形,也会出现锯齿。我们分别以这两种情况加以考虑。 用Canvas绘制位的的情况。在用Canvas绘制位图时,一般地,我们使用drawBitmap函数家族,在这些

2014-05-23 14:02:39 4304

原创 3001-os-morse-code

通过震动识别数字/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice

2014-05-21 18:07:11 484

原创 2H03-view-radio-group-rating-bar

/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo

2014-05-21 17:06:57 659

原创 2G03-view-radio-group

注意两点1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态 <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" a

2014-05-21 16:41:42 611 1

原创 2F03-view-progress-indeterminate-in-title-bar

介绍在在title bar上显示indeterminate progress/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file

2014-05-21 16:26:33 560

原创 2F02-view-progress-smooth

介绍不同大小的style

2014-05-21 16:20:13 357

原创 2F01-view-progress-bar-incremental

是设置requestWindowFeature(Window.FEATURE_PROGRESS);title显示为progress

2014-05-21 16:11:08 483

原创 2E08-view-lists-Array(overlay)

介绍一个list滑动时通过一个text提示Array首字母位置的应用/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce

2014-05-21 15:48:55 869

原创 2E07-view-lists-Collapsed

展示一个list item指示显示部分内容点击展开关闭的list

2014-05-21 14:56:43 669

原创 2E06-view-lists-separators

介绍通过方法 @Override public boolean areAllItemsEnabled() { return false; }@Overridepublic boolean isEnabled(int position) { return !mStrings[position].startsWith("-");}设置list的可以选和不可选注意有

2014-05-21 14:48:58 574

原创 2E05-view-lists-cursor-people-phone

介绍是用Cursor和SimpleCursorAdapter实现listPeople list

2014-05-21 14:34:20 471

原创 2E04-view-lists-slow-efficient-adapter

介绍自定一个的Adapter和list的监听注意1.

2014-05-21 14:18:25 1203

原创 2E03-view-lists-transcript

描述通过:mAdapter.add(text);为list

2014-05-21 14:03:39 450

原创 2E02-View-Lists-multiple -choice-list

介绍一个多选list/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th

2014-05-21 13:55:56 727

原创 2E01-View-Lists-single -choice-list

介绍一个可以单选列表

2014-05-21 13:46:18 412

原创 2D01-View-Layout-Table-Layout

android:layout_column="1" 控制Table View在第几列: <TextView android:layout_column="1" android:text="@string/table_layout_6_open" android:padding="3dip" /> android

2014-05-21 11:49:28 610

原创 2C03-View-Layout-Animation-list-Reverse-Order

介绍list  item倒序显示LayoutAnimation3.java/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e

2014-05-20 14:27:21 526

原创 2C02-View-Layout-Animation-list-Cascade

描述list layout item有上倒下依次显示的代码实现形式LayoutAnimation2.java/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no

2014-05-20 14:21:10 641

原创 2C01-View-Layout-Animation-Grid-Fade

介绍一个grid layout 顺序显示的代码LayoutAnimation1.java/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th

2014-05-20 14:15:08 784

原创 2B01-View-Switcher

Gallery和swithcer联合使用/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complian

2014-05-19 13:46:25 705

原创 2A01-View-Grid

描述网格包括手机上所有lunch icon/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance

2014-05-19 12:15:39 447

原创 2901-View-Gallery

介绍一个Cursor的Gallery/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wit

2014-05-19 12:08:09 375

原创 2801-View-focus

android:focusable="false"

2014-05-16 18:44:12 337

原创 2701-View-Expandable

1.通过ExpandableListActivity实现一个ExpandableList并实现点击list 显示menu的操作

2014-05-16 15:55:43 411

原创 2601-View-Date-Widgets

描述 创建一个TimePickerDialogreturn new TimePickerDialog(this,                        mTimeSetListener, mHour, mMinute, false);

2014-05-16 15:10:37 322

原创 2501-View-custom

显示一个自定义的view/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the

2014-05-16 14:13:53 472

原创 2401-View-Controls-Theme

设置Theme改变Activity的样式

2014-05-16 11:44:39 286

原创 2301-View-chronometer

介绍chronometer秒表/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t

2014-05-15 18:07:57 281

原创 2201-View-button

展示一个大按钮、小按钮和

2014-05-15 17:51:02 377

原创 2102-View-auto-complete-mutiple-item

展示多选输入/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens

2014-05-15 17:41:58 405

原创 2101-view-autocomplete

介绍使用CursorAdapter实现autocomplete/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c

2014-05-15 15:55:06 360

原创 2004-view-animation-shake

介绍EditText颤抖的动画效果Animation1.java/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except

2014-05-15 14:08:53 571

原创 2003-view-Animation-push

介绍ViewFlipperViewFlipperSimple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip betwee

2014-05-15 14:01:18 641

原创 2002-View-Animation-interpolator

介绍animation的校对器/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t

2014-05-15 11:56:32 328

原创 2001-Views-Animation-3D-Transition

介绍一个3D动画的反转

2014-05-14 18:49:45 525

空空如也

空空如也

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

TA关注的人

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