- 博客(15)
- 资源 (15)
- 收藏
- 关注
原创 Android WIFI基本操作
第一步:布局文件http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > android:id="@
2012-04-27 15:36:32 1376
原创 android动画实现-Tween animation(三)
第一步:创建动画文件在res/anim下http://schemas.android.com/apk/res/android" android:shareInterpolator="true" > android:interpolator="@android:anim/accelerate_decelerate_interpolator"
2012-04-27 10:11:43 716
原创 android动画实现-Frame animation(二)
第一步:创建动画文件animation_1http://schemas.android.com/apk/res/android" android:oneshot="false"> 第二步:布局文件http://schemas.android.com/apk/res/android" android:orientation="verti
2012-04-27 10:00:31 595
原创 android动画实现-Frame animation(一)
不说别的,直接做第一步:创建一个动画文件http://schemas.android.com/apk/res/android" android:oneshot="false"> 第二步:创建布局文件http://schemas.android.com/apk/res/android" android:orientation="v
2012-04-27 09:57:10 788
原创 PopWindow用法
PopWindow用法分三步:1、实例化PopWindow对象 new PopupWindow(View)2、准备内容布局。可以通过定义布局和解析布局文件3、显示PopWindow窗口4、关闭窗口 第一种方法:直接定义布局第一步:测试布局文件http://schemas.android.com/apk/res/android" android:id="@
2012-04-18 10:03:25 3600
原创 TabHost使用(三)
第一步:创建布局文件<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/widget_la
2012-04-17 14:23:35 942
原创 TabHost使用(二)
第一步:布局文件<TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+i
2012-04-17 13:50:27 1220
原创 TabHost使用(一)
第一步:创建布局文件<TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent">
2012-04-17 13:22:26 1937
原创 Spinner与适配器Adapter使用总结
Spinner的使用离不开和Adapter结合使用,下面将基本的常用法介绍一下,主要还是为初学者提供些帮助第一步:创建布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mylinearlayout" android:orientation="
2012-04-17 11:38:38 15912 1
原创 .9.png图片的使用,出现红叉问题
今天试用一下.9.png的用法,把制作的.9.png图片放入到res/draw-midp目录下,就会报错,或者是从其它apk中获取的.9.png图片都不能直接使用。下面介绍制作和用法: 第一步:找到如下目录: D:\eclipse\android_sdk\tools中的draw9patch.bat文件,启动进入如下界面:第二步:选择 File---〉Open-9-Patch
2012-04-16 09:49:02 4384
原创 自定义View的使用
第一种:通过java代码实现自定义view添加到显示布局中第一步:定义布局文件http://schemas.android.com/apk/res/android" android:id="@+id/mylinearlayout" android:orientation="vertical" android:layout_width="wrap_content"
2012-04-13 10:39:08 4047 1
原创 EditText标签属性的使用
布局文件:http://schemas.android.com/apk/res/android" android:id="@+id/mylinearlayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_par
2012-04-13 09:45:18 1548
原创 android emulator启动的两种方法详解
对于android学习者,模拟器给我们带来很大的帮助,在android中我们经常通过开发工具启动,实际上我们也可以通过命令工具进行启动,虽然有点不是太常用,接下来讲解一下,为部分开发者提供些帮助。第一种方式:emulator -avd 第一步:进入cmd第二步:输入命令行如下:第三步:回车启动模拟器如下 第二种方式:emulator -data 镜像文件名称假
2012-04-12 09:32:47 7784
原创 canvas元素用于在网页上绘制图形-html5Canvas
HTML5 的 canvas 元素使用 JavaScript 在网页上绘制图像。画布是一个矩形区域,您可以控制其每一像素。 代码:var c=document.getElementById("myCanvas");var cxt=c.getContext("2d");cxt.moveTo(10,10);cxt.lineTo(150
2012-04-11 14:32:26 1607
原创 audio 元素能够播放声音文件或者音频流-html5播放音频
代码:自动循环播放、显示播放控件 演示:说明: 标签的属性属性值描述 autoplay 属性" href="http://www.w3school.com.cn/html5/att_audio_autoplay.asp">autoplayautoplay如果出现该属性,则音频在就绪后马
2012-04-11 13:48:33 5905
android实现音乐播放器
2011-05-27
搭建struts1.x环境例子源码
2011-04-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人