
Android应用开发
#冷风那个吹#
每天进步一点点
展开
-
Android控件之DatePicker、TimePicker
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >原创 2012-06-20 12:35:45 · 808 阅读 · 0 评论 -
一点关于android的个人感受
android已经很长时间没有接触了,上一份工作是做android相关的,关于系统编译,驱动移植,平台移植的相关工作。不过已经很一年多以前的事情了。从一个城市,换到另一个城市,由于工作内容不同,所以对android系统可以说是很生疏了。android的发展实在的是太快了,所以也一直想做一些相关的工作,学习或者其它的事情。由于自己给自己种种借口,所以到现在也没有展开。今天晚上有些时间,所以停下来写一原创 2013-10-17 21:05:34 · 820 阅读 · 0 评论 -
The connection to adb is down, and a severe error has occured.
启动android模拟器时.有时会报The connection to adb is down, and a severe error has occured.的错误.在网友说在任务管理器上把所有adb.exe关闭掉.重启eclipse.但试过不管用.所以在外国网站上找到一种可行的方法:1.先把eclipse关闭.2.在管理器转到你的android SDK 的platform-to原创 2012-09-04 22:19:37 · 845 阅读 · 0 评论 -
android控件之popupWindow
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"原创 2012-06-25 21:54:56 · 545 阅读 · 0 评论 -
android控件之spinner的使用
采用4.0.3模拟器很简单直接看代码吧main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:原创 2012-06-20 12:31:59 · 634 阅读 · 0 评论 -
android控件之tabhost tabwedget
TabHost是整个Tab的容器,包括两部分,TabWidget和FrameLayout。TabWidget就是每个tab的标签,FrameLayout则是tab内容。 1、如果我们使用extends TabAcitivty,如同ListActivity,TabHost必须设置为@android:id/tabhost 2、TabWidget必须设置android:id为@andro原创 2012-06-22 22:49:44 · 1021 阅读 · 0 评论 -
android控件之radiobutton checkbox
这里有一个问题,现在还不清楚,为什么这里的toast不能显示呢?main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"原创 2012-06-23 09:34:26 · 619 阅读 · 0 评论 -
android应用之多点触摸实现图片缩放
MulitPointTouchListener.javapackage com.mp;import android.graphics.Matrix;import android.graphics.PointF;import android.util.FloatMath;import android.util.Log;import android.view.MotionEve原创 2012-06-25 15:14:55 · 652 阅读 · 0 评论 -
android应用之多点触摸
JhkMultiTouchActivity.javapackage com.android.forlinx;import android.app.Activity;import android.os.Bundle;import android.view.Window;import android.view.WindowManager;public class JhkMulti原创 2012-06-25 14:06:00 · 602 阅读 · 0 评论 -
android控件之AlertDialog
AlertDialog是非阻塞的,而阻塞的对话框用的是PopupWindow。原创 2012-06-22 23:00:06 · 446 阅读 · 0 评论 -
android控件之gallery
Gallery组件主要用于横向显示图像列表,不过按常规做法。Gallery组件只能有限地显示指定的图像。也就是说,如果为Gallery组件指定了10张图像,那么当Gallery组件显示到第10张时,就不会再继续显示了。这虽然在大多数时候没有什么关系,但在某些情况下,我们希望图像显示到最后一张时再重第1张开始显示,也就是循环显示。要实现这种风格的Gallery组件,就需要对Gallery的Adapt原创 2012-06-22 20:09:22 · 808 阅读 · 0 评论 -
Android控件之AnalogClock、DigitalClock calendar
时钟控件包括AnalogClock和DigitalClock,它们都负责显示时钟,所不同的是AnalogClock控件显示模拟时钟,且只显示时针和分针,而DigitalClock显示数字时钟,可精确到秒。这个比较简单,只要在布局文件中加入就可以了。main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk原创 2012-06-20 13:51:40 · 740 阅读 · 0 评论 -
android控件之progressbar
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >原创 2012-06-21 16:53:25 · 549 阅读 · 0 评论 -
android控件之imageView
main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >原创 2012-06-20 15:49:35 · 497 阅读 · 0 评论 -
android下拉刷新
需求:项目中的消息列表界面要求实现类似sina微博的下拉刷新;思路:一般的消息列表为ListView类型,将list加载到adapter中,再将adapter加载到ListView中,从而实现消息列表的展示。而下拉刷新要求给消息列表加一个头部,其中有图片(向上/向下箭头)和提示字样(下拉刷新/松开刷新),从而我们需要做的事情:1.需要做一个head.xm来实现头部的样式定义;2.需要自定义一个转载 2013-11-03 22:12:02 · 751 阅读 · 0 评论